mirror of https://github.com/docker/docs.git
Prevent docker-ci to test closing PRs
This commit is contained in:
parent
93b258413f
commit
53a07d5475
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue