From 79c298f51de4ca428232fae43d3d807fec8a9bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Sun, 25 Apr 2021 17:26:25 +0000 Subject: [PATCH] Make gerritbot linter know all the supported events So that it does not mark them as errors. Change-Id: Ie649ee9373954bde98ece5d164cfa11fc961ffee --- tools/irc_tests.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/irc_tests.py b/tools/irc_tests.py index b1e34a4c81..4978c2bea0 100755 --- a/tools/irc_tests.py +++ b/tools/irc_tests.py @@ -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]: