From 120eb03173d3db6a7f6746f5d64657bb56b52153 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 26 Feb 2019 21:55:34 +0000 Subject: Show sender of an issue_comment, not the original commenter (for edits) --- modules/github/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 8f9eaf69..9159cd16 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -521,7 +521,7 @@ class Module(ModuleManager.BaseModule): action = data["action"] issue_title = data["issue"]["title"] type = "pr" if "pull_request" in data["issue"] else "issue" - commenter = utils.irc.bold(data["comment"]["user"]["login"]) + commenter = utils.irc.bold(data["sender"]["login"]) url = self._short_url(data["comment"]["html_url"]) return ["[%s #%d] %s %s on: %s - %s" % (type, number, commenter, COMMENT_ACTIONS[action], issue_title, -- cgit v1.3.1-10-gc9f91