mirror of https://github.com/ARMmbed/mbed-os.git
Make all add /remove labels consistent, format wise
parent
958d4620b6
commit
7cbc8bb78d
48
.mergify.yml
48
.mergify.yml
|
@ -32,10 +32,8 @@ pull_request_rules:
|
|||
- "#changes-requested-reviews-by>0"
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: work"
|
||||
remove:
|
||||
- "needs: review"
|
||||
add: ['needs: work']
|
||||
remove: ['needs: review']
|
||||
|
||||
# From needs: review to needs: work - CI failure
|
||||
- name: "label needs: work when travis-ci failed"
|
||||
|
@ -45,10 +43,8 @@ pull_request_rules:
|
|||
- status-failure~=continuous-integration/travis-ci/pr
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: work"
|
||||
remove:
|
||||
- "needs: review"
|
||||
add: ['needs: work']
|
||||
remove: ['needs: review']
|
||||
|
||||
# From needs: review to needs: work - CI failure
|
||||
- name: "label needs: work when Jenkins CI failed - pr head"
|
||||
|
@ -58,10 +54,8 @@ pull_request_rules:
|
|||
- status-failure~=continuous-integration/jenkins/pr-head
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: work"
|
||||
remove:
|
||||
- "needs: review"
|
||||
add: ['needs: work']
|
||||
remove: ['needs: review']
|
||||
|
||||
# From needs: review to needs: work - CI failure
|
||||
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
|
||||
|
@ -71,10 +65,8 @@ pull_request_rules:
|
|||
- status-failure~=^jenkins-ci
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: work"
|
||||
remove:
|
||||
- "needs: review"
|
||||
add: ['needs: work']
|
||||
remove: ['needs: review']
|
||||
|
||||
# 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"
|
||||
|
@ -94,8 +86,7 @@ pull_request_rules:
|
|||
- -status-failure~=continuous-integration/jenkins/pr-head
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: CI"
|
||||
add: ['needs: CI']
|
||||
remove: ['needs: review', 'needs: work']
|
||||
|
||||
# Conflict in the PR - needs: work and a comment to notify a user
|
||||
|
@ -105,8 +96,7 @@ pull_request_rules:
|
|||
- conflict
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "needs: work"
|
||||
add: ['needs: work']
|
||||
remove: ['needs: review', 'needs: CI']
|
||||
|
||||
comment:
|
||||
|
@ -118,8 +108,7 @@ pull_request_rules:
|
|||
- base~=^feature
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "release-version: feature branch"
|
||||
add: ['release-version: feature branch']
|
||||
|
||||
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
|
||||
- name: label "ready for merge" when ready
|
||||
|
@ -141,10 +130,8 @@ pull_request_rules:
|
|||
- -status-failure~=^jenkins-ci
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "ready for merge"
|
||||
remove:
|
||||
- "needs: CI"
|
||||
add: ['ready for merge']
|
||||
remove: ['needs: CI']
|
||||
|
||||
# Clean-up after merge
|
||||
- name: remove ready for merge when merged
|
||||
|
@ -154,8 +141,7 @@ pull_request_rules:
|
|||
- "label=ready for merge"
|
||||
actions:
|
||||
label:
|
||||
remove:
|
||||
- "ready for merge"
|
||||
remove: ['ready for merge']
|
||||
|
||||
- name: add "do not merge" label when WIP is in title
|
||||
conditions:
|
||||
|
@ -163,8 +149,7 @@ pull_request_rules:
|
|||
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "do not merge"
|
||||
add: ['do not merge']
|
||||
|
||||
# Check if version label is applied
|
||||
- name: release version is a must for merged PRs
|
||||
|
@ -174,8 +159,7 @@ pull_request_rules:
|
|||
- -label~=^(release-version)
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- "Release review required"
|
||||
add: ['Release review required']
|
||||
comment:
|
||||
message: This PR does not contain release version label after merging.
|
||||
|
||||
|
|
Loading…
Reference in New Issue