feature: migrate users old config to new config with a Renovatebot PR #8235
Labels
duplicate
This issue is closed as a duplicate of another issue
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:feature
Feature (new functionality)
Introduction
I saw that a user had a problem with
masterIssue
not passing the Renovate validation properly.Well of course it does not pass the validation, because it was the wrong term, they should have used
masterIssueApproval
... 😄But then I wondered, how do we handle
masterIssueApproval
?So I set up a reproduction repo to test what the bot does now.
You can find my repo here: https://github.com/HonkingGoose/validate-masterIssueApproval-migration
What would you like Renovate to be able to do?
To the best of my knowledge, the bot silently migrates the "bad config" to a "good config" behind the scenes.
I was thinking it would be nice if the Renovate bot opens a PR to migrate old terms to new terms.
Something like: "migrate
masterIssueApproval
todependencyDashboardApproval
".This way the user is always using current and supported terms in their config.
Relevant snippet of log
The bot already knows that some config migration is necessary.
It also seems to silently migrate/massage the config into the right shape.
Did you already have any implementation ideas?
Maybe we can use the
migrated config
from the DEBUG log in some way?The text was updated successfully, but these errors were encountered: