-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mergify.yml
50 lines (50 loc) · 1.39 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
queue_rules:
- name: default
# speculative_checks: 3
# batch_size: 2
conditions:
- check-success=Lint
pull_request_rules:
- name: approve self-reviewed PR
conditions:
# If you must merge a PR without a review, then use this label
# to have Mergify merge it for you instead of merging it yourself.
# This way we at least guarantee that all automated checks pass
# before changes are merged to the main branch.
- "label=self-review"
actions:
review:
type: APPROVE
message: Automatically approving self-reviewed PR
- name: label PRs ready for review
conditions:
- base=main
- -draft
- check-success=Lint
actions:
label:
add:
# Addition of this label triggers a GitHub webhook
# that sends a Slack message to #prs channel.
- ready-for-review
- name: queue approved PR
conditions:
- base=main
- -draft
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- check-success=Lint
actions:
queue:
name: default
method: rebase
priority: high
- name: close stale pull request
conditions:
- base=main
- -closed
- updated-at<14 days ago
actions:
close:
message: |
This pull request looks stale. Feel free to reopen it if you think it is a mistake.