Skip to content

Commit

Permalink
ci: add .mergify.yml (#19)
Browse files Browse the repository at this point in the history
Change-Id: I4db35d20054d5116d6af7c4e5c750f01089dadff

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
sileht and mergify[bot] authored Oct 23, 2024
1 parent 51a1c04 commit 9821682
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
extends: .github
shared:
DefaultQueueOptions: &DefaultQueueOptions
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
allow_inplace_checks: true
merge_method: squash

merge_queue:
max_parallel_checks: 5

queue_rules:
- name: default
<<: *DefaultQueueOptions

- name: lowprio
<<: *DefaultQueueOptions
queue_conditions:
- author = renovate[bot]
merge_method: merge
batch_size: 7
batch_max_wait_time: 5min
commit_message_template: null
queue_branch_merge_method: fast-forward
disallow_checks_interruption_from_queues:
- default

pull_request_rules:
- name: automatic merge
conditions:
- base=main
- label!=manual merge
actions:
queue:

- name: request review
conditions:
- -author=renovate[bot]
- -merged
- -closed
- "#changes-requested-reviews-by=0"
- review-requested!=@devs
- and:
- not:
or: &DefaultReviewCond
- "#approved-reviews-by>=2"
- and:
- author = renovate[bot]
actions:
request_reviews:
teams:
- devs

merge_protections:
- name: 👀 Review Requirements
if:
- label != hotfix
success_conditions:
- or: *DefaultReviewCond

0 comments on commit 9821682

Please sign in to comment.