GitLab links unfurler for slack-unfurl.
- Install slack-unfurl
- Require this package:
composer require glen/slack-unfurl-gitlab
- Merge
env.example
from this project to.env
- Register provider: in
src/Application.php
add$this->register(new \GitlabSlackUnfurl\ServiceProvider\GitlabUnfurlServiceProvider());
issue
merge_request
- issue or merge request
note
(since 0.6.0)
Technical details:
- route matches are defined in src/Route/GitLabRoutes.php::buildRoutes()
- handlers are defined in src/Event/Subscriber/GitlabUnfurler.php::ROUTES
For url to be unfurled, url pattern must be defined in GitLabRoutes
, and handler must be also present in GitlabUnfurler
.