'object'->'type'

This commit is contained in:
jesopo 2020-01-28 01:18:48 +00:00
parent 84bb45d0ba
commit c831984e20

View file

@ -199,7 +199,7 @@ class GitLab(object):
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 = type["title"]
commenter = utils.irc.bold(data["user"]["username"]) commenter = utils.irc.bold(data["user"]["username"])
url = data["object_attributes"]["url"] url = data["object_attributes"]["url"]
return [["[%s] %s commented on %s: %s" % return [["[%s] %s commented on %s: %s" %