-
Notifications
You must be signed in to change notification settings - Fork 2
GitHub Web Hook Sink
The GitHub-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.github.simplepush.webhookReceiver", "certfile": "<location of .pem file>", "port": <port number> } ], ...
-
(Re-)start the bot
-
Determine which conversation you want to receive GitHub events. In that conversation, execute
/bot whereami
- the bot will message the id for that specific conversation. Record the conversation id. -
In your GitHub project, access Project Settings > Web Hooks & Services > Add webhook
-
Specify the Payload URL:
https://<your bot ip/domain name>:<port number>/<conversation id>/
-
While entering the above address, a "Disable SSL Verification" button will pop up at the bottom of the panel. If you are using a self-signed certificate, you will have to click this button or GitHub will not be able to send push notifications to your bot.
-
Ensure the Active box is checked, and click Add Webhook
-
If everything is correct, you will see a message on your bot log stating that it has received some "github zen" - essentially a random sentence that indicates that GitHub has successfully connected and sent a message.
Plugin List | Developer Reference: [ Intro | Plugins | Sinks | In-built Functionality | [Configuration] (Configuration) ]