From 0fe56104804f396707262686d3db878bb84d081c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=A4u=C3=9Fler?= Date: Tue, 30 Jan 2024 10:38:29 +0100 Subject: [PATCH] [TASK] Let Renovate update template version constraints --- config.yaml | 6 +++--- renovate.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/config.yaml b/config.yaml index 9ee1f1f..d88ed15 100644 --- a/config.yaml +++ b/config.yaml @@ -66,7 +66,7 @@ properties: name: TYPO3 testing framework version type: dynamicSelect options: - - value: '^8.0' + - value: '^8.0' # renovate: datasource=packagist depName=typo3/testing-framework if: 'packages["typo3_cms"] == "12.4"' - value: '^7.0' if: 'packages["typo3_cms"] == "11.5"' @@ -74,7 +74,7 @@ properties: name: TYPO3 console version type: dynamicSelect options: - - value: '^8.0' + - value: '^8.0' # renovate: datasource=packagist depName=helhum/typo3-console if: 'packages["typo3_cms"] == "12.4"' - value: '^7.0.3' if: 'packages["typo3_cms"] == "11.5"' @@ -101,7 +101,7 @@ properties: name: Editorconfig CLI version type: dynamicSelect options: - - value: '^2.0' + - value: '^2.0' # renovate: datasource=packagist depName=armin/editorconfig-cli if: 'packages["php"] in ["8.2", "8.3"]' - value: '^1.5' if: 'packages["php"] in ["8.0", "8.1"]' diff --git a/renovate.json b/renovate.json index 35151f9..3fc28e3 100644 --- a/renovate.json +++ b/renovate.json @@ -6,5 +6,36 @@ ], "assignees": [ "eliashaeussler" + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^config\\.yaml$" + ], + "matchStrings": [ + "value: '(?[^']+)' # renovate: datasource=(?\\S+) depName=(?\\S+)" + ] + }, + { + "customType": "regex", + "fileMatch": [ + "^templates/src/composer\\.json\\.twig$" + ], + "matchStrings": [ + "\"(?[\\w-]+/[\\w-]+)\": \"(?[^\"\\s]+)\"" + ], + "datasourceTemplate": "packagist" + } + ], + "packageRules": [ + { + "extends": [ + ":automergeDisabled" + ], + "matchManagers": [ + "regex" + ] + } ] }