-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
48 lines (43 loc) · 1.37 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
pull_request_rules:
- name: Automatic merge on approval
conditions:
- "#approved-reviews-by>=1"
- base=master
- status-success=Check
- status-success=Test Suite
- status-success=rust code format style check
- status-success=clippy_check
actions:
merge:
method: rebase
- name: delete head branch after merge
conditions:
- merged
actions:
delete_head_branch: {}
- name: ask to format code
conditions:
- status-failure=rust code format style check
actions:
comment:
message: This pull request is now not keep same code style as this project. Could you fix it? 🙏 Just run `cargo fmt` to get more details.
- name: clippy check hint
conditions:
- status-failure=clippy_check
actions:
comment:
message: Clippy help us to improve our Rust code. Could you fix it? 🙏 Run `cargo clippy --all-targets --all-features -- -D warnings` to get more details.
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
message: This pull request is now in conflicts. Could you fix it? 🙏
- name: say hi on new contribution
conditions:
- author!=@M-Adoo
actions:
comment:
message: |
Welcome to Herald!
We're delight to have you onboard <3