Skip to content

Commit 20df9e4

Browse files
committed
Auto merge of #12341 - epage:update, r=weihanglo
chore: Automatically update dependencies monthly ### What does this PR try to resolve? This will create PRs that will update `Cargo.toml` and `Cargo.lock` at the same time. By default, RenovateBot will update all dependencies, so we pull out the compatible dependencies into a consolidated PR to reduce disruptions and CI load. This doesn't just cover Rust dependencies but github workflows as well. ### How should we test and review this PR? This starts off with the dependency dashboard and automerging being disabled but explicitly specified to call attention to the potential for this. We can evaluate these later. The frequency of monthly was chosen to consolidate disruptions. The main risk is doing an update right before a beta branch but we can't have a cron schedule for once every 6 weeks (I assume) which would be ideal. At least its not daily or instant. I chose `json5` over `json` for comments and trailing commas, to make human-editing easier. I pulled the config from https://github.com/gitext-rs/git-stack/blob/main/.github/renovate.json5 - [Dependency dashboard](gitext-rs/git-stack#309) - [Compatible PR](gitext-rs/git-stack#255) - [Incompatible PR](gitext-rs/git-stack#310) CC `@Turbo87`
2 parents ee100cc + 12622ab commit 20df9e4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/renovate.json5

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
schedule: [
3+
'before 3am on the first day of the month',
4+
],
5+
semanticCommits: 'enabled',
6+
configMigration: true,
7+
dependencyDashboard: false,
8+
packageRules: [
9+
// Goals:
10+
// - Rollup safe upgrades to reduce CI runner load
11+
// - Have lockfile and manifest in-sync (implicit rules)
12+
{
13+
matchManagers: [
14+
'cargo',
15+
],
16+
matchCurrentVersion: '>=0.1.0',
17+
matchUpdateTypes: [
18+
'patch',
19+
],
20+
automerge: false,
21+
groupName: 'compatible',
22+
},
23+
{
24+
matchManagers: [
25+
'cargo',
26+
],
27+
matchCurrentVersion: '>=1.0.0',
28+
matchUpdateTypes: [
29+
'minor',
30+
],
31+
automerge: false,
32+
groupName: 'compatible',
33+
},
34+
],
35+
}

0 commit comments

Comments
 (0)