Skip to content

Update renovate configuration #1627

@ManuelMoeri

Description

@ManuelMoeri

Is your feature request related to a problem? Please describe.
While doing a few dozen renovate pull request I took the time to update the renovate.json to improve grouping of a few pull requests. I also updated some outdated commands. The only one I was not able to update is the
matchPackagePrefixes

Describe the solution you'd like
matchPackagePrefixes should be replaced with matchPackageNames as suggested by renovate themselves.

WARN: Config needs migrating
       "configType": "renovate.json",
       "originalConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:recommended", ":rebaseStalePrs"],
         "schedule": ["* 1-5 * * 1-5"],
         "automergeSchedule": ["* 5-7 * * 1-5"],
         "automergeType": "pr",
         "timezone": "Europe/Zurich",
         "packageRules": [
           {
             "groupName": "All Angular packages",
             "matchPackageNames": ["^@angular", "^@angular-eslint"],
             "matchUpdateTypes": ["major", "minor", "patch"]
           },
           {
             "groupName": "All devDependencies (minor and patch)",
             "matchDepTypes": ["devDependencies"],
             "matchUpdateTypes": ["minor", "patch"],
             "automerge": true
           },
           {
             "groupName": "All ESLint packages",
             "matchPackageNames": ["eslint", "typescript-eslint"],
             "matchUpdateTypes": ["major", "minor", "patch"]
           },
           {
             "matchDatasources": ["maven"],
             "matchPackagePrefixes": ["ch.puzzle.okr"],
             "matchDepTypes": ["parent"],
             "enabled": false
           }
         ]
       },
       "migratedConfig": {
         "$schema": "https://docs.renovatebot.com/renovate-schema.json",
         "extends": ["config:recommended", ":rebaseStalePrs"],
         "schedule": ["* 1-5 * * 1-5"],
         "automergeSchedule": ["* 5-7 * * 1-5"],
         "automergeType": "pr",
         "timezone": "Europe/Zurich",
         "packageRules": [
           {
             "groupName": "All Angular packages",
             "matchPackageNames": ["^@angular", "^@angular-eslint"],
             "matchUpdateTypes": ["major", "minor", "patch"]
           },
           {
             "groupName": "All devDependencies (minor and patch)",
             "matchDepTypes": ["devDependencies"],
             "matchUpdateTypes": ["minor", "patch"],
             "automerge": true
           },
           {
             "groupName": "All ESLint packages",
             "matchPackageNames": ["eslint", "typescript-eslint"],
             "matchUpdateTypes": ["major", "minor", "patch"]
           },
           {
             "matchDatasources": ["maven"],
             "matchDepTypes": ["parent"],
             "enabled": false,
             "matchPackageNames": ["ch.puzzle.okr{/,}**"]
           }
         ]
       }

Additional context
To run local test runs of this I suggest looking at this post.

This error occured on the renovate repository after changing to matchPackageNames

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions