How to apply extends "group:monorepos" and "group:recommended" only to a certain update type? #39234
Unanswered
distor-sil3nt
asked this question in
Request Help
Replies: 1 comment 2 replies
|
There is an existing issue for this case: #31986 We haven't gotten time to look at it, though. You will need to remove the |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How are you running Renovate?
Self-hosted Renovate
Which platform you running Renovate on?
GitLab (.com or self-hosted)
Which version of Renovate are you using?
37.289.1 (2024-04-12)
Please tell us more about your question or problem
Hi support team,
In our project we are using the preset
config:recommendedwhich includes the group presetsgroup:monoreposandgroup:recommended. My goal is to apply these group presets only to major updates and use my custom grouppackageRulesforpatchandminorupdates types. Since the monorepo and recommended group presets seem to be more specific than thepackageRulesgroups I defined forpatchandminorupdates, they seem to override mypackageRulessettings. My rules settings are simply ignored as most packages are already addessed by the preset group settings.Is there any way to only apply those preset groups to the
majorupdate type?I tried something like this in
.renovaterc.json:{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:recommended", ":semanticCommitTypeAll(build)"], "ignorePresets": ["group:monorepos", "group:recommended"], "labels": ["Renovate"], "lockFileMaintenance": { "enabled": true }, "rangeStrategy": "bump", "semanticCommits": "enabled", "timezone": "Europe/Berlin", "packageRules": [ { "matchUpdateTypes": ["major"], "extends": ["group:monorepos", "group:recommended"] }, { "groupName": "Patch Updates", "groupSlug": "patch-updates", "matchUpdateTypes": ["patch"], "autoApprove": true, "automerge": true }, { "groupName": "Minor Updates", "groupSlug": "minor-updates", "matchUpdateTypes": ["minor"] } ] }But this gives me the error that
ignoreDepswhich is defined in the presetsgroup:monoreposandgroup:recommendedcannot be used inside package rules together withmatchUpdateTypes.Logs (if relevant)
Logs
All reactions