mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
ci: automatically remove ok-to-test
and set it when queuing a PR
The `ok-to-test` label currently needs to be removed and re-added when a PR is rebased for re-queuing. It should be possible to automate this, by removing the `ok-to-test` label when a PR gets queued. It can automatically be added again when the PR has embarked the merge train. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
628263e9b1
commit
2518c39956
38
.mergify.yml
38
.mergify.yml
@ -43,6 +43,15 @@ queue_rules:
|
||||
- "status-success=ci/centos/jjb-validate"
|
||||
|
||||
pull_request_rules:
|
||||
- name: start CI jobs for queued PR
|
||||
conditions:
|
||||
- base~=^(devel)|(release-.+)$
|
||||
- "check-pending=Queue: Embarked in merge train"
|
||||
actions:
|
||||
label:
|
||||
add:
|
||||
- ok-to-test
|
||||
|
||||
- name: remove outdated approvals
|
||||
conditions:
|
||||
- base~=^(devel)|(release-.+)$
|
||||
@ -50,6 +59,10 @@ pull_request_rules:
|
||||
dismiss_reviews:
|
||||
approved: true
|
||||
changes_requested: false
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: ask to resolve conflict
|
||||
conditions:
|
||||
- conflict
|
||||
@ -60,6 +73,10 @@ pull_request_rules:
|
||||
message: "This pull request now has conflicts with the target branch.
|
||||
Could you please resolve conflicts and force push the corrected
|
||||
changes? 🙏"
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: update dependencies by dependabot (skip commitlint)
|
||||
conditions:
|
||||
- author=dependabot[bot]
|
||||
@ -91,6 +108,9 @@ pull_request_rules:
|
||||
queue:
|
||||
name: default
|
||||
delete_head_branch: {}
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: dismiss review of merged pull request
|
||||
conditions:
|
||||
@ -98,6 +118,9 @@ pull_request_rules:
|
||||
- merged
|
||||
actions:
|
||||
dismiss_reviews: {}
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: automatic merge
|
||||
conditions:
|
||||
@ -130,6 +153,9 @@ pull_request_rules:
|
||||
queue:
|
||||
name: default
|
||||
delete_head_branch: {}
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: automatic merge PR having ready-to-merge label
|
||||
conditions:
|
||||
@ -161,6 +187,10 @@ pull_request_rules:
|
||||
queue:
|
||||
name: default
|
||||
delete_head_branch: {}
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
- name: backport patches to release-v3.6 branch
|
||||
conditions:
|
||||
- base=devel
|
||||
@ -169,6 +199,7 @@ pull_request_rules:
|
||||
backport:
|
||||
branches:
|
||||
- release-v3.6
|
||||
|
||||
- name: backport patches to release-v3.7 branch
|
||||
conditions:
|
||||
- base=devel
|
||||
@ -177,6 +208,7 @@ pull_request_rules:
|
||||
backport:
|
||||
branches:
|
||||
- release-v3.7
|
||||
|
||||
- name: remove outdated approvals on ci/centos
|
||||
conditions:
|
||||
- base=ci/centos
|
||||
@ -184,6 +216,7 @@ pull_request_rules:
|
||||
dismiss_reviews:
|
||||
approved: true
|
||||
changes_requested: false
|
||||
|
||||
- name: automatic merge on ci/centos
|
||||
conditions:
|
||||
- label!=DNM
|
||||
@ -199,6 +232,7 @@ pull_request_rules:
|
||||
queue:
|
||||
name: default
|
||||
delete_head_branch: {}
|
||||
|
||||
- name: automatic merge PR having ready-to-merge label on ci/centos
|
||||
conditions:
|
||||
- label!=DNM
|
||||
@ -213,6 +247,10 @@ pull_request_rules:
|
||||
queue:
|
||||
name: default
|
||||
delete_head_branch: {}
|
||||
label:
|
||||
remove:
|
||||
- ok-to-test
|
||||
|
||||
##
|
||||
## Automatically set/remove labels
|
||||
##
|
||||
|
Loading…
Reference in New Issue
Block a user