2019-01-18 13:13:01 +00:00
# !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
2019-01-18 14:03:57 +00:00
`!ghwebhook events [hook] [events]` where `[events]` is either a raw event (see [here ](https://developer.github.com/v3/activity/events/types/ )) or a space-separated list of the following
2019-01-18 13:13:01 +00:00
2019-01-18 13:14:11 +00:00
#### ping
2019-01-18 13:13:01 +00:00
Shows when a newly registered web hook first hits BitBot
2019-01-18 13:14:11 +00:00
#### code
2019-01-18 13:13:01 +00:00
Shows for commits and comments on commits
2019-01-18 13:14:11 +00:00
#### pr-minimal
2019-01-18 13:13:01 +00:00
Shows minimal pull request actions; opened, closed, reopened
2019-01-18 13:14:11 +00:00
#### pr
2019-01-18 13:13:01 +00:00
Shows the same actions as `pr-minimal` and also: edited, assigned, unassigned, review requests, comments on review requests
2019-01-18 13:14:11 +00:00
#### pr-all
2019-01-18 13:13:01 +00:00
Shows the same actions as `pr` and also: labeled, unlabeled
2019-01-18 13:14:11 +00:00
#### issue-minimal
2019-01-18 13:13:01 +00:00
Shows minimal issue actions; opened, closed, reopened, deleted
2019-01-18 13:14:11 +00:00
#### issue
2019-01-18 13:13:01 +00:00
Shows the same actions as `issue-minimal` and also: edited, assigned, unassigned, comments on issues
2019-01-18 13:14:11 +00:00
#### issue-all
2019-01-18 13:13:01 +00:00
Shows the same actions as `issue` and also: transferred, pinned, unpinned, labeled, unlabeled, milestoned, demilestoned
2019-01-18 13:14:11 +00:00
#### repo
2019-01-18 13:13:01 +00:00
Shows events related repositories themselves; repository/branch/tag created, repository/branch/tag deleted, release created, fork created
2019-01-18 13:14:11 +00:00
#### team
2019-01-18 13:13:01 +00:00
Shows when users are added or removed from teams
## List shown events
`!ghwebhook events [hook]`