Skip to content

Commit 1042459

Browse files
authored
ci: add renovate (#127)
1 parent eca5233 commit 1042459

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/renovate.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"timezone": "Asia/Shanghai",
4+
"schedule": ["before 10am on monday"],
5+
"lockFileMaintenance": {
6+
"enabled": false
7+
},
8+
"customManagers": [
9+
{
10+
"customType": "regex",
11+
"fileMatch": ["^rust-toolchain\\.toml?$"],
12+
"matchStrings": [
13+
"channel\\s*=\\s*\"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\""
14+
],
15+
"depNameTemplate": "rust",
16+
"packageNameTemplate": "rust-lang/rust",
17+
"datasourceTemplate": "github-releases"
18+
}
19+
],
20+
"packageRules": [
21+
{
22+
"groupName": "github-actions",
23+
"matchManagers": ["github-actions"],
24+
"rangeStrategy": "bump"
25+
},
26+
{
27+
"groupName": "rust toolchain",
28+
"matchManagers": ["custom.regex"],
29+
"matchDepNames": ["rust"],
30+
"schedule": ["at any time"],
31+
"automergeType": "pr"
32+
},
33+
{
34+
"groupName": "rust crates",
35+
"matchManagers": ["cargo"],
36+
"rangeStrategy": "bump"
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)