Allow Renovate to migrate its own configuration #17190
Labels
core:config
Related to config capabilities and presets
status:requirements
Full requirements are not yet known, so implementation should not be started
type:feature
Feature (new functionality)
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: