Don't handle pull_request_review events when they've not been submitted
This commit is contained in:
parent
62eab40968
commit
e28885f746
1 changed files with 2 additions and 0 deletions
|
@ -480,6 +480,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
def pull_request_review(self, full_name, data):
|
def pull_request_review(self, full_name, data):
|
||||||
if data["review"]["state"] == "commented":
|
if data["review"]["state"] == "commented":
|
||||||
return []
|
return []
|
||||||
|
if not "submitted_at" in data["review"]:
|
||||||
|
return []
|
||||||
|
|
||||||
number = data["pull_request"]["number"]
|
number = data["pull_request"]["number"]
|
||||||
action = data["action"]
|
action = data["action"]
|
||||||
|
|
Loading…
Reference in a new issue