From 537613545d128695a62c799767dc04d476a84dd6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 17 Apr 2019 10:33:12 +0100 Subject: [PATCH] Only show 'submitted' pull_request_review events --- modules/github/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/github/__init__.py b/modules/github/__init__.py index bb342ae7..a143ff7c 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -533,6 +533,9 @@ class Module(ModuleManager.BaseModule): author, action_desc, pr_title, url)] def pull_request_review(self, full_name, data): + if not data["action"] == "submitted": + return [] + if not "submitted_at" in data["review"]: return []