aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-17 10:33:12 +0100
committerGravatar jesopo2019-04-17 10:33:12 +0100
commit537613545d128695a62c799767dc04d476a84dd6 (patch)
tree6e7057f643088d6a7afccf98207ca6168f41eab1 /modules
parentAdd IRCServer.send_raw so modules don't have to parse messages before sending (diff)
signature
Only show 'submitted' pull_request_review events
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py3
1 files changed, 3 insertions, 0 deletions
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 []