aboutsummaryrefslogtreecommitdiff
path: root/modules/github/ghwebhook.md
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-18 13:13:01 +0000
committerGravatar jesopo2019-01-18 13:13:01 +0000
commit8c4c9ab90ac5b1f71059a2e176f649e46d43bd75 (patch)
treeaa1680dcc226287dfd6d8ed027b9f4ad03e7406e /modules/github/ghwebhook.md
parentSupport modules being in their own folder and move github.py to github/module.py (diff)
signature
Added help file for !ghwebhook
Diffstat (limited to 'modules/github/ghwebhook.md')
-rw-r--r--modules/github/ghwebhook.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/github/ghwebhook.md b/modules/github/ghwebhook.md
new file mode 100644
index 00000000..105ebf80
--- /dev/null
+++ b/modules/github/ghwebhook.md
@@ -0,0 +1,44 @@
+# !ghwebhook
+
+## Adding a web hook
+
+`!ghwebhook add [name]` where `[name]` is either a full repository name (e.g. `jesopo/bitbot`) to get a specific repository or a user/organisation name (e.g. `jesopo`) to get all repositories for that user/organisation
+
+## Removing a web hook
+Same as above but with `remove` instead of `add`
+
+## Modifying shown events
+`!ghwebhook events [hook] [events]` where `[events]` is a space-separated list of the following
+
+### ping
+Shows when a newly registered web hook first hits BitBot
+
+### code
+Shows for commits and comments on commits
+
+### pr-minimal
+Shows minimal pull request actions; opened, closed, reopened
+
+### pr
+Shows the same actions as `pr-minimal` and also: edited, assigned, unassigned, review requests, comments on review requests
+
+### pr-all
+Shows the same actions as `pr` and also: labeled, unlabeled
+
+### issue-minimal
+Shows minimal issue actions; opened, closed, reopened, deleted
+
+### issue
+Shows the same actions as `issue-minimal` and also: edited, assigned, unassigned, comments on issues
+
+### issue-all
+Shows the same actions as `issue` and also: transferred, pinned, unpinned, labeled, unlabeled, milestoned, demilestoned
+
+### repo
+Shows events related repositories themselves; repository/branch/tag created, repository/branch/tag deleted, release created, fork created
+
+### team
+Shows when users are added or removed from teams
+
+## List shown events
+`!ghwebhook events [hook]`