Skip to content

Commit b21bb32

Browse files
authored
Open separate Dependabot PRs for major version updates (#4200)
Restrict the catch-all Dependabot groups targeting `2.x` and `main` to minor and patch updates. Major updates no longer match any group, so Dependabot opens a separate PR for each of them. Assisted-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6bfe235 commit b21bb32

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/dependabot.yaml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ updates:
5252
- "log4j-slf4j-impl/**"
5353
schedule:
5454
interval: "monthly"
55+
cooldown:
56+
default-days: 7
5557
groups:
56-
dependencies:
57-
patterns: [ "*" ]
58+
# Groups all non-major updates in a single PR.
59+
# No group matches major updates, so each one gets a separate PR.
60+
maven-minor-updates:
61+
update-types: [ "minor", "patch" ]
5862
target-branch: "2.x"
5963
registries:
6064
- maven-central
@@ -153,9 +157,13 @@ updates:
153157
- "/log4j-mongodb4"
154158
schedule:
155159
interval: "monthly"
160+
cooldown:
161+
default-days: 7
156162
groups:
157-
dependencies:
158-
patterns: [ "*" ]
163+
# Groups all non-major updates in a single PR.
164+
# No group matches major updates, so each one gets a separate PR.
165+
maven-minor-updates:
166+
update-types: [ "minor", "patch" ]
159167
target-branch: "2.x"
160168
registries:
161169
- maven-central
@@ -198,9 +206,13 @@ updates:
198206
directory: "/"
199207
schedule:
200208
interval: "monthly"
209+
cooldown:
210+
default-days: 7
201211
groups:
202-
dependencies:
203-
patterns: [ "*" ]
212+
# Groups all non-major updates in a single PR.
213+
# No group matches major updates, so each one gets a separate PR.
214+
maven-minor-updates:
215+
update-types: [ "minor", "patch" ]
204216
target-branch: "main"
205217
registries:
206218
- maven-central

0 commit comments

Comments
 (0)