Browse Source

Make gerritbot linter know all the supported events

So that it does not mark them as errors.

Change-Id: Ie649ee9373954bde98ece5d164cfa11fc961ffee
changes/94/787894/1
Radosław Piliszek 2 months ago
parent
commit
79c298f51d
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      tools/irc_tests.py

+ 11
- 2
tools/irc_tests.py View File

@ -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…
Cancel
Save