ci(Mergify): configuration update (#4105)

Signed-off-by: teor <teor@riseup.net>
This commit is contained in:
teor 2022-04-13 10:28:03 +10:00 committed by GitHub
parent 90c6980630
commit 9055f0f3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 11 deletions

25
.github/mergify.yml vendored
View File

@ -4,30 +4,37 @@ queue_rules:
allow_checks_interruption: False allow_checks_interruption: False
speculative_checks: 2 speculative_checks: 2
batch_size: 2 batch_size: 2
conditions:
# Mergify automatically applies status check, approval, and conversation rules,
# which are the same as the GitHub main branch protection rules
# https://docs.mergify.com/conditions/#about-branch-protection
- base=main
- name: medium - name: medium
allow_inplace_checks: False allow_inplace_checks: False
allow_checks_interruption: False allow_checks_interruption: False
speculative_checks: 2 speculative_checks: 2
batch_size: 3 batch_size: 3
conditions:
- base=main
- name: low - name: low
allow_inplace_checks: False allow_inplace_checks: False
allow_checks_interruption: False allow_checks_interruption: False
speculative_checks: 2 speculative_checks: 2
batch_size: 4 batch_size: 4
conditions:
- base=main
pull_request_rules: pull_request_rules:
- name: move to urgent queue when CI passes with 1 review and not WIP targeting main - name: move to urgent queue when CI passes with 1 review and not WIP targeting main
conditions: conditions:
- '#approved-reviews-by>=1'
- '#review-threads-unresolved=0'
- -draft
- base=main - base=main
- -draft
- label!=do-not-merge
- or: - or:
- 'label~=^P-Critical' - 'label~=^P-Critical'
- 'label~=^P-High' - 'label~=^P-High'
- label!=do-not-merge
actions: actions:
queue: queue:
name: urgent name: urgent
@ -35,12 +42,10 @@ pull_request_rules:
- name: move to medium queue when CI passes with 1 review and not WIP targeting main - name: move to medium queue when CI passes with 1 review and not WIP targeting main
conditions: conditions:
- '#approved-reviews-by>=1'
- '#review-threads-unresolved=0'
- -draft
- base=main - base=main
- 'label~=^P-Medium' - -draft
- label!=do-not-merge - label!=do-not-merge
- 'label~=^P-Medium'
actions: actions:
queue: queue:
name: medium name: medium
@ -48,10 +53,8 @@ pull_request_rules:
- name: move to low queue when CI passes with 1 review and not WIP targeting main - name: move to low queue when CI passes with 1 review and not WIP targeting main
conditions: conditions:
- '#approved-reviews-by>=1'
- '#review-threads-unresolved=0'
- -draft
- base=main - base=main
- -draft
- label!=do-not-merge - label!=do-not-merge
# This queue handles Low, Optional, and PRs with no priority label, # This queue handles Low, Optional, and PRs with no priority label,
# including automated dependabot PRs. # including automated dependabot PRs.