I fail to create the onboarding PR in a branch that is not the default one #8812
Unanswered
jjcaballero
asked this question in
Request Help
Replies: 1 comment 8 replies
-
Renovate's config must me in the default branch (master) even if you configure an alternative base branch. If you have no package files in the default branch to trigger the onboarding PR then you can commit a renovate config fine manually and then run the bot. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Please, how is the process to create the onboarding PR (MR in GitLab) in a branch that is not the default one?
The master branch contains neither package files nor the renovate configuration file.
The next branch contains a version file but in a customized path and with a customized name, let's say: dependencies/blah_version.txt
Right now, the MR is not created because it states that no version file was found. That's right in the default branch there is no versions file. Only the next branch contains version files.
In order to specify the next branch, I haved modified the baseBranches parameter in the config.js which triggers/call renovate.
baseBranches: ['master', 'next'],
Note that I would like to keep master branch because other repositories are using that branch as the base for renovate.
Even with that configuration, I see the same error. And the next branch is not verified:
DEBUG: jjcaballero/test-onboarding-renovate default branch = master (repository=jjcaballero/test-onboarding-renovate)
Even, if I remove 'master' from there, I still see the same error.
Then, how can we onboard a project in this scenario? Can I confirm that the branch used is the default one from the previous log message?
I assume if I manage to have this working, then I will have the problem with the customized path for the version file. For this:
Should I create the configuration file specifying the version file in the next branch before triggering renovate onboarding process?
The logs:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions