Skip to content

Commit 491fd15

Browse files
Add renovate.json for Autorest versioning at client generation
1 parent 11433a3 commit 491fd15

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

renovate.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,43 @@
88
"matchManagers": ["github-actions"],
99
"groupName": "GitHub Actions"
1010
}
11+
],
12+
"customManagers": [
13+
{
14+
"customType": "regex",
15+
"managerFilePatterns": [
16+
"diracx-testing/src/diracx/testing/client_generation.py"
17+
],
18+
"versioningTemplate": "npm",
19+
"datasourceTemplate": "npm",
20+
"depNameTemplate": "autorest",
21+
"matchStrings": [
22+
"AUTOREST_VERSION\\s*=\\s*[\"'](?<currentValue>\\S+)[\"']"
23+
]
24+
},
25+
{
26+
"customType": "regex",
27+
"managerFilePatterns": [
28+
"diracx-testing/src/diracx/testing/client_generation.py"
29+
],
30+
"versioningTemplate": "npm",
31+
"datasourceTemplate": "npm",
32+
"depNameTemplate": "@autorest/core",
33+
"matchStrings": [
34+
"AUTOREST_CORE_VERSION\\s*=\\s*[\"'](?<currentValue>\\S+)[\"']"
35+
]
36+
},
37+
{
38+
"customType": "regex",
39+
"managerFilePatterns": [
40+
"diracx-testing/src/diracx/testing/client_generation.py"
41+
],
42+
"versioningTemplate": "npm",
43+
"datasourceTemplate": "npm",
44+
"matchStrings": [
45+
"AUTOREST_PUGINS\\s*=\\s*{[^}]*}",
46+
"\\s*[\"'](?<depName>\\S+)[\"']:\\s*[\"'](?<currentValue>\\S+)[\"'],?"
47+
]
48+
}
1149
]
1250
}

0 commit comments

Comments
 (0)