Clarify github webhook event names with some comments (github.py)
This commit is contained in:
parent
ce1d1aa5f8
commit
89d0c83acb
1 changed files with 21 additions and 7 deletions
|
@ -14,13 +14,27 @@ DEFAULT_EVENT_CATEGORIES = [
|
||||||
"ping", "code", "pr", "issue", "repo"
|
"ping", "code", "pr", "issue", "repo"
|
||||||
]
|
]
|
||||||
EVENT_CATEGORIES = {
|
EVENT_CATEGORIES = {
|
||||||
"ping": ["ping"],
|
"ping": [
|
||||||
"code": ["push", "commit_comment"],
|
"ping" # new webhook received
|
||||||
"pr": ["pull_request", "pull_request_review",
|
],
|
||||||
"pull_request_review_commend"],
|
"code": [
|
||||||
"issue": ["issues", "issue_comment"],
|
"push", "commit_comment"
|
||||||
"repo": ["create", "delete", "release", "fork"],
|
],
|
||||||
"team": ["membership"]
|
"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 = {
|
COMMENT_ACTIONS = {
|
||||||
|
|
Loading…
Reference in a new issue