Skip to content

Commit 2cb5e45

Browse files
committed
chore: refactor Renovate configuration for improved readability and structure
1 parent 7249bdf commit 2cb5e45

1 file changed

Lines changed: 81 additions & 133 deletions

File tree

.github/renovate.json5

Lines changed: 81 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,176 +1,124 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: [
44
"config:best-practices",
55
":semanticCommitTypeAll(deps)",
66
":semanticCommitScopeDisabled",
77
"group:allNonMajor",
8-
"helpers:pinGitHubActionDigests"
8+
"helpers:pinGitHubActionDigests",
99
],
10-
"enabledManagers": [
10+
enabledManagers: [
1111
"github-actions",
1212
"gradle",
1313
"gradle-wrapper",
1414
"npm",
1515
"pnpm",
1616
"maven",
17-
"regex"
17+
"regex",
1818
],
19-
"semanticCommitType": "deps",
20-
"semanticCommitScope": "",
21-
"labels": [
22-
"type|dependency-upgrade",
23-
"pr|deps"
24-
],
25-
"ignorePaths": [
26-
"**/__tests__/**"
27-
],
28-
"timezone": "UTC",
29-
"schedule": [
30-
"* 22,23,0,1,2,3,4,5,6,7 */3 * *"
31-
],
32-
"minimumReleaseAge": "3 days",
33-
"pinDigests": true,
34-
"ignoreUnstable": false,
35-
"dependencyDashboard": true,
36-
"vulnerabilityAlerts": {
37-
"enabled": true
19+
semanticCommitType: "deps",
20+
semanticCommitScope: "",
21+
labels: ["type|dependency-upgrade", "pr|deps"],
22+
ignorePaths: ["**/__tests__/**"],
23+
timezone: "UTC",
24+
schedule: ["* 22,23,0,1,2,3,4,5,6,7 */3 * *"],
25+
minimumReleaseAge: "3 days",
26+
pinDigests: true,
27+
ignoreUnstable: false,
28+
dependencyDashboard: true,
29+
vulnerabilityAlerts: {
30+
enabled: true,
3831
},
39-
"osvVulnerabilityAlerts": true,
40-
"automerge": true,
41-
"automergeStrategy": "squash",
42-
"packageRules": [
32+
osvVulnerabilityAlerts: true,
33+
automerge: true,
34+
automergeStrategy: "squash",
35+
packageRules: [
4336
{
44-
"description": "Automerge GitHub Actions (minor/patch/digest)",
45-
"matchManagers": [
46-
"github-actions"
47-
],
48-
"matchUpdateTypes": [
49-
"minor",
50-
"patch",
51-
"digest"
52-
],
53-
"automerge": true
37+
description: "Automerge GitHub Actions (minor/patch/digest)",
38+
matchManagers: ["github-actions"],
39+
matchUpdateTypes: ["minor", "patch", "digest"],
40+
automerge: true,
5441
},
5542
{
56-
"description": "Group major GitHub Actions updates",
57-
"matchManagers": [
58-
"github-actions"
59-
],
60-
"matchUpdateTypes": [
61-
"major"
62-
],
63-
"groupName": "GitHub Actions (major)",
64-
"automerge": false
43+
description: "Group major GitHub Actions updates",
44+
matchManagers: ["github-actions"],
45+
matchUpdateTypes: ["major"],
46+
groupName: "GitHub Actions (major)",
47+
automerge: false,
6548
},
6649
{
67-
"description": "Filter unstable versions in rcLibs",
68-
"matchFileNames": [
69-
"**/rcLibs.versions.toml"
70-
],
71-
"allowedVersions": "!/(-M|-m|-beta|-Beta|-BETA|-alpha|-Alpha|-ALPHA|-snapshot|-Snapshot|-SNAPSHOT)/"
50+
description: "Filter unstable versions in rcLibs",
51+
matchFileNames: ["**/rcLibs.versions.toml"],
52+
allowedVersions: "!/(-M|-m|-beta|-Beta|-BETA|-alpha|-Alpha|-ALPHA|-snapshot|-Snapshot|-SNAPSHOT)/",
7253
},
7354
{
74-
"matchFileNames": [
75-
"**/betaLibs.versions.toml"
76-
],
77-
"allowedVersions": "!/(-alpha|-Alpha|-ALPHA|-snapshot|-Snapshot|-SNAPSHOT)/"
55+
matchFileNames: ["**/betaLibs.versions.toml"],
56+
allowedVersions: "!/(-alpha|-Alpha|-ALPHA|-snapshot|-Snapshot|-SNAPSHOT)/",
7857
},
7958
{
80-
"matchFileNames": [
81-
"**/alphaLibs.versions.toml"
82-
],
83-
"allowedVersions": "!/(-snapshot|-Snapshot|-SNAPSHOT)/"
59+
matchFileNames: ["**/alphaLibs.versions.toml"],
60+
allowedVersions: "!/(-snapshot|-Snapshot|-SNAPSHOT)/",
8461
},
8562
{
86-
"matchManagers": [
87-
"npm",
88-
"pnpm"
89-
],
90-
"matchFileNames": [
91-
"docs/website/**"
92-
],
93-
"lockFileMaintenance": {
94-
"enabled": true
95-
}
63+
matchManagers: ["npm", "pnpm"],
64+
matchFileNames: ["docs/website/**"],
65+
lockFileMaintenance: {
66+
enabled: true,
67+
},
9668
},
9769
{
98-
"matchPackageNames": [
99-
"org.gradlex.**"
100-
],
101-
"groupName": "gradlex"
70+
matchPackageNames: ["org.gradlex.**"],
71+
groupName: "gradlex",
10272
},
10373
{
104-
"matchPackageNames": [
105-
"org.jetbrains.kotlin.**"
106-
],
107-
"groupName": "kotlin"
74+
matchPackageNames: ["org.jetbrains.kotlin.**"],
75+
groupName: "kotlin",
10876
},
10977
{
110-
"matchPackageNames": [
111-
"org.springframework.boot.**"
112-
],
113-
"groupName": "spring boot"
114-
}
78+
matchPackageNames: ["org.springframework.boot.**"],
79+
groupName: "spring boot",
80+
},
11581
],
116-
"customManagers": [
82+
customManagers: [
11783
{
118-
"customType": "regex",
119-
"description": "Update gradle version in toml",
120-
"managerFilePatterns": [
121-
"\\.versions\\.toml$"
122-
],
123-
"matchStrings": [
124-
"(^|\\n)\\s*gradle\\s*=\\s*\"(?<currentValue>[^\"]*)\""
125-
],
126-
"depNameTemplate": "gradle",
127-
"datasourceTemplate": "gradle-version"
84+
customType: "regex",
85+
description: "Update gradle version in toml",
86+
managerFilePatterns: ["\\.versions\\.toml$"],
87+
matchStrings: ['(^|\\n)\\s*gradle\\s*=\\s*"(?<currentValue>[^"]*)"'],
88+
depNameTemplate: "gradle",
89+
datasourceTemplate: "gradle-version",
12890
},
12991
{
130-
"customType": "regex",
131-
"description": "Update node version in toml",
132-
"managerFilePatterns": [
133-
"\\.versions\\.toml$"
134-
],
135-
"matchStrings": [
136-
"(^|\\n)\\s*node\\s*=\\s*\"(?<currentValue>[^\"]*)\""
137-
],
138-
"depNameTemplate": "node",
139-
"datasourceTemplate": "node-version"
92+
customType: "regex",
93+
description: "Update node version in toml",
94+
managerFilePatterns: ["\\.versions\\.toml$"],
95+
matchStrings: ['(^|\\n)\\s*node\\s*=\\s*"(?<currentValue>[^"]*)"'],
96+
depNameTemplate: "node",
97+
datasourceTemplate: "node-version",
14098
},
14199
{
142-
"customType": "regex",
143-
"description": "Update kotlin stdlib version in toml",
144-
"managerFilePatterns": [
145-
"\\.versions\\.toml$"
146-
],
147-
"matchStrings": [
148-
"(^|\\n)\\s*kotlin\\s*=\\s*\"(?<currentValue>[^\"]*)\""
149-
],
150-
"depNameTemplate": "org.jetbrains.kotlin:kotlin-stdlib",
151-
"datasourceTemplate": "maven"
100+
customType: "regex",
101+
description: "Update kotlin stdlib version in toml",
102+
managerFilePatterns: ["\\.versions\\.toml$"],
103+
matchStrings: ['(^|\\n)\\s*kotlin\\s*=\\s*"(?<currentValue>[^"]*)"'],
104+
depNameTemplate: "org.jetbrains.kotlin:kotlin-stdlib",
105+
datasourceTemplate: "maven",
152106
},
153107
{
154-
"customType": "regex",
155-
"description": "Update jdk version in toml",
156-
"managerFilePatterns": [
157-
"\\.versions\\.toml$"
158-
],
159-
"matchStrings": [
160-
"(^|\\n)\\s*jdk\\s*=\\s*\"(?<currentValue>[^\"]*)\""
161-
],
162-
"depNameTemplate": "java",
163-
"datasourceTemplate": "java-version"
108+
customType: "regex",
109+
description: "Update jdk version in toml",
110+
managerFilePatterns: ["\\.versions\\.toml$"],
111+
matchStrings: ['(^|\\n)\\s*jdk\\s*=\\s*"(?<currentValue>[^"]*)"'],
112+
depNameTemplate: "java",
113+
datasourceTemplate: "java-version",
164114
},
165115
{
166-
"customType": "regex",
167-
"description": "Update InternalDependencies.kt",
168-
"managerFilePatterns": [
169-
"gradle/**/InternalDependencies\\.kt"
116+
customType: "regex",
117+
description: "Update InternalDependencies.kt",
118+
managerFilePatterns: ["gradle/**/InternalDependencies\\.kt"],
119+
matchStrings: [
120+
'[a-zA-Z0-9_]+\\s*=\\s*\\{\\s*module\\s*=\\s*"(?<depName>[^" ]+)"\\s*,\\s*version\\s*=\\s*"(?<currentValue>[^" ]+)"\\s*,\\s*type\\s*=\\s*"(?<datasource>[^" ]+)"[^}]*\\}',
170121
],
171-
"matchStrings": [
172-
"[a-zA-Z0-9_]+\\s*=\\s*\\{\\s*module\\s*=\\s*\"(?<depName>[^\" ]+)\"\\s*,\\s*version\\s*=\\s*\"(?<currentValue>[^\" ]+)\"\\s*,\\s*type\\s*=\\s*\"(?<datasource>[^\" ]+)\"[^}]*\\}"
173-
]
174-
}
175-
]
122+
},
123+
],
176124
}

0 commit comments

Comments
 (0)