Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glensc/slack-unfurl-gitlab
GitLab links unfurler for slack-unfurl
https://github.com/glensc/slack-unfurl-gitlab
Last synced: 3 months ago
JSON representation
GitLab links unfurler for slack-unfurl
- Host: GitHub
- URL: https://github.com/glensc/slack-unfurl-gitlab
- Owner: glensc
- License: mit
- Created: 2018-03-01T20:13:16.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T15:37:00.000Z (about 1 year ago)
- Last Synced: 2024-10-14T11:38:17.915Z (3 months ago)
- Language: PHP
- Size: 90.8 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack unfurl GitLab Provider
GitLab links unfurler for [slack-unfurl].
[slack-unfurl]: https://github.com/glensc/slack-unfurl
## Installation
1. Install [slack-unfurl]
2. Require this package: `composer require glen/slack-unfurl-gitlab`
3. Merge `env.example` from this project to `.env`
4. Register provider: in `src/Application.php` add `$this->register(new \GitlabSlackUnfurl\ServiceProvider\GitlabUnfurlServiceProvider());`[slack-unfurl]: https://github.com/glensc/slack-unfurl
## 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()](src/Route/GitLabRoutes.php)
- handlers are defined in [src/Event/Subscriber/GitlabUnfurler.php::ROUTES](src/Event/Subscriber/GitlabUnfurler.php)For url to be unfurled, url pattern must be defined in `GitLabRoutes`, and handler must be also present in `GitlabUnfurler`.