-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Allow traffic analytics Docker updates to automerge #27196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
In Renovate packageRules, if a rule has matchDatasources + matchPackageNames + automerge=true but no matchUpdateTypes, does it apply to all update types (major/minor/patch/digest/pin) for that dependency? Also, when another matching rule sets dependencyDashboardApproval=true for major updates, how are these rules combined?💡 Result:
Yes. If a
packageRulesentry only hasmatchDatasources+matchPackageNames(and nomatchUpdateTypes), then it matches that dependency regardless of update type—i.e., it’s not restricted to major/minor/patch/pin/digest unless you add a matcher likematchUpdateTypes. Renovate evaluates all rules, and a rule only “filters” on thematch...fields you actually specify. [1]matchUpdateTypesis just an optional matcher (default is an empty list). [2]When multiple
packageRulesmatch the same dependency update, Renovate merges the resulting config, and later rules can override earlier ones if they set the same option. [1]So if one matching rule sets
automerge: true(withoutmatchUpdateTypes), and another matching rule setsdependencyDashboardApproval: trueformatchUpdateTypes: ["major"], then for major updates you effectively get both:automerge=trueanddependencyDashboardApproval=true(unless one of the rules explicitly overrides the other setting). [1][3]Practical implication: major updates would still be subject to dashboard approval (Renovate “waits for your approval … before PRs are created”). [3] If your intent is “automerge everything except major”, then you typically either (a) scope the automerge rule to non-major update types, or (b) add a later major-only rule that sets
automerge: false. [1][2]Sources
[1] Renovate docs –
packageRulesare all evaluated; matching rules are merged; order matters/overrides; matcher logic (“all matchers must match”). (docs.renovatebot.com)[2] Renovate docs –
packageRules.matchUpdateTypes(matcher; default[]; allowed update types). (docs.renovatebot.com)[3] Renovate docs –
dependencyDashboardApprovalmeaning (“wait for your approval … before PRs are created”; can be set inpackageRules). (docs.renovatebot.com)Citations:
Add
matchUpdateTypesconstraint to scope automerge to patch updates onlyThe rule at lines 99–110 lacks
matchUpdateTypes, which means it applies to all Docker update types (major, minor, patch, etc.) forghost/traffic-analytics, not just patches as the comment states. Without this constraint, the rule will automerge major and minor updates in addition to patches.Suggested fix
{ "matchDatasources": [ "docker" ], "matchPackageNames": [ "ghost/traffic-analytics" ], + "matchUpdateTypes": [ + "patch" + ], "automerge": true, "automergeType": "pr" },📝 Committable suggestion
🤖 Prompt for AI Agents