From 26d357514b05eaf1d1355d95b363c71890ebc1d4 Mon Sep 17 00:00:00 2001 From: "Brian P. Holt" Date: Thu, 26 Oct 2023 15:05:59 -0500 Subject: [PATCH] let Mergify automatically merge PRs when they're changing the minor version of a dependency --- .mergify.yml | 4 +++- build.sbt | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index c170e9a..a19f05c 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -9,7 +9,9 @@ pull_request_rules: - name: merge scala-steward's PRs conditions: - author=scala-steward - - body~=labels:.*early-semver-patch + - or: + - body~=labels:.*early-semver-patch + - body~=labels:.*early-semver-minor - status-success=Build and Test (ubuntu-latest, 2.13, temurin@17) actions: merge: {} diff --git a/build.sbt b/build.sbt index 260be4a..af21922 100644 --- a/build.sbt +++ b/build.sbt @@ -42,6 +42,9 @@ ThisBuild / githubWorkflowPublish := Seq( ) ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))) ThisBuild / tlCiMimaBinaryIssueCheck := false +ThisBuild / mergifyStewardConfig ~= { + _.map(_.copy(mergeMinors = true)) +} lazy val root = project.in(file(".")).enablePlugins(NoPublishPlugin).aggregate( `fake-ec2-metadata-service`