Skip to content

Commit 152331c

Browse files
committed
Document config with better comments
1 parent 756b682 commit 152331c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/renovate.json5

+10-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"group:recommended",
55
"workarounds:all"
66
],
7-
"recreateClosed": true,
87
"dependencyDashboard": "true",
98
"branchConcurrentLimit": 0,
109
"prConcurrentLimit": 0,
@@ -13,9 +12,12 @@
1312
"packageRules": [
1413
{
1514
"matchDatasources": ["maven"],
15+
// Every repository from every descriptor
1616
"registryUrls": [
17+
// Default kernel repositories
1718
"https://repo.maven.apache.org/maven2/",
1819
"https://jitpack.io/",
20+
// Custom repositories from descriptors must be added here
1921
"https://oss.sonatype.org/service/local/repo_groups/public/content",
2022
"https://repo.osgeo.org/repository/release",
2123
"https://repo.kotlin.link",
@@ -26,7 +28,7 @@
2628
}
2729
],
2830
"regexManagers": [
29-
// matches dependencies with hardcoded versions (no interpolated properties)
31+
// Matches dependencies with hardcoded versions (no interpolated properties)
3032
{
3133
"datasourceTemplate": "maven",
3234
"versioningTemplate": "maven",
@@ -36,24 +38,26 @@
3638
"^\\s*\"(?<depName>[^\":\\$]+:[^\":\\$]+):(?<currentValue>[^\":\\$]+)\""
3739
]
3840
},
39-
// matches properties commented with "update: package=*"
41+
// Matches properties commented with "// update: package=group:artifact"
4042
{
4143
"datasourceTemplate": "maven",
4244
"versioningTemplate": "maven",
4345
"fileMatch": [".*\\.json5"],
4446
"matchStringsStrategy": "any",
4547
"matchStrings": [
46-
// matches syntax "v": "1.0"
48+
// Matches syntax "v": "1.0"
4749
"\/\/ update: package=(?<packageName>\\S+)\\s+\"(?<depName>.*?)\": ?\"(?<currentValue>.+?)\"",
48-
// matches syntax { "name": "v", "value": "1.0" }
50+
// Matches syntax { "name": "v", "value": "1.0" }
4951
"\/\/ update: package=(?<packageName>\\S+)\\s+{\"name\": \"(?<depName>.*?)\", \"value\": \"(?<currentValue>.+?)\"",
5052
]
5153
},
5254
],
5355
"additionalBranchPrefix": "{{{packageFile}}}/",
56+
// Configures commit message "Update <descriptor-name> `<property-or-dependency>` to <version>"
5457
"commitMessageTopic": "{{{replace '.json5' '' packageFile}}} `{{{depName}}}`",
58+
// Configures the table added to PR descriptions
5559
"prBodyDefinitions": {
56-
// If depName != packageName, then depName is a prop like "v", so add packageName as well
60+
// State full packageName if depName is a property like "v". That's the case whenever depName != packageName (see regexes).
5761
"Package": "{{{depNameLinked}}}{{#if (equals depName packageName)}}{{else}} (`{{{packageName}}}`){{/if}}",
5862
},
5963
}

0 commit comments

Comments
 (0)