forked from dfinity/motoko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
73 lines (71 loc) · 1.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
queue_rules:
- name: default
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- status-success=tests (ubuntu-latest)
- status-success=tests (macos-12)
pull_request_rules:
- name: Automatic merge (squash)
conditions:
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- status-success=tests (ubuntu-latest)
- status-success=tests (macos-12)
- base=master
- label=automerge-squash
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
delete_head_branch: {}
- name: Automatically closing successful trials
conditions:
- status-success=tests (ubuntu-latest)
- status-success=tests (macos-12)
- label=autoclose
actions:
close:
message: CI looks good, this dependency bump would not cause problems, hence closing this trial PR.
delete_head_branch: {}
- name: Clean up automerge tags
conditions:
- closed
actions:
label:
remove:
- automerge-squash
- autoclose
- name: Auto-approve auto-PRs
conditions:
- author=dfinity-bot
- label=automerge-squash
actions:
review:
type: APPROVE
message: This bot trusts that bot
- name: Auto-approve changelog/release PR
conditions:
- files=Changelog.md
- "#files=1"
- label=automerge-squash
actions:
review:
type: APPROVE
message: A change to `Changelog.md`? I can handle that!
- name: Auto-approve dependabot PR
conditions:
- -merged
- -closed
- files=doc/docusaurus/package-lock.json
- "#files=1"
actions:
review:
type: APPROVE
message: A change to `doc/docusaurus/package-lock.json`? I can handle that!
label:
add:
- automerge-squash