From 66a904b5aa9317dc32eca6e39a4f88c6380cacef Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 7 Nov 2018 19:21:59 +0000 Subject: [PATCH] don't show pull request review events when they're "commented" --- modules/github.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/github.py b/modules/github.py index e051192c..8401dd36 100644 --- a/modules/github.py +++ b/modules/github.py @@ -109,6 +109,9 @@ class Module(ModuleManager.BaseModule): (full_name, pr_number, author, action_desc, pr_title, url)] def pull_request_review(self, event, full_name, data): + if data["review"]["state"] == "commented": + return [] + action = data["action"] pr_number = data["pull_request"]["number"] pr_title = data["pull_request"]["title"]