Skip to content

Add a flag to renovate-config-validator to auto-migrate a file #39410

@jamietanna

Description

@jamietanna

In the case that Renovate detects that there is a Config Migration necessary, running renovate-config-validator will log i.e.:

WARN: Config migration necessary
       "oldConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         ...
       },
       "newConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         ...
       }

It's possible to copy-paste the output from newConfig into your configuration file, but it's a little awkward.

We could provide a first-class means to --fix/--migrate the configuration file if we find any issues, to make it easier for folks to auto-migrate their configuration.

(This also has issues when using i.e. JSON5, where comments are lost - which AFAIK, is still an issue with automated config migration PRs, too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions