Prevent docker-ci to test closing PRs

This commit is contained in:
Daniel Mizyrycki 2013-10-14 14:00:01 -07:00
parent 93b258413f
commit 53a07d5475
1 changed files with 14 additions and 12 deletions

View File

@ -135,6 +135,9 @@ def process_change(payload, user, repo, repo_url, project):
return [] return []
else: else:
if 'pull_request' in payload: if 'pull_request' in payload:
if payload['action'] == 'closed':
log.msg("PR#{} closed, ignoring".format(payload['number']))
return []
changes = [{ changes = [{
'category' : 'github_pullrequest', 'category' : 'github_pullrequest',
'who' : '{0} - PR#{1}'.format(user,payload['number']), 'who' : '{0} - PR#{1}'.format(user,payload['number']),
@ -170,4 +173,3 @@ def process_change(payload, user, repo, repo_url, project):
project = project) project = project)
changes.append(chdict) changes.append(chdict)
return changes return changes