From 8b08c741ee6503a21aaf88f12760ee01a6515c78 Mon Sep 17 00:00:00 2001 From: Marcin Procyk Date: Fri, 27 Oct 2023 13:55:19 +0200 Subject: [PATCH] chore: Group dependency updates (#2906) --- .scala-steward.conf | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.scala-steward.conf b/.scala-steward.conf index 17072a9a51..0323afedcc 100644 --- a/.scala-steward.conf +++ b/.scala-steward.conf @@ -7,4 +7,41 @@ updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage", version = "1.9.3" } ] +# pullRequests.grouping allows you to specify how Scala Steward should group +# your updates in order to reduce the number of pull-requests. +# +# Updates will be placed in the first group with which they match, starting +# from the first in the array. Those that do not match any group will follow +# the default procedure (one PR per update). +# +# Each element in the array will have the following schema: +# +# - name (mandatory): the name of the group, will be used for things like naming the branch +# - title (optional): if provided it will be used as the title for the PR +# - filter (mandatory): a non-empty list containing the filters to use to know +# if an update falls into this group. +# +# `filter` properties would have this format: +# +# { +# version = "major" | "minor" | "patch" | "pre-release" | "build-metadata", +# group = "{group}", +# artifact = "{artifact}" +# } +# +# For more information on the values for the `version` filter visit https://semver.org/ +# Every field in a `filter` is optional but at least one must be provided. +# For grouping every update together a filter like {group = "*"} can be # provided. +# To create a new PR for each unique combination of artifact-versions, include ${hash} in the name. +# +# Default: [] +pullRequests.grouping = [ + { name = "patches", "title" = "chore: Patch updates", "filter" = [{"version" = "patch"}] }, + { name = "minor_major", "title" = "chore: Minor/major updates", "filter" = [{"version" = "minor"}, {"version" = "major"}] }, + { name = "all", "title" = "chore: Dependency updates", "filter" = [{"group" = "*"}] } +] + +# If set, Scala Steward will use this message template for the commit messages and PR titles. +# Supported variables: ${artifactName}, ${currentVersion}, ${nextVersion} and ${default} +# Default: "${default}" which is equivalent to "Update ${artifactName} to ${nextVersion}" commits.message = "chore: Update ${artifactName} from ${currentVersion} to ${nextVersion}"