diff options
| author | 2019-10-28 12:37:21 +0000 | |
|---|---|---|
| committer | 2019-10-28 12:37:21 +0000 | |
| commit | d20ff91e99f8e2e6f5fecccc42e180061d4665d8 (patch) | |
| tree | 2d8fc0c7375fc999a64613bb1b493671fc9a6928 /modules/git_webhooks/gitlab.py | |
| parent | strip '"<>() 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.py | 4 |
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" |
