Skip to content

Commit 468aab1

Browse files
committed
renovate test
1 parent 822833b commit 468aab1

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/renovate.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@
8686
]
8787
}
8888
],
89+
"customDatasources": {
90+
"rust-stable-toml": {
91+
"defaultRegistryUrlTemplate": "https://static.rust-lang.org/dist/channel-rust-stable.toml",
92+
"format": "plain",
93+
"transformTemplates": [
94+
"pkg.rust.version",
95+
"$match($, /(\\d+\\.\\d+\\.\\d+)/)[0].groups[0]",
96+
"{ \"releases\": [{ \"version\": $ }] }"
97+
]
98+
}
99+
},
89100
"customManagers": [
90101
{
91102
"customType": "regex",
@@ -99,9 +110,10 @@
99110
"fileFormat": "toml",
100111
"fileMatch": ["^rust-toolchain\\.toml$"],
101112
"matchStrings": [
102-
"toolchain.{ 'depName': 'rust-lang/rust', 'currentValue': channel }"
113+
"toolchain.{ 'currentValue': channel }"
103114
],
104-
"datasourceTemplate": "github-releases"
115+
"depNameTemplate": "rust",
116+
"datasourceTemplate": "custom.rust-stable-toml"
105117
}
106118
]
107119
}

0 commit comments

Comments
 (0)