Don't handle pull_request_review events when they've not been submitted

This commit is contained in:
jesopo 2019-02-21 11:19:36 +00:00
parent 62eab40968
commit e28885f746

View file

@ -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"]