From 68ab8eefdff6c281efe49ff24732d505619127aa Mon Sep 17 00:00:00 2001 From: Gertjan van Oosten Date: Wed, 13 Oct 2021 12:21:00 +0200 Subject: [PATCH] Fix Renovate config warnings Validation can be run from the command-line. Before this change: ``` $ npx --package renovate '-c renovate-config-validator' INFO: Validating .github/renovate.json WARN: .github/renovate.json contains warnings "warnings": [ { "topic": "Configuration Error", "message": "packageRules[0]: Each packageRule must contain at least one non-match* or non-exclude* field. Rule: {\"matchPackagePatterns\":[\"*\"]}" } ] ``` After this change: ``` $ npx --package renovate '-c renovate-config-validator' INFO: Validating .github/renovate.json INFO: Config validated successfully ``` --- .github/renovate.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 79014030ed..d45053cb3b 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -8,15 +8,9 @@ "labels": ["dependencies"], "packageRules": [ { - "matchPackagePatterns": ["*"], - "minor": { - "groupName": "most non-major dependencies", - "groupSlug": "most-minor-patch" - }, - "patch": { - "groupName": "most non-major dependencies", - "groupSlug": "most-minor-patch" - } + "matchUpdateTypes": ["minor", "patch"], + "groupName": "most non-major dependencies", + "groupSlug": "most-minor-patch" }, { "matchPackagePatterns": ["^org.liquibase"],