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:
commit
f4a98b4598
1 changed files with 14 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue