From 6c2db4b14202ef7c7a54bd28b6fb1ebc88428be5 Mon Sep 17 00:00:00 2001 From: odubajDT <93584209+odubajDT@users.noreply.github.com> Date: Fri, 6 Dec 2024 07:52:24 +0100 Subject: [PATCH] [chore] remove deprecated regexMatcher from renovate config (#399) Signed-off-by: odubajDT --- renovate.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/renovate.json b/renovate.json index c9812f7e..5f2b3d5c 100644 --- a/renovate.json +++ b/renovate.json @@ -17,7 +17,7 @@ ], "packageRules": [ { - "matchPackagePatterns": ["^(go\\.opentelemetry\\.io/collector|github\\.com/open-telemetry/opentelemetry-collector-contrib)"], + "matchPackagePatterns": ["^(go\\.opentelemetry\\.io\/collector|github\\.com\/open-telemetry\/opentelemetry-collector-contrib)\/"], "matchPackageNames": ["open-telemetry/opentelemetry-collector-contrib"], "groupName": "OpenTelemetry Collector" }, @@ -39,13 +39,16 @@ "matchStrings": [ "# renovate: datasource=(?.+?) depName=(?.+?)\\s.*(:|=|\\?=|:=|\\+=) ?\\\"?(?.+?)?\\\"?\\s" ] + }, + { + "customType": "regex", + "fileMatch": [ + "^manifest.yaml$" + ], + "datasourceTemplate": "go", + "matchStrings": [ + "- gomod: (?(go\\.opentelemetry\\.io\/collector|github\\.com\/open-telemetry\/opentelemetry-collector-contrib|github\\.com\/dynatrace\/dynatrace-otel-collector)\/([A-Za-z0-9]+\/)*[A-Za-z0-9]+) (?v\\d+\\.\\d+\\.\\d+)\\n" + ] } - ], - "regexManagers": [ - { - "fileMatch": ["^manifest.yaml$"], - "matchStrings": ["- gomod: (?(go\\.opentelemetry\\.io\/collector|github\\.com\/open-telemetry\/opentelemetry-collector-contrib|github\\.com\/dynatrace\/dynatrace-otel-collector)\/([A-Za-z0-9]+\/)*[A-Za-z0-9]+) (?v\\d+\\.\\d+\\.\\d+)\\n"], - "datasourceTemplate": "github-releases" - } ] }