"=", not "==", for picking gitlab note object type

This commit is contained in:
jesopo 2020-02-17 16:27:51 +00:00
parent 7dd70c769d
commit c7e3e42728

View file

@ -208,7 +208,7 @@ class GitLab(object):
def _note(self, full_name, data, object): def _note(self, full_name, data, object):
number = utils.irc.color("#%s" % object["iid"], colors.COLOR_ID) number = utils.irc.color("#%s" % object["iid"], colors.COLOR_ID)
type = data["object_attributes"]["noteable_type"] type = data["object_attributes"]["noteable_type"]
type == "issue" if type == "Issue" else "MR" type = "issue" if type == "Issue" else "MR"
title = object["title"] title = object["title"]
commenter = utils.irc.bold(data["user"]["username"]) commenter = utils.irc.bold(data["user"]["username"])