Run renovate in dry-run against specific branch? #16108
-
Is there a way to configure renovate to use the configuration from a specific branch instead of always using the mainline one? In my case we run renovate as a github workflow in each repo. We have a "Renovate Validation" github workflow which people can run in their branches, which runs the config validation on it. It's happening surprisingly often that people request this functionality internally and it doesn't look like it's supported. The workflows people have today is that either they blindly merge the changes and hope everything is fine. Or they fork the repo and make changes on the mainline branch of the fork to test it by running renovate manually locally etc. Do you have any ideas or suggestions here? Would it make sense at all to be able to override the branch the config reads from? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Renovate always looks in the default branch for config initially. You can't override that. But you can use |
Beta Was this translation helpful? Give feedback.
Renovate always looks in the default branch for config initially. You can't override that. But you can use
baseBranches
plus https://docs.renovatebot.com/configuration-options/#usebasebranchconfig to potentially achieve what you want, which means you can specify that whatever config is in that base branch overrides what's in the default branch. But an important caveat: the default branch config isn't ignored - it's just merged first, allowing the other base branch's config to merge second and override.