Make gerritbot linter know all the supported events
So that it does not mark them as errors. Change-Id: Ie649ee9373954bde98ece5d164cfa11fc961ffee
This commit is contained in:
parent
27056169a7
commit
79c298f51d
@ -35,8 +35,17 @@ def access_gerrit_check():
|
||||
|
||||
print("Basic check of gerritbot/channels.yaml")
|
||||
REQUIRED_ENTRIES = ("branches", "events", "projects")
|
||||
VALID_EVENTS = ("change-merged", "comment-added",
|
||||
"patchset-created", "x-vrif-minus-2")
|
||||
VALID_EVENTS = (
|
||||
"change-merged",
|
||||
"comment-added",
|
||||
"patchset-created",
|
||||
"ref-updated",
|
||||
"x-all-comments",
|
||||
"x-crvw-minus-2",
|
||||
"x-crvw-plus-2",
|
||||
"x-vrif-minus-2",
|
||||
"x-vrif-plus-2",
|
||||
)
|
||||
for channel in gerrit_config:
|
||||
for entry in REQUIRED_ENTRIES:
|
||||
if entry not in gerrit_config[channel]:
|
||||
|
Loading…
Reference in New Issue
Block a user