["review"]["user"]["login"] -> ["sender"]["login"] to show who created a

pull_request_review event, not who started the review
This commit is contained in:
jesopo 2018-12-06 18:35:46 +00:00
parent 3e0bd3ee85
commit 476e4cc9c1

View file

@ -189,7 +189,7 @@ class Module(ModuleManager.BaseModule):
action = data["action"]
pr_title = data["pull_request"]["title"]
reviewer = utils.irc.bold(data["review"]["user"]["login"])
reviewer = utils.irc.bold(data["sender"]["login"])
url = data["review"]["html_url"]
return ["[pr] %s %s a review on: %s - %s" % (reviewer, action, pr_title,
url)]