aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/gitlab.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-28 12:37:21 +0000
committerGravatar jesopo2019-10-28 12:37:21 +0000
commitd20ff91e99f8e2e6f5fecccc42e180061d4665d8 (patch)
tree2d8fc0c7375fc999a64613bb1b493671fc9a6928 /modules/git_webhooks/gitlab.py
parentstrip '"<>() from <title> words when checking for title/url difference (diff)
signature
'issue_comment' -> 'issue_note', fix issue id referencing
Diffstat (limited to 'modules/git_webhooks/gitlab.py')
-rw-r--r--modules/git_webhooks/gitlab.py4
1 files 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"