Skip to content
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

Fix Renovate config migration warning #5354

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Fix Renovate config migration warning #5354

merged 1 commit into from
Jan 26, 2024

Conversation

TWiStErRob
Copy link
Collaborator

@TWiStErRob TWiStErRob commented Jan 13, 2024

Description

Note: this can be prevented with the strict option, but it depends on external factors: a release of renovate can break master. Note the v1 version of this action (pending in dependency dashboard is enabling strict by default).

Motivation and Context

===> RENOVATE_CONFIG_FILE="renovate.json" npx --package "renovate" -c renovate-config-validator
npm WARN exec The following package was not found and will be installed: [email protected]
 INFO: Validating renovate.json
 WARN: Config migration necessary
       "oldConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:base"],
         "semanticCommits": "disabled",
         "packageRules": [
           {
             "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
             "automerge": true,
             "automergeType": "branch"
           }
         ]
       },
       "newConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:recommended"],
         "semanticCommits": "disabled",
         "packageRules": [
           {
             "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
             "automerge": true,
             "automergeType": "branch"
           }
         ]
       }
 WARN: Config needs migrating
       "originalConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:base"],
         "semanticCommits": "disabled",
         "packageRules": [
           {
             "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
             "automerge": true,
             "automergeType": "branch"
           }
         ]
       },
       "migratedConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:recommended"],
         "semanticCommits": "disabled",
         "packageRules": [
           {
             "matchUpdateTypes": ["minor", "patch", "pin", "digest"],
             "automerge": true,
             "automergeType": "branch"
           }
         ]
       }
 INFO: Validating renovate.json
 INFO: Config validated successfully

@TWiStErRob TWiStErRob changed the title Fix config migration warning Fix Renovate config migration warning Jan 13, 2024
@sjudd sjudd merged commit 17620f5 into master Jan 26, 2024
7 checks passed
@sjudd sjudd deleted the renovate-warnings branch January 26, 2024 04:05
@sjudd
Copy link
Collaborator

sjudd commented Jan 26, 2024

Thanks! sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants