'type'->'object'; 'type' is already in use
This commit is contained in:
parent
67aa90fc94
commit
5c249ac6d6
1 changed files with 3 additions and 3 deletions
|
@ -194,12 +194,12 @@ class GitLab(object):
|
|||
elif type == "MergeRequest":
|
||||
self._note(full_name, data, data["merge_request"])
|
||||
|
||||
def _note(self, full_name, data, type):
|
||||
number = utils.irc.color("#%s" % type["iid"], colors.COLOR_ID)
|
||||
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"
|
||||
|
||||
title = type["title"]
|
||||
title = object["title"]
|
||||
commenter = utils.irc.bold(data["user"]["username"])
|
||||
url = data["object_attributes"]["url"]
|
||||
return [["[%s] %s commented on %s: %s" %
|
||||
|
|
Loading…
Reference in a new issue