Skip to content

Commit 3ae1823

Browse files
Merge pull request #14 from etchteam/feat/add-mergify
Add mergify
2 parents 41e3e8a + d6bcded commit 3ae1823

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/mergify.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
pull_request_rules:
3+
- name: Auto-merge dependabot updates when checks pass
4+
conditions:
5+
- author=dependabot[bot]
6+
- label!=wontfix
7+
actions:
8+
review:
9+
type: APPROVE
10+
message: Automatically approving dependabot
11+
merge:
12+
method: merge
13+
- name: Auto-merge when all checks pass and the PR has been approved
14+
conditions:
15+
- "#changes-requested-reviews-by=0"
16+
- "#approved-reviews-by>=1"
17+
actions:
18+
merge:
19+
method: squash
20+
- name: Ask for reviews
21+
conditions:
22+
- -closed
23+
- -draft
24+
- -author=dependabot[bot]
25+
actions:
26+
request_reviews:
27+
teams:
28+
- devs
29+
random_count: 2
30+
- name: Assign PR to its author
31+
conditions:
32+
- "#files=1"
33+
actions:
34+
assign:
35+
add_users:
36+
- "{{author}}"

0 commit comments

Comments
 (0)