diff options
| author | 2019-01-17 14:31:23 +0000 | |
|---|---|---|
| committer | 2019-01-17 14:31:23 +0000 | |
| commit | 89d0c83acba46c6915c2d44c469efb0e2e9d8de6 (patch) | |
| tree | c0ac033854b40dc3b7d234aa3b3104179b4b7ed9 /modules/github.py | |
| parent | 'issue' -> 'issues' (github.py) (diff) | |
| signature | ||
Clarify github webhook event names with some comments (github.py)
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/modules/github.py b/modules/github.py index 0d2688cf..ba00e821 100644 --- a/modules/github.py +++ b/modules/github.py @@ -14,13 +14,27 @@ DEFAULT_EVENT_CATEGORIES = [ "ping", "code", "pr", "issue", "repo" ] EVENT_CATEGORIES = { - "ping": ["ping"], - "code": ["push", "commit_comment"], - "pr": ["pull_request", "pull_request_review", - "pull_request_review_commend"], - "issue": ["issues", "issue_comment"], - "repo": ["create", "delete", "release", "fork"], - "team": ["membership"] + "ping": [ + "ping" # new webhook received + ], + "code": [ + "push", "commit_comment" + ], + "pr": [ + "pull_request", "pull_request_review", "pull_request_review_commend" + ], + "issue": [ + "issues", "issue_comment" + ], + "repo": [ + "create", # a repository, branch or tage has been created + "delete", # same as above but deleted + "release", + "fork" + ], + "team": [ + "membership" + ] } COMMENT_ACTIONS = { |
