From 4346375a482cc89e1b26a4c3930942913b400c0a Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 21 Jan 2020 18:12:15 +0000 Subject: ignore gitlab issues events that have no action --- modules/git_webhooks/gitlab.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/git_webhooks') diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 9f481384..3d9e77c3 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -173,6 +173,9 @@ class GitLab(object): return [["[MR] %s %s: %s" % (author, action_desc, pr_title), url]] def issues(self, full_name, data): + if not "action" in data["object_attributes"]: + return + number = utils.irc.color("#%s" % data["object_attributes"]["iid"], colors.COLOR_ID) action = ISSUE_ACTIONS[data["object_attributes"]["action"]] -- cgit v1.3.1-10-gc9f91