GitHub PRs: Correctly attribute PR authors

Untested; just judging by the JSON contents of a successfully
develivered webhook payload that triggered a misattribution.
This commit is contained in:
Aaron Jones 2021-05-30 15:55:44 +00:00
parent 8f6799b781
commit 81dd0d2bd5
No known key found for this signature in database
GPG key ID: 50C25BA590AE7AB4

View file

@ -275,7 +275,7 @@ class GitHub(object):
colored_branch = utils.irc.color(branch, colors.COLOR_BRANCH) colored_branch = utils.irc.color(branch, colors.COLOR_BRANCH)
sender = utils.irc.bold(data["sender"]["login"]) sender = utils.irc.bold(data["sender"]["login"])
author = utils.irc.bold(data["sender"]["login"]) author = utils.irc.bold(data["pull_request"]["user"]["login"])
number = utils.irc.color("#%s" % data["pull_request"]["number"], number = utils.irc.color("#%s" % data["pull_request"]["number"],
colors.COLOR_ID) colors.COLOR_ID)
identifier = "%s by %s" % (number, author) identifier = "%s by %s" % (number, author)