-
Notifications
You must be signed in to change notification settings - Fork 2
GitLab Web Hook Sink
The GitLab-compatible sink will post push messages into a Hangout
-
Generate a .pem file for SSL/TLS. This is a mandatory step as the sink will refuse to start without SSL/TLS. A self-signed certificate will do:
-
Open the bot's
config.json
file and modify thejsonrpc
key as follows:..., "jsonrpc": [ { "module": "sinks.gitlab.simplepush.webhookReceiver", "certfile": "<location of .pem file>", "port": <port number> } ], ...
-
(Re-)start the bot
-
Determine which group hangout you want to receive GitLab events. In that hangout, execute
/bot whereami
- the bot will message the id for that specific hangout. Record the conversation id. -
In your GitLab instance, access Project Settings > Web Hooks
-
Select which project events you want to be notified of and specify this URL:
https://<your bot ip/domain name>:<port number>/<conversation id>/
-
After entering the above, Add Web Hook, then test the hook.
Plugin List | Developer Reference: [ Intro | Plugins | Sinks | In-built Functionality | [Configuration] (Configuration) ]