ignore gitlab issues events that have no action

This commit is contained in:
jesopo 2020-01-21 18:12:15 +00:00
parent 4d71aeea97
commit 4346375a48

View file

@ -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"]]