Skip to content

Commit 5a89990

Browse files
refactor: optimize Dependabot configuration
- Target develop branch only (no PRs to main) - Change from weekly to monthly updates (reduce noise) - Reduce open PR limits (npm: 5→3, actions: 3→2, docker: 3→2) - Group ALL dependencies by type (fewer PRs): - All dev dependencies in one PR - All production minor/patch in one PR - All production major in separate PR - All GitHub Actions in one PR - All Docker images in one PR Result: Maximum 3-5 PRs per month instead of many per week
1 parent 7dc40ec commit 5a89990

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ updates:
77
- package-ecosystem: "npm"
88
directory: "/"
99
schedule:
10-
interval: "weekly"
10+
interval: "monthly" # Changed from weekly to monthly
1111
day: "monday"
1212
time: "09:00"
1313
timezone: "UTC"
14-
open-pull-requests-limit: 5
14+
target-branch: "develop" # Only create PRs against develop branch
15+
open-pull-requests-limit: 3 # Reduced from 5 to 3
1516
labels:
1617
- "dependencies"
1718
- "npm"
@@ -22,15 +23,24 @@ updates:
2223
include: "scope"
2324
# Group updates for better PR management
2425
groups:
26+
# Group ALL development dependencies into ONE PR
2527
development-dependencies:
2628
dependency-type: "development"
2729
update-types:
2830
- "minor"
2931
- "patch"
32+
- "major" # Include major updates too
33+
# Group ALL production dependencies into ONE PR
3034
production-dependencies:
3135
dependency-type: "production"
3236
update-types:
3337
- "patch"
38+
- "minor"
39+
# Separate group for major production updates
40+
production-major-dependencies:
41+
dependency-type: "production"
42+
update-types:
43+
- "major"
3444
# Version update strategy
3545
versioning-strategy: increase
3646
# Ignore specific packages if needed
@@ -49,19 +59,20 @@ updates:
4959
- package-ecosystem: "github-actions"
5060
directory: "/"
5161
schedule:
52-
interval: "weekly"
62+
interval: "monthly" # Changed from weekly to monthly
5363
day: "monday"
5464
time: "09:00"
5565
timezone: "UTC"
56-
open-pull-requests-limit: 3
66+
target-branch: "develop" # Only create PRs against develop branch
67+
open-pull-requests-limit: 2 # Reduced from 3 to 2
5768
labels:
5869
- "github-actions"
5970
- "dependencies"
6071
- "automated"
6172
commit-message:
6273
prefix: "ci"
6374
include: "scope"
64-
# Group GitHub Actions updates
75+
# Group ALL GitHub Actions updates into ONE PR
6576
groups:
6677
github-actions:
6778
patterns:
@@ -71,15 +82,21 @@ updates:
7182
- package-ecosystem: "docker"
7283
directory: "/"
7384
schedule:
74-
interval: "weekly"
85+
interval: "monthly" # Changed from weekly to monthly
7586
day: "monday"
7687
time: "09:00"
7788
timezone: "UTC"
78-
open-pull-requests-limit: 3
89+
target-branch: "develop" # Only create PRs against develop branch
90+
open-pull-requests-limit: 2 # Reduced from 3 to 2
7991
labels:
8092
- "docker"
8193
- "dependencies"
8294
- "automated"
8395
commit-message:
8496
prefix: "build"
8597
include: "scope"
98+
# Group all Docker updates into ONE PR
99+
groups:
100+
docker-images:
101+
patterns:
102+
- "*"

0 commit comments

Comments
 (0)