/gitlab-unfurly

Serverless Slack bot for unfurling GitLab URLs.

Primary LanguagePythonMIT LicenseMIT

GitLab Unfurly

Serverless Slack bot for unfurling GitLab URLs.

serverless Python: 3.6 Code style: black License: MIT

Example

GitLab Unfurly example

Usage

Deploy on AWS using Serverless framework.

Provide these environment variables:

  • GITLAB_URL
  • GITLAB_TOKEN
  • SLACK_TOKEN
  • SLACK_CLIENT_ID
  • SLACK_CLIENT_SECRET
  • AWS_REGION

Contributing

Bug reports and fixes are always welcome!

Tests are run with pytest. Install into virtual environment requirements.txt and test-requirements.txt and run in shell command pytest

Code is formatted by Black.

License

MIT

FAQ

  1. How to make unfurly ignore my urls (= not create previews)?
    Append ?no_unfurl to the url.

  2. Is there a way to disable unfurly for the whole post?
    Unfortunately no. Unfurly receives links from slack 1-by-1. Therefore it has no knowledge about links being part of the same post.