CI: add docker build
Merge pull request #11 from jae1911/dependabot/pip/waitress-2.1.2
Bump waitress from 2.1.1 to 2.1.2
gh-bot is maybe the worst (but simplest) Matrix webhook bot for Github.
Example of commits:
Example of workflow finished:
You will need a secret key, generate one like this:
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'
A user token and a Matrix homeserver URL.
Here is an example docker-compose:
version: '2.1'
services:
image: ghcr.io/jaedotmoe/gh-bot:latest
environment:
- SEC_TOKEN=72f38e4c61b28f1c9a17868750f48330e47abd12dummy
- MATRIX_TOKEN=syt_028ifji4jf82jf20983j03ijdummy
- MATRIX_HOMESERVER=matrix.example.com
ports:
- 5000:5000
You can also add - LOG_ALL_EVENTS=true
to the environment variables to log every event sent to webhooks to all rooms via a fi.jae.webhooklog
event.
Now, you can invite the bot and it will auto-join room it is invited in every 15 seconds.
Go to your Github repository setting, Webhooks and Add Webhook.
There, set these values:
https://example.com/gh/webhook
application/json
72f38e4c61b28f1c9a17868750f48330e47abd12dummy
And then hit Add Webhook.
You are now good to go!
Go to your repo settings, Webhooks and fill with this data:
https://example.com/gh/gitlab
72f38e4c61b28f1c9a17868750f48330e47abd12dummy
And then click on 'Add Webhook' and there you go!
Go to your repo settings, Webhooks, Add Webhook, Gitea:
https://example.com/gh/gitea
application/json
72f38e4c61b28f1c9a17868750f48330e47abd12dummy
Then click 'Add Webhook'.
If you need any help, join the Matrix room.