aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-19 16:52:04 +0000
committerGravatar jesopo2018-12-19 16:52:04 +0000
commit8d8ebf7d55a830a6dc4da6e298c487e808c6b4e5 (patch)
treee6cfd15607e10d8ee5e6952eccd0ad6885d2a0ca /modules/github.py
parentNR: DEM is technically a permitted powertype (diff)
signature
Show `sender` of a pull request comment action, not the comment's `user`, for
when people edit other people's comments
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py4
1 files changed, 2 insertions, 2 deletions
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"]