aboutsummaryrefslogtreecommitdiff
path: root/docs/help/git_webhooks.md
blob: cf37277cb6ffab206c86111f4c95fa2e5e4d26ca (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## 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 <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>`