Skip to content

Commit

Permalink
Setup automatic merge of update PRs (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
joroKr21 committed Oct 30, 2022
1 parent 495b90e commit 8cf5d0a
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 3 deletions.
59 changes: 59 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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: 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, 3.1.3, temurin@8, rootJS)
- status-success=Build and Test (ubuntu-latest, 3.1.3, temurin@8, rootJVM)
- status-success=Build and Test (ubuntu-latest, 3.1.3, temurin@8, rootNative)
actions:
merge: {}
- name: Label deriving PRs
conditions:
- files~=^modules/deriving/
actions:
label:
add:
- deriving
remove: []
- name: Label local PRs
conditions:
- files~=^local/
actions:
label:
add:
- local
remove: []
- name: Label site PRs
conditions:
- files~=^site/
actions:
label:
add:
- site
remove: []
- name: Label test PRs
conditions:
- files~=^modules/test/
actions:
label:
add:
- test
remove: []
- name: Label typeable PRs
conditions:
- files~=^modules/typeable/
actions:
label:
add:
- typeable
remove: []
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ThisBuild / updateOptions := updateOptions.value.withLatestSnapshots(false)

// GHA configuration
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / mergifyStewardConfig :=
Some(MergifyStewardConfig(author = "typelevel-steward[bot]", mergeMinors = true))

val jsSettings = Def.settings(
tlVersionIntroduced := Map("3" -> "3.0.1")
Expand Down
7 changes: 4 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.4.16")
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.4.16")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.7")
addSbtPlugin("org.typelevel" % "sbt-typelevel-mergify" % "0.4.16")
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % "0.4.16")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.7")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.2.0")

0 comments on commit 8cf5d0a

Please sign in to comment.