Skip to content

Commit bb9dc06

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. - Use a 7-day cooldown period rather than taking new versions immediately when they are released. (This may also be of value to developers who use `pre-commit` locally.) - 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 bb9dc06

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
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: ["*"]
21+
cooldown:
22+
default-days: 7

0 commit comments

Comments
 (0)