aboutsummaryrefslogtreecommitdiff
path: root/docs/help/git_webhooks.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/help/git_webhooks.md')
-rw-r--r--docs/help/git_webhooks.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/help/git_webhooks.md b/docs/help/git_webhooks.md
new file mode 100644
index 00000000..7d4e54dd
--- /dev/null
+++ b/docs/help/git_webhooks.md
@@ -0,0 +1,21 @@
+## 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>`