-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow Renovate to migrate its own configuration #17190
Comments
that's a lot more complicated that you think |
Is it? Renovate already produces
Maybe, instead of having to reverse-engineering the To be honest, I would already be very happy with simple notification-style PR, where I still have to do the work. The current problem is mainly that necessary changes go completely unnoticed, not that it's too much work to make the changes. My original plan was to parse the JSON from the log and post that as a PR. Which is essentially the same thing, just as a hacky workaround instead of a native feature. |
This issue may be a duplicate of this earlier one? Or maybe there are key differences between the issues, and we should keep both... 🙈 |
What would you like Renovate to be able to do?
It would be cool if Renovate could post config-migration PRs for its own
config.json/js
in the same way that it can forrenovate.json
of managed repositories.If you have any ideas on how this should be implemented, please tell us here.
We use self-hosted Renovate running in a GitLab-CI Repo/Pipeline. Currently "Config needs migrating ..." logs aren't very useful because they end up in Renovate's own pipeline logs, which we don't usually check (it's supposed to be automated, right).
I was really hoping the
configMigration
feature could turn these log messages aboutconfig.js
needing migrating into a PR that would updateconfig.js
. Unfortunately, this seems to only be available for therepository.json
files of the managed repositories.From what I can gather, Renovate currently uses its config migration code in two separate places:
config.js
and results in the log message "Config needs migrating" or [nothing].renovate.json
and results in a migration PR or the debug message "checkConfigMigrationBranch() Config does not need migration".Maybe these usages could be unified somehow to allow both to produce config-migration PRs?
I suppose, I could also extract the shared settings into another, separate repository, also managed by renovate. This
renovate.json
could then be used by all repositories, including renovate itself. But that seems quite complicated (if includingrenovate.json
intoconfig.js
is even permitted, not sure...). In any case, being able to migrateconfig.js
too seems like a useful feature to me.Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: