aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-19 12:24:30 +0000
committerGravatar jesopo2019-11-19 12:24:30 +0000
commit502dae0d75b7a603ae77da33228321ad7e73d22d (patch)
tree90c280f99fdd5293a501da54b19977df1e27db6b
parentexpirental code to show comment content for github issue_comment webhooks (diff)
signature
'event["comment"]' -> 'data["comment"]'
-rw-r--r--modules/git_webhooks/github.py2
1 files changed, 1 insertions, 1 deletions
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)]