Repository navigation
feat: group all Node.js and @types/node updates - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Groups every Node.js-related update into a single PR:
nodeimages,engines.node,devEngines.runtime,.nvmrc,.node-version,.tool-versions/mise, andvolta(alldockerornode-versiondatasources)@types/node(npm datasource)Two rules share
groupName: "node", so Renovate merges matches from different datasources into one branch/PR.{ "description": "Group Node.js runtime updates across Docker images, nvm, nodenv, asdf, mise, engines, and devEngines", "matchDatasources": ["docker", "node-version"], "matchPackageNames": ["/(?:^|/)node$/"], "groupName": "node", "commitMessageTopic": "Node.js" }, { "description": "Group @types/node updates with the Node.js runtime", "matchDatasources": ["npm"], "matchPackageNames": ["@types/node"], "groupName": "node", "commitMessageTopic": "Node.js" }The Docker matcher uses upstream's regex (
(?:^|/)node$) without its Kubernetes/helper-image exclusions, since the org does not usekindest/nodeorcalico/node.Why not just extend
group:nodeJs? Upstream's preset only setscommitMessageTopic— it has nogroupName, so it renames the commit but does not group branches (see Renovate'slib/config/presets/internal/group.preset.ts).Scope notes:
engines.nodekeepsrangeStrategy: auto, so supported ranges are not pinned.@types/nodemajor policy stays per repository; grouping only merges the resulting PRs.Verification
default.jsonparses as valid JSONrenovate-config-validatorworkflow runs on this PR