diff options
| author | 2020-01-21 18:12:15 +0000 | |
|---|---|---|
| committer | 2020-01-21 18:12:15 +0000 | |
| commit | 4346375a482cc89e1b26a4c3930942913b400c0a (patch) | |
| tree | 095bcf46494e5ed1ca268d02f1b0da0c3b34cf61 | |
| parent | pong.py -> ping.py (diff) | |
| signature | ||
ignore gitlab issues events that have no action
| -rw-r--r-- | modules/git_webhooks/gitlab.py | 3 |
1 files changed, 3 insertions, 0 deletions
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"]] |
