Skip to content

Commit a4928f6

Browse files
committed
refactor(gh): Allow tracking multiple MSRVs
1 parent 637ade0 commit a4928f6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/renovate.json5

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,25 @@
1212
{
1313
customType: 'regex',
1414
fileMatch: [
15-
'^Cargo.toml$',
15+
'Cargo.toml$',
1616
],
1717
matchStrings: [
18-
'rust-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
18+
'\bMSRV:1\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
19+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:1\b',
1920
],
20-
depNameTemplate: 'latest-msrv',
21+
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
2122
packageNameTemplate: 'rust-lang/rust',
2223
datasourceTemplate: 'github-releases',
2324
},
2425
],
2526
packageRules: [
2627
{
27-
commitMessageTopic: 'Latest MSRV',
28+
commitMessageTopic: 'MSRV (1 version)',
2829
matchManagers: [
2930
'regex',
3031
],
3132
matchPackageNames: [
32-
'latest-msrv',
33+
'MSRV:1',
3334
],
3435
"extractVersion": "^(?<version>\\d+\\.\\d+)", // Drop the patch version
3536
schedule: [

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude = [
1111
]
1212

1313
[workspace.package]
14-
rust-version = "1.73"
14+
rust-version = "1.73" # MSRV:1
1515
edition = "2021"
1616
license = "MIT OR Apache-2.0"
1717

0 commit comments

Comments
 (0)