-
Notifications
You must be signed in to change notification settings - Fork 14
/
.mergify.yml
45 lines (44 loc) · 1.17 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: backport patches to v7.5.x branch
conditions:
- base=main
- label=backport/v7.5.x
actions:
backport:
branches:
- release/v7.5.x
- 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