Make sure we have a head_commit in the payload from Github
This commit is contained in:
parent
ee37cf2f4e
commit
62930aa9b5
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue