Make sure we have a head_commit in the payload from Github

This commit is contained in:
Joseph Schorr 2014-05-16 15:45:13 -04:00
parent ee37cf2f4e
commit 62930aa9b5

View file

@ -315,8 +315,8 @@ class GithubBuildTrigger(BuildTrigger):
def handle_trigger_request(self, request, auth_token, config):
payload = request.get_json()
if not payload:
raise SkipRequestException()
if not payload or not 'head_commit' in payload:
raise SkipRequestException()
if 'zen' in payload:
raise ValidationRequestException()