Skip to content

Commit ac30096

Browse files
[no ci] Migrate renovate config (#285)
Co-authored-by: neoforged-renovate[bot] <174042230+neoforged-renovate[bot]@users.noreply.github.com>
1 parent feb8afa commit ac30096

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/renovate.json

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"extends": [
44
"github>neoforged/actions:renovate_preset"
55
],
6-
"baseBranches": ["main", "/^\\d+\\.x/"],
6+
"baseBranchPatterns": [
7+
"main",
8+
"/^\\d+\\.x/"
9+
],
710
"customDatasources": {
811
"minecraft-versions": {
912
"defaultRegistryUrlTemplate": "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json",
@@ -16,15 +19,19 @@
1619
{
1720
"customType": "regex",
1821
"depTypeTemplate": "generated",
19-
"fileMatch": ["MinecraftVersionList\\.java$"],
20-
"matchStrings": ["public static final List<String> VERSIONS = List\\.of\\(\"(?<currentValue>[\\w\\.]+)\""],
22+
"managerFilePatterns": [
23+
"/MinecraftVersionList\\.java$/"
24+
],
25+
"matchStrings": [
26+
"public static final List<String> VERSIONS = List\\.of\\(\"(?<currentValue>[\\w\\.]+)\""
27+
],
2128
"depNameTemplate": "minecraft-version-list",
2229
"datasourceTemplate": "custom.minecraft-versions"
2330
},
2431
{
2532
"customType": "regex",
26-
"fileMatch": [
27-
"NeoFormRuntimeExtension\\.java$"
33+
"managerFilePatterns": [
34+
"/NeoFormRuntimeExtension\\.java$/"
2835
],
2936
"depNameTemplate": "net.neoforged:neoform-runtime",
3037
"matchStrings": [
@@ -34,8 +41,8 @@
3441
},
3542
{
3643
"customType": "regex",
37-
"fileMatch": [
38-
"RunUtils\\.java$"
44+
"managerFilePatterns": [
45+
"/RunUtils\\.java$/"
3946
],
4047
"matchStrings": [
4148
"String\\s+[A-Z_]+\\s*=\\s*\"(?<depName>[\\w:\\.-]+):(?<currentValue>[\\d\\.]+)(:(?<depClassifier>[a-z]+))?\"\\s*;\\s*\\/\\/\\s*renovate"
@@ -45,9 +52,13 @@
4552
],
4653
"packageRules": [
4754
{
48-
"matchDatasources": ["custom.minecraft-versions"],
55+
"matchDatasources": [
56+
"custom.minecraft-versions"
57+
],
4958
"dependencyDashboardApproval": false,
50-
"addLabels": ["generated-files"],
59+
"addLabels": [
60+
"generated-files"
61+
],
5162
"postUpgradeTasks": {
5263
"commands": [
5364
"./gradlew :generateVersionOrder :generateMojangRepositoryFilter",

0 commit comments

Comments
 (0)