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