glen / slack-unfurl-gitlab
GitLab links unfurler for slack-unfurl
v0.8.1
2023-10-17 15:22 UTC
Requires
- php: ^7.1.3
- m4tthumphrey/php-gitlab-api: ^9.7
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
- glen/slack-unfurl: ^0.9.0
- ocramius/lazy-property: ^1.0|^2.0
- phpunit/phpunit: ^7.0
- symfony/dotenv: ^4.0|^5.0
- symfony/var-dumper: ^4.1
- symfony/yaml: ^4.1
Conflicts
- glen/slack-unfurl: <0.9.0
README
GitLab links unfurler for slack-unfurl.
Installation
- 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());
Supported URL handlers
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
.