Skip to content

Commit 35db809

Browse files
committed
Keep pre-commit hooks up to date using Dependabot
- Add `pre-commit` as an ecosystem for Dependabot version updates, now that it is available as a beta ecosystem. Enable beta ecosystems to allow this. - Group the updates and use a monthly cadence to avoid getting swamped by frequent automated PRs. - It would be valuable in the future to Use a 7-day cooldown period rather than taking new versions immediately once released. (This may also be of value to developers who use `pre-commit` locally.) However, this doesn't do that, since the Dependabot ecosystem for `pre-commit` does not currently support `cooldown`. - Use a less busy style (less unnecessary quoting) than was being used in `dependabot.yml` before, since this new stanza is more elaborate than before. Apply that style to the existing stanzas for consistency.
1 parent 078f351 commit 35db809

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
version: 2
2+
enable-beta-ecosystems: true
23
updates:
3-
- package-ecosystem: "github-actions"
4+
- package-ecosystem: github-actions
45
directory: "/"
56
schedule:
6-
interval: "weekly"
7+
interval: weekly
78

8-
- package-ecosystem: "gitsubmodule"
9+
- package-ecosystem: gitsubmodule
910
directory: "/"
1011
schedule:
11-
interval: "weekly"
12+
interval: weekly
13+
14+
- package-ecosystem: pre-commit
15+
directory: "/"
16+
schedule:
17+
interval: monthly
18+
groups:
19+
pre-commit:
20+
patterns: ["*"]

0 commit comments

Comments
 (0)