Slack app for unfurling issue links
You need Verification Token
(SLACK_VERIFICATION_TOKEN
) for next step.
Under Features
:
- enable Events API for
link_shared
event withlinks:read
scope.- Click
Event Subscriptions
on the left. - Click
Enable Events
. - Click
Add Workspace Event
and addlink_shared
. - Click
Add Domain
and type your domain. - Click
Save Changes
.
- Click
- add
links:write
permission scope- Click
OAuth & Permissions
on the left. - Go to
Scopes
section and selectAdd link previews to messages
in the list of permissions. - Click
Save Changes
.
- Click
- enable
Incoming Webhooks
Obtain OAuth Access Token
(SLACK_API_TOKEN
) under OAuth & Permissions
cp env.example .env
The app itself handles no links, you need to add some providers:
If the unfurl is not happening check that the domain is not blacklisted.
If you modify app domains, you need to Install App
(/install-on-team
as url) again to re-authorize:
Install composer deps and start builtin HTTP server:
composer install
composer run server
To build docker image locally and run it:
docker build -t slack-unfurl .
docker run --rm -p 4390:4390 -v $(pwd)/var/log:/app/var/log -v $(pwd)/.env:/app/.env slack-unfurl
The service is accessible from http://slack-unfurl.127.0.0.1.xip.io:4390/ or just http://localhost:4390/