-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy path.mergify.yml
More file actions
36 lines (35 loc) · 1.14 KB
/
Copy path.mergify.yml
File metadata and controls
36 lines (35 loc) · 1.14 KB
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
queue_rules:
- name: default
update_method: merge
queue_conditions:
- "#approved-reviews-by>=1"
- -label~=(do-not-merge)
- status-success=build
merge_method: squash
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}
pull_request_rules:
# Approvals must cover the commits actually being merged. Without this,
# the auto-approve bot's review (or any human review) would keep
# satisfying `#approved-reviews-by>=1` after arbitrary new commits are
# pushed, letting unreviewed content auto-merge. Dismissing on every
# push forces a fresh approval (for label-gated PRs: remove and re-add
# the `auto-approve` label) before the queue rule can fire again.
- name: Dismiss stale approvals when new commits are pushed
conditions:
- base=main
actions:
dismiss_reviews:
approved: true
- name: Automatic merge on approval and successful build
actions:
delete_head_branch: {}
queue:
name: default
conditions:
- "#approved-reviews-by>=1"
- -label~=(do-not-merge)
- status-success=build
merge_queue:
max_parallel_checks: 1