refactor(gh): Allow tracking multiple MSRVs

This commit is contained in:
Ed Page 2023-09-11 08:02:17 -05:00
parent 637ade0e6a
commit a4928f6584
2 changed files with 7 additions and 6 deletions

View file

@ -12,24 +12,25 @@
{
customType: 'regex',
fileMatch: [
'^Cargo.toml$',
'Cargo.toml$',
],
matchStrings: [
'rust-version.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
'\bMSRV:1\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:1\b',
],
depNameTemplate: 'latest-msrv',
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
packageNameTemplate: 'rust-lang/rust',
datasourceTemplate: 'github-releases',
},
],
packageRules: [
{
commitMessageTopic: 'Latest MSRV',
commitMessageTopic: 'MSRV (1 version)',
matchManagers: [
'regex',
],
matchPackageNames: [
'latest-msrv',
'MSRV:1',
],
"extractVersion": "^(?<version>\\d+\\.\\d+)", // Drop the patch version
schedule: [

View file

@ -11,7 +11,7 @@ exclude = [
]
[workspace.package]
rust-version = "1.73"
rust-version = "1.73" # MSRV:1
edition = "2021"
license = "MIT OR Apache-2.0"