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"
|
- "#changes-requested-reviews-by>0"
|
||||||
actions:
|
actions:
|
||||||
label:
|
label:
|
||||||
add:
|
add: ['needs: work']
|
||||||
- "needs: work"
|
remove: ['needs: review']
|
||||||
remove:
|
|
||||||
- "needs: review"
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
@ -45,10 +43,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']
|
||||||
remove:
|
|
||||||
- "needs: review"
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
@ -58,10 +54,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']
|
||||||
remove:
|
|
||||||
- "needs: review"
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
@ -71,10 +65,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']
|
||||||
remove:
|
|
||||||
- "needs: review"
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
@ -94,8 +86,7 @@ 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']
|
||||||
|
|
||||||
# Conflict in the PR - needs: work and a comment to notify a user
|
# Conflict in the PR - needs: work and a comment to notify a user
|
||||||
|
@ -105,8 +96,7 @@ 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:
|
||||||
|
@ -118,8 +108,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
|
||||||
|
@ -141,10 +130,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
|
||||||
|
@ -154,8 +141,7 @@ 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:
|
||||||
|
@ -163,8 +149,7 @@ pull_request_rules:
|
||||||
- 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
|
||||||
|
@ -174,8 +159,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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue