From 8d8ebf7d55a830a6dc4da6e298c487e808c6b4e5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Dec 2018 16:52:04 +0000 Subject: Show `sender` of a pull request comment action, not the comment's `user`, for when people edit other people's comments --- modules/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/github.py') diff --git a/modules/github.py b/modules/github.py index 6e17e41a..55f03025 100644 --- a/modules/github.py +++ b/modules/github.py @@ -215,10 +215,10 @@ class Module(ModuleManager.BaseModule): def pull_request_review_comment(self, event, full_name, data): action = data["action"] pr_title = data["pull_request"]["title"] - commenter = data["comment"]["user"]["login"] + sender = data["sender"]["login"] url = self._short_url(data["comment"]["html_url"]) return ["[pr] %s %s on a review: %s - %s" % - (commenter, COMMENT_ACTIONS[action], pr_title, url)] + (sender, COMMENT_ACTIONS[action], pr_title, url)] def issues(self, event, full_name, data): action = data["action"] -- cgit v1.3.1-10-gc9f91