Skip to content

Commit 3c6a28f

Browse files
authored
Use Renovate instead of Dependabot (#355)
Dependabot always updates the lower bounds `Cargo.toml`, instead of only `Cargo.lock` for compatible updates, while updating `Cargo.toml` for breaking updates , as we want it for a library. From https://docs.renovatebot.com/configuration-options/#rangestrategy: > replace: Replace the range with a newer one if the new version falls outside it, and update nothing otherwise > > update-lockfile: Update the lock file when in-range updates are available, otherwise replace for updates out of range. Additionally with this migration, I've pinned GitHub Actions to hashes, which unlike tags can't be changed. The basic Renovate config is smaller than the dependabot config, it uses autodiscovery and finds Cargo and GitHub Actions. There's a dashboard with the option to create and rebase PRs and with logs. You can see a demo of this change and the PRs renovate creates in https://github.com/konstin/pubgrub-renovate. To actually enable this change, we need to give the Renovate Mend GitHub app access to the repository.
1 parent 43c9ac5 commit 3c6a28f

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/renovate.json5

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
"helpers:pinGitHubActionDigests",
6+
":configMigration",
7+
":semanticCommitsDisabled"
8+
],
9+
"schedule": [
10+
"before 4am on monday"
11+
]
12+
}

0 commit comments

Comments
 (0)