Skip to content

Commit cbfe3cb

Browse files
committed
prevent major version bumps from dependabot
1 parent d172c38 commit cbfe3cb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,39 @@
55

66
version: 2
77
updates:
8+
# Configuration for minor and patch updates (grouped)
89
- package-ecosystem: 'npm'
910
directory: '/'
1011
schedule:
1112
interval: 'weekly'
13+
# Only allow minor and patch updates
14+
ignore:
15+
- dependency-name: '*'
16+
update-types: ['version-update:semver-major']
1217
groups:
1318
dependencies:
1419
patterns:
1520
- '*'
21+
exclude-patterns:
22+
- '@types/*' # Exclude type definitions from grouping for better clarity
23+
labels:
24+
- 'dependencies'
25+
- 'minor-patch-update'
26+
27+
# Separate configuration for major version updates
28+
- package-ecosystem: 'npm'
29+
directory: '/'
30+
schedule:
31+
interval: 'monthly' # Check less frequently to avoid PR noise
32+
# Only include major updates
33+
ignore:
34+
- dependency-name: '*'
35+
update-types: ['version-update:semver-minor', 'version-update:semver-patch']
36+
# Don't group major updates so they can be reviewed individually
37+
open-pull-requests-limit: 5 # Limit the number of open PRs for major updates
38+
labels:
39+
- 'dependencies'
40+
- 'major-update'
41+
- 'breaking-change'
42+
assignees:
43+
- 'nilock'

0 commit comments

Comments
 (0)