github PR events should use ["sender]["login"], not PR author

This commit is contained in:
jesopo 2020-02-17 11:39:09 +00:00
parent c9eff9edb9
commit df2240204d

View file

@ -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)