Show sender of a pull request comment action, not the comment's user, for

when people edit other people's comments
This commit is contained in:
jesopo 2018-12-19 16:52:04 +00:00
parent aea215a647
commit 8d8ebf7d55

View file

@ -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"]