From d20ff91e99f8e2e6f5fecccc42e180061d4665d8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 28 Oct 2019 12:37:21 +0000 Subject: [PATCH] 'issue_comment' -> 'issue_note', fix issue id referencing --- modules/git_webhooks/gitlab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 69519d61..59ed6175 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -170,10 +170,10 @@ class GitLab(object): def note(self, full_name, data): type = data["object_attributes"]["noteable_type"] if type in ["Issue", "MergeRequest"]: - return self.issue_comment(full_name, data) + return self.issue_note(full_name, data) def issue_note(self, full_name, data): - number = utils.irc.color("#%s" % data["object_attributes"]["iid"], + number = utils.irc.color("#%s" % data["issue"]["id"], colors.COLOR_ID) type = data["object_attributes"]["noteable_type"] type == "issue" if type == "Issue" else "MR"