An open API service indexing awesome lists of open source software.

https://github.com/siketyan/hooklab

Transfers your notifications on GitLab to Slack.
https://github.com/siketyan/hooklab

azure-functions csharp gitlab-webhook notifications slack-app

Last synced: 8 months ago
JSON representation

Transfers your notifications on GitLab to Slack.

Awesome Lists containing this project

README

          

# HookLab

[![Build Status](https://dev.azure.com/Naoki-Ikeguchi/HookLab/_apis/build/status/HookLab%20-%201%20-%20CI?branchName=master)](https://dev.azure.com/Naoki-Ikeguchi/HookLab/_build/latest?definitionId=1&branchName=master)
[![SUSHI-WARE LICENSE](https://img.shields.io/badge/license-SUSHI--WARE%F0%9F%8D%A3-blue.svg)](https://github.com/MakeNowJust/sushi-ware)

Transfers your notifications on GitLab to Slack.

## Features
- Notify when someone commented to your merge request.

## Installation
1. Create a Slack app.
2. Add the Bot User feature to the app.
3. Deploy this project to Azure Functions.
4. Configure environment variables.
5. Add an integration to the function with the key on GitLab.
6. Done!

## Configuration
```env
GITLAB_SLACK_USER_DICTIONARY="KKKKKK=UXXXXXXXX;LLLLLL=UYYYYYYYY;"
SLACK_BOT_TOKEN="xoxb-NNNNNNNNNNN-MMMMMMMMMMMM-ZZZZZZZZZZZZZZZZZZZZZZZZ"
```

- `GITLAB_SLACK_USER_DICTIONARY`: The dictionary to convert from GitLab users to Slack users.
- `KKKKKK`, `LLLLLL`: The identifier of the GitLab user.
- `UXXXXXXXX`, `UYYYYYYYY`: The identifier of the Slack user.
- `SLACK_BOT_TOKEN`: The OAuth token of the Bot user.