forked from cake-contrib/Cake.Codecov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mergify.yml
41 lines (41 loc) · 1.52 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
pull_request_rules:
- name: Add Documentation label for documentation changes, but not in source
conditions:
- "files~=^(docs/.*|README.md|CODE_OF_CONDUCT.md|CONTRIBUTING.md)$"
- "-files~=^src/Cake.Codecov/.*$"
actions:
label:
add: ["Documentation"]
- name: Add build label when no change in source, and not in documentation
conditions:
- "-files~=^(docs/.*|README.md|CODE_OF_CONDUCT.md|CONTRIBUTING.md)$"
- "-files~=^src/Cake.Codecov/.*$"
- "-title~=Cake.Core"
actions:
label:
add: ["Build"]
- name: "Add Breaking change when Cake.Core is mentioned in title"
conditions:
- "title~=Cake.Core"
actions:
label:
add: ["Breaking Change"]
- name: "Merge Pull Request when CI passes, and no outstanding issues"
conditions:
- "status-success=continuous-integration/appveyor/pr"
- "status-success=continuous-integration/travis-ci/pr"
- "status-success=codecov/patch"
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
actions:
merge:
method: squash
strict: smart
- name: thank user and refer them to add themself as contributor
conditions:
- merged
actions:
comment:
message: "Thank you for your contribution, if you haven't already then feel free to add yourself as a contributors through the all-contributors bot. See https://allcontributors.org/docs/en/bot/usage for more information."