Skip to content

Commit 5be934c

Browse files
chore(config): migrate config .github/renovate.json5
1 parent 74c051f commit 5be934c

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/renovate.json5

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@
1111
customManagers: [
1212
{
1313
customType: 'regex',
14-
fileMatch: [
15-
'Cargo.toml$',
14+
managerFilePatterns: [
15+
'/Cargo.toml$/',
1616
],
1717
matchStrings: [
1818
'\\bMSRV:1\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
1919
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:1\\b',
2020
],
21-
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
21+
depNameTemplate: 'MSRV:1',
2222
packageNameTemplate: 'rust-lang/rust',
2323
datasourceTemplate: 'github-releases',
2424
},
2525
{
2626
customType: 'regex',
27-
fileMatch: [
28-
'Cargo.toml$',
27+
managerFilePatterns: [
28+
'/Cargo.toml$/',
2929
],
3030
matchStrings: [
3131
'\\bMSRV:3\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
3232
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:3\\b',
3333
],
34-
depNameTemplate: 'MSRV:3', // Support 3 versions of rustc
34+
depNameTemplate: 'MSRV:3',
3535
packageNameTemplate: 'rust-lang/rust',
3636
datasourceTemplate: 'github-releases',
3737
},
3838
{
3939
customType: 'regex',
40-
fileMatch: [
41-
'^.github.workflows.main.yml$',
40+
managerFilePatterns: [
41+
'/^.github.workflows.main.yml$/',
4242
],
4343
matchStrings: [
4444
'cargo-semver-checks.releases.download.v(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
@@ -57,7 +57,7 @@
5757
matchDepNames: [
5858
'MSRV:1',
5959
],
60-
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
60+
extractVersion: '^(?<version>\\d+\\.\\d+)',
6161
schedule: [
6262
'* * * * *',
6363
],
@@ -71,11 +71,11 @@
7171
matchDepNames: [
7272
'MSRV:3',
7373
],
74-
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
74+
extractVersion: '^(?<version>\\d+\\.\\d+)',
7575
schedule: [
7676
'* * * * *',
7777
],
78-
minimumReleaseAge: '85 days', // 2 releases back * 6 weeks per release * 7 days per week + 1
78+
minimumReleaseAge: '85 days',
7979
internalChecksFilter: 'strict',
8080
groupName: 'msrv',
8181
},
@@ -93,9 +93,6 @@
9393
],
9494
internalChecksFilter: 'strict',
9595
},
96-
// Goals:
97-
// - Rollup safe upgrades to reduce CI runner load
98-
// - Have lockfile and manifest in-sync (implicit rules)
9996
{
10097
matchManagers: [
10198
'cargo',

0 commit comments

Comments
 (0)