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:
parent
8f6799b781
commit
81dd0d2bd5
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,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["sender"]["login"])
|
||||
author = utils.irc.bold(data["pull_request"]["user"]["login"])
|
||||
number = utils.irc.color("#%s" % data["pull_request"]["number"],
|
||||
colors.COLOR_ID)
|
||||
identifier = "%s by %s" % (number, author)
|
||||
|
|
Loading…
Reference in a new issue