-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mergify.yml
58 lines (54 loc) · 1.75 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
pull_request_rules:
- name: Automatic merge when CI passes and PR is approved
conditions:
- status-success=continuous-integration/travis-ci/pr
- "#approved-reviews-by>=1"
actions:
merge:
method: squash
# Automatic merging on trivial scala-steward PRs
- name: automatic squash merge for scala-steward pull requests affecting build.sbt
conditions:
- author=scala-steward
- status-success=continuous-integration/travis-ci/pr
- "#files=1"
- files=build.sbt
actions:
merge:
method: squash
- name: automatic squash merge for scala-steward pull requests affecting project plugins.sbt
conditions:
- author=scala-steward
- status-success=continuous-integration/travis-ci/pr
- "#files=1"
- files=project/plugins.sbt
actions:
merge:
method: squash
- name: automatic squash merge for scala-steward pull requests affecting project build.properties
conditions:
- author=scala-steward
- status-success=continuous-integration/travis-ci/pr
- "#files=1"
- files=project/build.properties
actions:
merge:
method: squash
- name: automatic squash merge for scala-steward pull requests affecting .scalafmt.conf
conditions:
- author=scala-steward
- status-success=continuous-integration/travis-ci/pr
- "#files=1"
- files=.scalafmt.conf
actions:
merge:
method: squash
# Semi automatic merging if scala-steward PRs get more complex
- name: semi-automatic merge for scala-steward pull requests
conditions:
- author=scala-steward
- status-success=continuous-integration/travis-ci/pr
- "#approved-reviews-by>=1"
actions:
merge:
method: squash