-
Notifications
You must be signed in to change notification settings - Fork 956
/
.mergify.yml
51 lines (45 loc) · 1.23 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
46
47
48
49
50
51
merge_queue:
max_parallel_checks: 3
queue_rules:
- name: main-queue
batch_size: 3
queue_conditions:
- "#approved-reviews-by >= 1"
- base = main
merge_method: merge
- name: backport-0.45-queue
batch_size: 3
queue_conditions:
- "#approved-reviews-by >= 1"
- base = maint-0.45
merge_method: merge
pull_request_rules:
- name: automatic merge to main or backport branch
conditions:
- label = "merge"
- label != "do-not-merge"
- "#approved-reviews-by >= 1"
- or:
- base = main
- base = maint-0.45
actions:
queue:
autosquash: true
- name: notify when a PR is removed from the queue
conditions:
- queue-dequeue-reason != none
- queue-dequeue-reason != pr-merged
actions:
comment:
message: >
Hey @{{author}}, your pull request has been dequeued due to the following
reason: {{queue_dequeue_reason}}.
Sorry about that, but you can requeue the PR by using `@mergifyio requeue`
if you think this was a mistake.
- name: backport PR to 0.45 lane
conditions:
- label = backport-45
actions:
backport:
branches:
- "maint-0.45"