bitbot-3.11-fork/docs/help/git_webhooks.md
2019-09-13 16:03:59 +01:00

23 lines
551 B
Markdown

## Configure git webhooks
First, follow instructions at [/docs/rest_api.md](/docs/rest_api.md)
### Generate API key
> /msg &lt;bot> apikey <comment> /api/github /api/gitea`
e.g.
> /msg &lt;bot> apikey github-jesopo /api/github /api/gitea`
### Enable hook in-channel
#### For single repository
> !webhook add &lt;organisation>/&lt;repository>
#### For whole organisation
> !webhook add &lt;organisation>
### Format webhook URL
GitHub: `https://example.com:5000/api/github?key=<apikey>`
Gitea: `https://example.com:5000/api/gitea?key=<apikey>`