Skip to content

Commit 474955c

Browse files
committed
Add Mergify to the build
1 parent 5635a87 commit 474955c

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

.mergify.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# This file was automatically generated by sbt-typelevel-mergify using the
2+
# mergifyGenerate task. You should add and commit this file to
3+
# your git repository. It goes without saying that you shouldn't edit
4+
# this file by hand! Instead, if you wish to make changes, you should
5+
# change your sbt build configuration to revise the mergify configuration
6+
# to meet your needs, then regenerate this file.
7+
8+
pull_request_rules:
9+
- name: merge scala-steward's PRs
10+
conditions:
11+
- author=typelevel-steward[bot]
12+
- or:
13+
- body~=labels:.*early-semver-patch
14+
- body~=labels:.*early-semver-minor
15+
- status-success=Test (ubuntu-22.04, 2.12, corretto@11, rootSbtScalafix)
16+
- status-success=Test (ubuntu-22.04, 3, corretto@11, rootJS)
17+
- status-success=Test (ubuntu-22.04, 3, corretto@11, rootJVM)
18+
- status-success=Test (ubuntu-22.04, 2.13, corretto@11, rootJS)
19+
- status-success=Test (ubuntu-22.04, 2.13, corretto@11, rootJVM)
20+
- status-success=Test (ubuntu-22.04, 2.13, corretto@17, rootJVM)
21+
actions:
22+
merge: {}
23+
- name: Label examples PRs
24+
conditions:
25+
- files~=^examples/
26+
actions:
27+
label:
28+
add:
29+
- examples
30+
remove: []
31+
- name: Label google-cloud-http4s PRs
32+
conditions:
33+
- files~=^google-cloud-http4s/
34+
actions:
35+
label:
36+
add:
37+
- google-cloud-http4s
38+
remove: []
39+
- name: Label input PRs
40+
conditions:
41+
- files~=^scalafix/input/
42+
actions:
43+
label:
44+
add:
45+
- input
46+
remove: []
47+
- name: Label lambda PRs
48+
conditions:
49+
- files~=^lambda/
50+
actions:
51+
label:
52+
add:
53+
- lambda
54+
remove: []
55+
- name: Label lambda-cloudformation-custom-resource PRs
56+
conditions:
57+
- files~=^lambda-cloudformation-custom-resource/
58+
actions:
59+
label:
60+
add:
61+
- lambda-cloudformation-custom-resource
62+
remove: []
63+
- name: Label lambda-http4s PRs
64+
conditions:
65+
- files~=^lambda-http4s/
66+
actions:
67+
label:
68+
add:
69+
- lambda-http4s
70+
remove: []
71+
- name: Label output PRs
72+
conditions:
73+
- files~=^scalafix/output/
74+
actions:
75+
label:
76+
add:
77+
- output
78+
remove: []
79+
- name: Label rules PRs
80+
conditions:
81+
- files~=^scalafix/rules/
82+
actions:
83+
label:
84+
add:
85+
- rules
86+
remove: []
87+
- name: Label sbt-lambda PRs
88+
conditions:
89+
- files~=^sbt-lambda/
90+
actions:
91+
label:
92+
add:
93+
- sbt-lambda
94+
remove: []
95+
- name: Label tests PRs
96+
conditions:
97+
- files~=^scalafix/tests/
98+
actions:
99+
label:
100+
add:
101+
- tests
102+
remove: []
103+
- name: Label unidocs PRs
104+
conditions:
105+
- files~=^unidocs/
106+
actions:
107+
label:
108+
add:
109+
- unidocs
110+
remove: []

build.sbt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ ThisBuild / githubWorkflowBuildPreamble +=
4545
cond = Some("matrix.project == 'rootJS'")
4646
)
4747

48+
ThisBuild / mergifyStewardConfig ~= {
49+
_.map {
50+
_.withMergeMinors(true).withAuthor("typelevel-steward[bot]")
51+
}
52+
}
53+
4854
val Scala212 = "2.12.20"
4955
val Scala213 = "2.13.17"
5056
val Scala3 = "3.3.6"

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
val sbtlTlV = "0.8.2"
22
addSbtPlugin("org.typelevel" % "sbt-typelevel" % sbtlTlV)
33
addSbtPlugin("org.typelevel" % "sbt-typelevel-scalafix" % sbtlTlV)
4+
addSbtPlugin("org.typelevel" % "sbt-typelevel-mergify" % sbtlTlV)
45
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.1")
56
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")

0 commit comments

Comments
 (0)