From 502dae0d75b7a603ae77da33228321ad7e73d22d Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 19 Nov 2019 12:24:30 +0000 Subject: 'event["comment"]' -> 'data["comment"]' --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git_webhooks') diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 1a09f499..8cedae2a 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -384,7 +384,7 @@ class GitHub(object): body = "" 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" % (type, commenter, COMMENT_ACTIONS[action], number, body, url)] -- cgit v1.3.1-10-gc9f91