Skip to content

Commit

Permalink
ci(Mergify): configuration update (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: zakir <null>
  • Loading branch information
zakir-code authored Sep 5, 2024
1 parent 3ba2e62 commit 1b46cc6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
queue_rules:
- name: default
merge_method: squash
update_method: merge
commit_message_template: |
{{ title }} (#{{ number }})
queue_conditions:
- "#approved-reviews-by>=2"

pull_request_rules:
- name: Automatic merge
description: Merge when PR passes all branch protection and has label automerge
conditions:
- "#approved-reviews-by>=2"
- base=main
- label = automerge
actions:
queue:
name: default
- name: Ping PR author when conflicting
description: Warn the pull request author when their PR are conflicting
conditions:
- conflict
- '-closed'
actions:
comment:
message: >
👋 {{author}} your PR is conflicting and needs to be updated to be
merged
- name: Add a queue label when PR is queued
description: Toggle the queue label when a pull request is (un)queued.
conditions:
- queue-position > 0
actions:
label:
toggle:
- merge-queued

0 comments on commit 1b46cc6

Please sign in to comment.