diff options
| author | 2019-02-21 11:19:36 +0000 | |
|---|---|---|
| committer | 2019-02-21 11:19:36 +0000 | |
| commit | e28885f7461b5a1f94fd48744985251ec22eed48 (patch) | |
| tree | 9e391b60c9ad44bd988693cfd7b08645d3cfe1df /modules/github | |
| parent | Revert "Treat both `a` and `a=` as having a value of None in message-tags (ut... (diff) | |
| signature | ||
Don't handle pull_request_review events when they've not been submitted
Diffstat (limited to 'modules/github')
| -rw-r--r-- | modules/github/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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"] |
