Skip to content

Commit

Permalink
reconfigure Mergify with sbt-typelevel-mergify
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Oct 4, 2024
1 parent 2db0f00 commit 10074e4
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
55 changes: 47 additions & 8 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,49 @@
# This file was automatically generated by sbt-typelevel-mergify using the
# mergifyGenerate task. You should add and commit this file to
# your git repository. It goes without saying that you shouldn't edit
# this file by hand! Instead, if you wish to make changes, you should
# change your sbt build configuration to revise the mergify configuration
# to meet your needs, then regenerate this file.

pull_request_rules:
- name: automatically merge scala-steward's PRs
conditions:
- author=scala-steward
- body~=labels:.*semver-patch.*
- status-success=build
actions:
merge:
method: merge
- name: merge scala-steward's PRs
conditions:
- author=typelevel-steward[bot]
- or:
- body~=labels:.*early-semver-patch
- body~=labels:.*early-semver-minor
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@17, rootJS)
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@17, rootJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@17, rootNative)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17, rootJS)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17, rootJVM)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17, rootNative)
- status-success=Build and Test (ubuntu-latest, 3, temurin@17, rootJS)
- status-success=Build and Test (ubuntu-latest, 3, temurin@17, rootJVM)
- status-success=Build and Test (ubuntu-latest, 3, temurin@17, rootNative)
actions:
merge: {}
- name: Label docs PRs
conditions:
- files~=^modules/docs/
actions:
label:
add:
- docs
remove: []
- name: Label examples PRs
conditions:
- files~=^modules/examples/
actions:
label:
add:
- examples
remove: []
- name: Label http4s PRs
conditions:
- files~=^modules/http4s/
actions:
label:
add:
- http4s
remove: []
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ ThisBuild / homepage := Some(url("https://github.com/tpolecat/natchez-http4s"))
ThisBuild / developers := List(
Developer("tpolecat", "Rob Norris", "[email protected]", url("http://www.tpolecat.org"))
)
ThisBuild / mergifyStewardConfig := Some(
MergifyStewardConfig(
author = "typelevel-steward[bot]",
mergeMinors = true
)
)

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))

Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.7.3")
addSbtPlugin("org.typelevel" % "sbt-typelevel-mergify" % "0.7.3")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.7")
addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.7.0")
addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
Expand Down

0 comments on commit 10074e4

Please sign in to comment.