Skip to content

Commit 62c72dd

Browse files
authored
Make Dependabot ignore patch updates to JS dependencies (#6967)
It seems like the greatest number of Dependabot PR spam comes from the JavaScript dependencies for cirq-web. This change to the "npm" Dependabot config makes it group minor and/or patch version updates into a single PR if they are not security-related changes; all other updates (meaning, any security updates, and any major version updates) will be handled using the default method, which is separate PRs. This `groups` configuration is based on [an example in the Dependabot documentation](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/optimizing-pr-creation-version-updates#example-3-individual-pull-requests-for-major-updates-and-grouped-for-minorpatch-updates).
1 parent eb54c07 commit 62c72dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ updates:
5050
schedule:
5151
interval: "weekly"
5252
versioning-strategy: "widen"
53+
groups:
54+
# Group non-security version minor & patch updates into one PR.
55+
# Security and major update versions will be done as individual PRs.
56+
non-security:
57+
applies-to: "version-updates"
58+
dependency-type: "development"
59+
update-types:
60+
- "minor"
61+
- "patch"
5362
labels:
5463
- "area/dependencies"
5564
- "area/javascript"

0 commit comments

Comments
 (0)