1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #2211 from mzdaniel/2190-docker-ci

Prevent docker-ci to test closing PRs
This commit is contained in:
Daniel Mizyrycki 2013-10-14 14:12:23 -07:00
commit f4a98b4598

View file

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