From c7e3e42728f581d89288d36464cd72e8a60c83fe Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Feb 2020 16:27:51 +0000 Subject: "=", not "==", for picking gitlab note object type --- modules/git_webhooks/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index 547eb9e4..88e5a35c 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -208,7 +208,7 @@ class GitLab(object): def _note(self, full_name, data, object): number = utils.irc.color("#%s" % object["iid"], colors.COLOR_ID) type = data["object_attributes"]["noteable_type"] - type == "issue" if type == "Issue" else "MR" + type = "issue" if type == "Issue" else "MR" title = object["title"] commenter = utils.irc.bold(data["user"]["username"]) -- cgit v1.3.1-10-gc9f91