Skip to content

Commit 52606ad

Browse files
committed
ci: enable dependabot with grouping strategy
1 parent 9eb1f45 commit 52606ad

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
updates:
3+
# 1. 监控 npm/yarn 依赖 (Hexo 插件)
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "sunday"
9+
time: "06:00"
10+
timezone: "Asia/Shanghai"
11+
# 限制同时打开的 PR 数量,避免被淹没
12+
open-pull-requests-limit: 10
13+
# 针对 Yarn 项目的优化
14+
versioning-strategy: increase
15+
# 分组策略:将所有 hexo 相关的包合并成一个 PR
16+
groups:
17+
hexo-dependencies:
18+
patterns:
19+
- "hexo*"
20+
- "hexo-*"
21+
themes:
22+
patterns:
23+
- "picgo"
24+
- "gulp*"
25+
26+
# 2. 监控 GitHub Actions (deploy.yml 里的 uses)
27+
- package-ecosystem: "github-actions"
28+
directory: "/"
29+
schedule:
30+
interval: "monthly"
31+
groups:
32+
github-actions:
33+
patterns:
34+
- "*"

0 commit comments

Comments
 (0)