Merge pull request #12292 from ARMmbed/feature-mergify

Multiple labels need to be in an array of strings
pull/12297/head
Anna Bridge 2020-01-21 15:08:10 +00:00 committed by GitHub
commit 43a8c9000e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 42 deletions

View File

@ -31,11 +31,8 @@ pull_request_rules:
- "#changes-requested-reviews-by>0" - "#changes-requested-reviews-by>0"
actions: actions:
label: label:
add: add: ['needs: work']
- "needs: work" remove: ['needs: review', 'needs: CI']
remove:
- "needs: review"
- "needs: CI"
# From needs: review to needs: work - CI failure # From needs: review to needs: work - CI failure
- name: "label needs: work when travis-ci failed" - name: "label needs: work when travis-ci failed"
@ -44,11 +41,8 @@ pull_request_rules:
- status-failure~=continuous-integration/travis-ci/pr - status-failure~=continuous-integration/travis-ci/pr
actions: actions:
label: label:
add: add: ['needs: work']
- "needs: work" remove: ['needs: review', 'needs: CI']
remove:
- "needs: review"
- "needs: CI"
# From needs: review to needs: work - CI failure # From needs: review to needs: work - CI failure
- name: "label needs: work when Jenkins CI failed - pr head" - name: "label needs: work when Jenkins CI failed - pr head"
@ -57,11 +51,8 @@ pull_request_rules:
- status-failure~=continuous-integration/jenkins/pr-head - status-failure~=continuous-integration/jenkins/pr-head
actions: actions:
label: label:
add: add: ['needs: work']
- "needs: work" remove: ['needs: review','needs: CI']
remove:
- "needs: review"
- "needs: CI"
# From needs: review to needs: work - CI failure # From needs: review to needs: work - CI failure
- name: "label needs: work when Jenkins CI failed - any of the pipeline" - name: "label needs: work when Jenkins CI failed - any of the pipeline"
@ -70,11 +61,8 @@ pull_request_rules:
- status-failure~=^jenkins-ci - status-failure~=^jenkins-ci
actions: actions:
label: label:
add: add: ['needs: work']
- "needs: work" remove: ['needs: review', 'needs: CI']
remove:
- "needs: review"
- "needs: CI"
# From needs: review or needs: work to needs: CI. One approval means we should be good to start CI # From needs: review or needs: work to needs: CI. One approval means we should be good to start CI
- name: "label needs: CI when at least one reviewers approval" - name: "label needs: CI when at least one reviewers approval"
@ -93,11 +81,8 @@ pull_request_rules:
- -status-failure~=continuous-integration/jenkins/pr-head - -status-failure~=continuous-integration/jenkins/pr-head
actions: actions:
label: label:
add: add: ['needs: CI']
- "needs: CI" remove: ['needs: review', 'needs: work']
remove:
- "needs: review"
- "needs: work"
# Remove reviews after the branch is updated. This yet does not allow # Remove reviews after the branch is updated. This yet does not allow
# any other action like labels, etc. See mergify-engine/issues/360 # any other action like labels, etc. See mergify-engine/issues/360
@ -114,11 +99,9 @@ pull_request_rules:
- conflict - conflict
actions: actions:
label: label:
add: add: ['needs: work']
- "needs: work" remove: ['needs: review', 'needs: CI']
remove:
- "needs: review"
- "needs: CI"
comment: comment:
message: This PR cannot be merged due to conflicts. Please rebase to resolve them. message: This PR cannot be merged due to conflicts. Please rebase to resolve them.
@ -127,8 +110,7 @@ pull_request_rules:
- base~=^feature - base~=^feature
actions: actions:
label: label:
add: add: ['release-version: feature branch']
- "release-version: feature branch"
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested # Ready for integration. Not yet auto merge, will be enabled once carefuly tested
- name: label "ready for merge" when ready - name: label "ready for merge" when ready
@ -149,10 +131,8 @@ pull_request_rules:
- -status-failure~=^jenkins-ci - -status-failure~=^jenkins-ci
actions: actions:
label: label:
add: add: ['ready for merge']
- "ready for merge" remove: ['needs: CI']
remove:
- "needs: CI"
# Clean-up after merge # Clean-up after merge
- name: remove ready for merge when merged - name: remove ready for merge when merged
@ -161,16 +141,14 @@ pull_request_rules:
- "label=ready for merge" - "label=ready for merge"
actions: actions:
label: label:
remove: remove: ['ready for merge']
- "ready for merge"
- name: add "do not merge" label when WIP is in title - name: add "do not merge" label when WIP is in title
conditions: conditions:
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).* - title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
actions: actions:
label: label:
add: add: ['do not merge']
- "do not merge"
# Check if version label is applied # Check if version label is applied
- name: release version is a must for merged PRs - name: release version is a must for merged PRs
@ -179,8 +157,7 @@ pull_request_rules:
- -label~=^(release-version) - -label~=^(release-version)
actions: actions:
label: label:
add: add: ['Release review required']
- "Release review required"
comment: comment:
message: This PR does not contain release version label after merging. message: This PR does not contain release version label after merging.