Override base branches for previous package rules #28538
-
What would you like help with?I would like help with my configuration How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitHub Please tell us more about your question or problemI have a preset shared among multiple GitHub repositories with the following {
"groupName": "3rd Party Dev Dependencies (Patch)",
"matchManagers": ["npm"],
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^0/",
"matchDepTypes": ["devDependencies"],
}, I then have a {
"extends": ["github>MyOrg/renovate-config//presets/base.json5"],
"baseBranches": ["main", "develop"],
"packageRules": {
{
"matchManagers": ["github-actions"],
"matchBaseBranches": ["main"],
},
{
"matchManagers": ["npm"],
"matchBaseBranches": ["develop"],
}
}
} The problem is that I'm still seeing a PR for "3rd Party Dev Dependencies (Patch)" created against "main" instead of "develop". Is it possible to achieve the behaviour I'm looking for? i.e. all npm changes should target develop and all github-actions changes should target main. Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your packageRules don't do anything. They say "if matching X and Y" and no "then do Z". By default Renovate will update everything in both base branches. So if you want to change that, you need to add some rules with enabled=false in order to disable some. e.g. want npm only on develop branch? You need to disable them on main |
Beta Was this translation helpful? Give feedback.
Your packageRules don't do anything. They say "if matching X and Y" and no "then do Z".
By default Renovate will update everything in both base branches. So if you want to change that, you need to add some rules with enabled=false in order to disable some. e.g. want npm only on develop branch? You need to disable them on main