From df2240204dc4077f849170a6dd7a14f7306b682f Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Feb 2020 11:39:09 +0000 Subject: [PATCH] github PR events should use `["sender]["login"]`, not PR author --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index fbfe15a7..21b672ce 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -272,7 +272,7 @@ class GitHub(object): colored_branch = utils.irc.color(branch, colors.COLOR_BRANCH) sender = utils.irc.bold(data["sender"]["login"]) - author = utils.irc.bold(data["pull_request"]["user"]["login"]) + author = utils.irc.bold(data["sender"]["login"]) number = utils.irc.color("#%s" % data["pull_request"]["number"], colors.COLOR_ID) identifier = "%s by %s" % (number, author)