From 476e4cc9c178b732fcbf3b9adc1854528bf4fc6a Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 6 Dec 2018 18:35:46 +0000 Subject: [PATCH] `["review"]["user"]["login"]` -> `["sender"]["login"]` to show who created a pull_request_review event, not who started the review --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]