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:
Radosław Piliszek 2021-04-25 17:26:25 +00:00
parent 27056169a7
commit 79c298f51d
1 changed files with 11 additions and 2 deletions

View File

@ -35,8 +35,17 @@ def access_gerrit_check():
print("Basic check of gerritbot/channels.yaml") print("Basic check of gerritbot/channels.yaml")
REQUIRED_ENTRIES = ("branches", "events", "projects") REQUIRED_ENTRIES = ("branches", "events", "projects")
VALID_EVENTS = ("change-merged", "comment-added", VALID_EVENTS = (
"patchset-created", "x-vrif-minus-2") "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 channel in gerrit_config:
for entry in REQUIRED_ENTRIES: for entry in REQUIRED_ENTRIES:
if entry not in gerrit_config[channel]: if entry not in gerrit_config[channel]: