Skip to content

Commit 51f9897

Browse files
authored
chore: Group dependabot updates together + add cooldown (#345)
Group more dependabot updates together to avoid having an excessive number of PRs. Also add a cooldown so that updates aren't updated immediately. This only applies to version bumps and not security bumps Co-authored-by: Mackenzie Zastrow <[email protected]>
1 parent 1d314e1 commit 51f9897

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

.github/dependabot.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
17
version: 2
28
updates:
3-
- package-ecosystem: "npm"
4-
directory: "/"
9+
- package-ecosystem: 'npm'
10+
directory: '/'
511
schedule:
6-
interval: "daily"
12+
interval: 'daily'
713
open-pull-requests-limit: 100
814
commit-message:
915
prefix: ci
16+
cooldown: # Set a cooldown so that we don't get updates immediately
17+
default-days: 5
18+
semver-major-days: 30
19+
semver-minor-days: 7
20+
semver-patch-days: 3
1021
groups:
22+
# Group all development updates in a single PR
1123
development-dependencies:
12-
dependency-type: "development"
13-
patterns:
14-
- "*"
15-
- package-ecosystem: "github-actions"
16-
directory: "/"
24+
dependency-type: 'development'
25+
applies-to: version-updates
26+
# Group minor production updates in a single PR
27+
production-minor:
28+
dependency-type: 'production'
29+
applies-to: version-updates
30+
update-types:
31+
- 'minor'
32+
- 'patch'
33+
# Because major production updates aren't matched by any group, they will have individual PRs
34+
- package-ecosystem: 'github-actions'
35+
directory: '/'
1736
schedule:
18-
interval: "daily"
37+
interval: 'daily'
1938
open-pull-requests-limit: 100
2039
commit-message:
21-
prefix: ci
40+
prefix: ci

0 commit comments

Comments
 (0)