forked from catalyst-team/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
39 lines (36 loc) · 1.1 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
pull_request_rules:
# removes reviews done by collaborators when the pull request is updated
- name: remove outdated reviews
conditions:
- base=master
actions:
dismiss_reviews:
# automatic merge for master when required CI passes
- name: automatic merge for master when CI passes and 2 review
conditions:
- "#approved-reviews-by>=2"
- label!=WIP
actions:
merge:
method: squash
# - name: automatic merge for master when CI passes and 2 review
# conditions:
# - "#approved-reviews-by>=3"
# - approved-reviews-by=github-actions
# - label!=WIP
# actions:
# merge:
# method: squash
# deletes the head branch of the pull request, that is the branch which hosts the commits
- name: delete head branch after merge
conditions:
- merged
actions:
delete_head_branch: {}
# ask author of PR to resolve conflict
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
message: "This pull request is now in conflicts. @{{ author }}, could you fix it? 🙏"