ci: don't dismiss review if PR has not merged

Pull requests are not going to be queued if at the same time the pull
request review are dismiss

Original-author: Mehdi ABAAKOUK <sileht@sileht.net>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-01-11 19:41:51 +01:00 committed by Humble Devassy Chirammal
parent 177cc078e1
commit a553157b15

View File

@ -107,8 +107,15 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
- name: dismiss review of merged pull request
conditions:
- base~=^(devel)|(release-.+)$
- merged
actions:
dismiss_reviews: {}
- name: automatic merge
conditions:
- label!=DNM
@ -139,8 +146,8 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
- name: automatic merge PR having ready-to-merge label
conditions:
- label!=DNM
@ -170,7 +177,6 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
- name: backport patches to release-v3.5 branch
conditions:
@ -249,7 +255,6 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
- name: remove outdated approvals on ci/centos
conditions:
@ -272,7 +277,6 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
- name: automatic merge PR having ready-to-merge label on ci/centos
conditions:
@ -287,7 +291,6 @@ pull_request_rules:
actions:
queue:
name: default
dismiss_reviews: {}
delete_head_branch: {}
##
## Automatically set/remove labels