diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..5788fc3 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,80 @@ +# 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=scala-steward + - body~=labels:.*early-semver-patch + - status-success=Test (ubuntu-22.04, 2.12, temurin@8) + - status-success=Test (ubuntu-22.04, 2.13, temurin@8) + actions: + merge: {} +- name: Label benchmark PRs + conditions: + - files~=^benchmark/ + actions: + label: + add: + - benchmark + remove: [] +- name: Label effect3 PRs + conditions: + - files~=^effect3/ + actions: + label: + add: + - effect3 + remove: [] +- name: Label finagle PRs + conditions: + - files~=^finagle/ + actions: + label: + add: + - finagle + remove: [] +- name: Label input PRs + conditions: + - files~=^scalafix/input/ + actions: + label: + add: + - input + remove: [] +- name: Label output PRs + conditions: + - files~=^scalafix/output/ + actions: + label: + add: + - output + remove: [] +- name: Label rules PRs + conditions: + - files~=^scalafix/rules/ + actions: + label: + add: + - rules + remove: [] +- name: Label tests PRs + conditions: + - files~=^scalafix/tests/ + actions: + label: + add: + - tests + remove: [] +- name: Label util PRs + conditions: + - files~=^util/ + actions: + label: + add: + - util + remove: [] diff --git a/build.sbt b/build.sbt index f16d8a3..4eda404 100644 --- a/build.sbt +++ b/build.sbt @@ -50,7 +50,7 @@ lazy val allSettings = baseSettings lazy val root = project .in(file(".")) - .enablePlugins(GhpagesPlugin, ScalaUnidocPlugin, NoPublishPlugin) + .enablePlugins(GhpagesPlugin, ScalaUnidocPlugin, NoPublishPlugin, MergifyPlugin) .settings(allSettings) .settings( ScalaUnidoc / unidoc / unidocProjectFilter := inAnyProject -- inProjects( diff --git a/project/build.properties b/project/build.properties index e97b272..abbbce5 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.10.10 +sbt.version=1.9.8 diff --git a/project/plugins.sbt b/project/plugins.sbt index 08fb9ba..ad135fe 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,6 +5,8 @@ addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.3.1") addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.2") +addSbtPlugin("org.typelevel" % "sbt-typelevel-mergify" % "0.7.7") +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.16") ThisBuild / libraryDependencySchemes ++= Seq( "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always