1
1
{
2
2
"$schema" : "https://docs.renovatebot.com/renovate-schema.json" ,
3
- "schedule" : "every 6 weeks on tuesday" ,
3
+ "extends" : [
4
+ "config:recommended" ,
5
+ "schedule:weekly" ,
6
+ ":automergePatch" ,
7
+ ":automergeStableNonMajor" ,
8
+ ":combinePatchMinorReleases" ,
9
+ ":disableDependencyDashboard" ,
10
+ ":maintainLockFilesWeekly" ,
11
+ ":separateMajorReleases"
12
+ ] ,
13
+ "platformCommit" : true ,
4
14
"customManagers" : [
5
15
{
6
16
"customType" : "regex" ,
17
+ "description" : "Update the minimal supported Rust version in Cargo.toml" ,
7
18
"fileMatch" : [
8
- "Cargo.toml$"
19
+ "(^|/) Cargo\\ .toml$"
9
20
] ,
10
21
"matchStrings" : [
11
- "rust-version = \"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\""
22
+ "(^|\\[package\\])(.|\n)*?($|\n\\s*\\[)" , // select package table
23
+ "rust-version = \"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\"" // select rust-version
12
24
] ,
25
+ "matchStringsStrategy" : "recursive" ,
13
26
"depNameTemplate" : "rust-version" ,
14
27
"packageNameTemplate" : "rust-lang/rust" ,
15
- "datasourceTemplate" : "github-releases"
28
+ "datasourceTemplate" : "github-releases" ,
29
+ "versioningTemplate" : "cargo" ,
30
+ "extractVersionTemplate" : "^(?<version>\\d+\\.\\d+)" // drop patch version
16
31
}
17
32
] ,
18
33
"packageRules" : [
19
34
{
20
- "commitMessageTopic" : "bump rust-version" ,
21
- "matchManagers" : [
22
- "custom.regex"
23
- ] ,
24
- "matchPackageNames" : [
25
- "rust-version"
26
- ] ,
27
- "extractVersion" : "^(?<version>\\d+\\.\\d+)" , // drop patch version
28
- "schedule" : [
29
- "* * * * *"
30
- ] ,
31
35
"minimumReleaseAge" : "6 months" ,
32
- "internalChecksFilter" : "strict"
36
+ "matchDepNames" : [
37
+ "rust-version"
38
+ ]
33
39
}
34
40
]
35
41
}
0 commit comments