'event["comment"]' -> 'data["comment"]'

This commit is contained in:
jesopo 2019-11-19 12:24:30 +00:00
parent 024452bbac
commit 502dae0d75

View file

@ -384,7 +384,7 @@ class GitHub(object):
body = "" body = ""
if not action == "deleted": if not action == "deleted":
body = ": %s" % self._comment(event["comment"]["body"]) body = ": %s" % self._comment(data["comment"]["body"])
return ["[%s] %s %s on %s%s - %s" % return ["[%s] %s %s on %s%s - %s" %
(type, commenter, COMMENT_ACTIONS[action], number, body, url)] (type, commenter, COMMENT_ACTIONS[action], number, body, url)]