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