Skip to content

Commit

Permalink
Merge pull request #73 from CPS-IT/task/renovate-constraints
Browse files Browse the repository at this point in the history
[TASK] Let Renovate update template version constraints
  • Loading branch information
eliashaeussler authored Jan 30, 2024
2 parents d57c62c + 0fe5610 commit 61481a9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ 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"'
- identifier: typo3_console
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"'
Expand All @@ -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"]'
Expand Down
31 changes: 31 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,36 @@
],
"assignees": [
"eliashaeussler"
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^config\\.yaml$"
],
"matchStrings": [
"value: '(?<currentValue>[^']+)' # renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)"
]
},
{
"customType": "regex",
"fileMatch": [
"^templates/src/composer\\.json\\.twig$"
],
"matchStrings": [
"\"(?<depName>[\\w-]+/[\\w-]+)\": \"(?<currentValue>[^\"\\s]+)\""
],
"datasourceTemplate": "packagist"
}
],
"packageRules": [
{
"extends": [
":automergeDisabled"
],
"matchManagers": [
"regex"
]
}
]
}

0 comments on commit 61481a9

Please sign in to comment.