Skip to content

Commit ee63756

Browse files
committed
resolve codeQL issue on dependabot config...
The error occurs because you have two update configurations targeting the same package ecosystem (`npm`) and directory (`/`). GitHub doesn't allow this direct overlap, even though your intent is to handle major updates separately from minor/patch updates. This new configuration: 1. Uses a single update configuration for all npm dependencies 2. Groups minor and patch updates together (with the specified exclusions) 3. Doesn't group major updates (so they'll each get their own PR) 4. Limits the number of open PRs to 5 5. Applies the "dependencies" label to all dependency PRs
1 parent 32e616e commit ee63756

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,26 @@
55

66
version: 2
77
updates:
8-
# Configuration for minor and patch updates (grouped)
8+
# Configuration for all updates
99
- package-ecosystem: 'npm'
1010
directory: '/'
1111
schedule:
1212
interval: 'weekly'
13-
# Only allow minor and patch updates
14-
ignore:
15-
- dependency-name: '*'
16-
update-types: ['version-update:semver-major']
13+
# Group minor and patch updates
1714
groups:
18-
dependencies:
15+
minor-patch-dependencies:
1916
patterns:
2017
- '*'
18+
update-types:
19+
- 'minor'
20+
- 'patch'
2121
exclude-patterns:
2222
- '@types/*' # Exclude type definitions from grouping for better clarity
23+
# Handle major updates separately (they won't be grouped)
24+
# Limit the number of open PRs for major updates
25+
open-pull-requests-limit: 5
2326
labels:
2427
- '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'
28+
commit-message:
29+
prefix: 'deps'
30+
include: 'scope'

0 commit comments

Comments
 (0)