Skip to content

Commit 4b55a4f

Browse files
committed
chore(gh): Automatically update cargo-credential MSRV
1 parent a4928f6 commit 4b55a4f

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/renovate.json5

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@
2222
packageNameTemplate: 'rust-lang/rust',
2323
datasourceTemplate: 'github-releases',
2424
},
25+
{
26+
customType: 'regex',
27+
fileMatch: [
28+
'Cargo.toml$',
29+
],
30+
matchStrings: [
31+
'\bMSRV:3\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
32+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:3\b',
33+
],
34+
depNameTemplate: 'MSRV:3', // Support 3 versions of rustc
35+
packageNameTemplate: 'rust-lang/rust',
36+
datasourceTemplate: 'github-releases',
37+
},
2538
],
2639
packageRules: [
2740
{
@@ -32,10 +45,26 @@
3245
matchPackageNames: [
3346
'MSRV:1',
3447
],
48+
schedule: [
49+
'* * * * *',
50+
],
51+
groupName: 'msrv',
52+
},
53+
{
54+
commitMessageTopic: 'MSRV (3 versions)',
55+
matchManagers: [
56+
'regex',
57+
],
58+
matchPackageNames: [
59+
'MSRV:3',
60+
],
3561
"extractVersion": "^(?<version>\\d+\\.\\d+)", // Drop the patch version
3662
schedule: [
3763
'* * * * *',
3864
],
65+
minimumReleaseAge: '85 days', // 2 releases back * 6 weeks per release * 7 days per week + 1
66+
internalChecksFilter: 'strict',
67+
groupName: 'msrv',
3968
},
4069
// Goals:
4170
// - Rollup safe upgrades to reduce CI runner load

credential/cargo-credential/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cargo-credential"
33
version = "0.4.0"
44
edition.workspace = true
55
license.workspace = true
6-
rust-version = "1.70.0"
6+
rust-version = "1.70.0" # MSRV:3
77
repository = "https://github.com/rust-lang/cargo"
88
description = "A library to assist writing Cargo credential helpers."
99

0 commit comments

Comments
 (0)