From e28885f7461b5a1f94fd48744985251ec22eed48 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 21 Feb 2019 11:19:36 +0000 Subject: [PATCH] Don't handle pull_request_review events when they've not been submitted --- modules/github/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 8046b50e..d26c9786 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -480,6 +480,8 @@ class Module(ModuleManager.BaseModule): def pull_request_review(self, full_name, data): if data["review"]["state"] == "commented": return [] + if not "submitted_at" in data["review"]: + return [] number = data["pull_request"]["number"] action = data["action"]