aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-06 18:35:46 +0000
committerGravatar jesopo2018-12-06 18:35:46 +0000
commit476e4cc9c178b732fcbf3b9adc1854528bf4fc6a (patch)
treede90b2ad456da0a88866806e0a20457e462bd5de
parentAdd 'bot-channel' config in bot.conf.example and use it, if present, in (diff)
signature
`["review"]["user"]["login"]` -> `["sender"]["login"]` to show who created a
pull_request_review event, not who started the review
-rw-r--r--modules/github.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/github.py b/modules/github.py
index ed8bad8e..ea0fd80b 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -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)]