don't show pull request review events when they're "commented"

This commit is contained in:
jesopo 2018-11-07 19:21:59 +00:00
parent d961416401
commit 66a904b5aa

View file

@ -109,6 +109,9 @@ class Module(ModuleManager.BaseModule):
(full_name, pr_number, author, action_desc, pr_title, url)] (full_name, pr_number, author, action_desc, pr_title, url)]
def pull_request_review(self, event, full_name, data): def pull_request_review(self, event, full_name, data):
if data["review"]["state"] == "commented":
return []
action = data["action"] action = data["action"]
pr_number = data["pull_request"]["number"] pr_number = data["pull_request"]["number"]
pr_title = data["pull_request"]["title"] pr_title = data["pull_request"]["title"]