-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Read configuration from the branch(es) in baseBranches
#2496
Comments
Thanks, this is not a duplicate. The most important thing to decide is how the second configuration overrides the one in Let's say that the other branch is called |
As for the example, I agree it would be the complete config rather than a partial in that case. And as for the types of overrides: If a repository only has a single base branch listed, it is rather simple: If a repository has multiple
Of course I guess it's also possible to make it configurable for each base branch, rather than a "global" setting for enabling it on all the base branches. |
Thanks for the further ideas. I think it's maybe clear to me now:
So I'm thinking of an option Do you think that satisfies your requirements? |
Yes, that's actually exactly how I imagined it to be, after reading your first comment. |
Is there any update on this issue? In any case, it will be a very useful option for testing renovate config before merging it to the default branch. |
I think this would be useful for some of our projects too. They have a |
Another perspective why this could be helpful: I'd like to dry run renovate in merge requests changing the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'd like to take this one. |
My plan for implementing this:
https://github.com/renovatebot/renovate/blob/main/docs/usage/configuration-options.md
renovate/lib/workers/repository/process/index.ts Lines 12 to 23 in 8e377e8
Check if we have 3.1. Checkout the base branch. Could you please let me know if this is a suitable plan? |
I think it might be easier if you restricted this feature to working with the same file name in the base branches as in the default branch. That way you could use platform.getJsonFile() although once you extend it to support |
🎉 This issue has been resolved in version 31.38.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
I'm sorry in advance if this is a duplicate. I tried searching for some keywords but nothing came up.
What would you like Renovate to be able to do?
Read
renovate.json
configuration from the branch(es) inbaseBranches
instead of the repository's default branch, so changes inbaseBranches
are applied instantaneously.At
pymedusa/Medusa
we have two "main" branches:master
anddevelop
.master
is the repo's default branchdevelop
is used for development and is the single branch listed underbaseBranches
on therenovate.json
config file.(We use the GitHub app if that matters)
When we change the renovate configuration we have to wait until the next release to
master
in order for the changes to be applied.Describe the solution you'd like
Would it be possible, to have a config option to "tell" the renovate bot to read the configuration (sans-
baseBranches
and other "risky" options?) from thebaseBranch
that is configured on the default branch?So when it is enabled, the bot will consider the configuration defined in
renovate.json
on thebaseBranch
it is creating the dependency update branch and PR.So for example,
if the default branch's
renovate.json
currently doesn't contain alabels
property,but the
baseBranch
'srenovate.json
contains"labels": ["update dep"]
- it should apply the label to the PR being opened against thatbaseBranch
.Describe alternatives you've considered
Switching the default branch to
develop
, which is not viable in our case.Additional context
N/A
We've been using the renovate GitHub app in our Python+JS project for two months now and we're very pleased! Thank you for this amazing service and support!
/cc @OmgImAlexis
The text was updated successfully, but these errors were encountered: