mergify: enable it only for feature-mergify

This will be reverted once mergify works with the PR workflow.
One rule for each condition - base is feature-mergify.
pull/12255/head
Martin Kojtal 2020-01-14 13:13:57 +00:00
parent ec0c69ce14
commit e4cd9387dc
1 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,7 @@ pull_request_rules:
# From needs: review to needs: work - reviewers request
- name: "label needs: work when changes were requested"
conditions:
- base~=feature-mergify
# Reviewers
- "#changes-requested-reviews-by>0"
actions:
@ -37,6 +38,7 @@ pull_request_rules:
# From needs: review to needs: work - CI failure
- name: "label needs: work when travis-ci failed"
conditions:
- base~=feature-mergify
# Travis failing
- status-failure~=continuous-integration/travis-ci/pr
actions:
@ -49,6 +51,7 @@ pull_request_rules:
# From needs: review to needs: work - CI failure
- name: "label needs: work when Jenkins CI failed - pr head"
conditions:
- base~=feature-mergify
# Jenkins CI failing
- status-failure~=continuous-integration/jenkins/pr-head
actions:
@ -61,6 +64,7 @@ pull_request_rules:
# From needs: review to needs: work - CI failure
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
conditions:
- base~=feature-mergify
# Jenkins CI failing - any of the pipeline
- status-failure~=^jenkins-ci
actions:
@ -73,6 +77,7 @@ pull_request_rules:
# From needs: review to needs: CI
- name: "label needs: CI when at least one reviewers approval"
conditions:
- base~=feature-mergify
# Labels
- "label!=needs: work"
- "label!=needs: preceding PR"
@ -95,6 +100,7 @@ pull_request_rules:
# Conflict in the PR - needs: work and a comment to notify a user
- name: "label needs: work when there is a conflict"
conditions:
- base~=feature-mergify
- conflict
actions:
label:
@ -107,6 +113,7 @@ pull_request_rules:
- name: "add label feature branch for feature branch additions"
conditions:
- base~=feature-mergify
- base~=^feature
actions:
label:
@ -116,6 +123,7 @@ pull_request_rules:
# Ready for integration. Not yet auto merge, will be enabled once carefuly tested
- name: label "ready for merge" when ready
conditions:
- base~=feature-mergify
# Labels
- label!=do not merge
- "label=needs: CI"
@ -140,6 +148,7 @@ pull_request_rules:
# Clean-up after merge
- name: remove ready for merge when merged
conditions:
- base~=feature-mergify
- merged
- label=ready for merge
actions:
@ -149,6 +158,7 @@ pull_request_rules:
- name: add "do not merge" label when WIP is in title
conditions:
- base~=feature-mergify
- title~=^(\[wip\]( |:) |\[WIP\]( |:) |wip( |:) |WIP( |:)).*
actions:
label:
@ -158,6 +168,7 @@ pull_request_rules:
# Check if version label is applied
- name: release version is a must for merged PRs
conditions:
- base~=feature-mergify
- merged
- -label~=^(release-version)
actions: