diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..eb9f3aec9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,37 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "09:00" + timezone: "Asia/Shanghai" + open-pull-requests-limit: 5 + labels: + - "dependencies" + - "needs-triage" + commit-message: + prefix: "chore" + include: "scope" + groups: + minor-and-patch: + update-types: + - "minor" + - "patch" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "09:30" + timezone: "Asia/Shanghai" + open-pull-requests-limit: 3 + labels: + - "dependencies" + - "ci" + - "needs-triage" + commit-message: + prefix: "ci" + include: "scope" diff --git a/docs/operations.md b/docs/operations.md index a1f3ff5f6..93f2d9917 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -28,6 +28,8 @@ CI 和本地提交前检查复用同一个入口,避免规则漂移。 Playwright workflow 独立运行,避免 e2e 依赖、浏览器安装和 secrets 影响基础门禁反馈速度。 +Dependabot 每周检查 npm/pnpm 依赖和 GitHub Actions。依赖 PR 仍需按 PR 模板运行 `pnpm check:quality` 和路由烟测,不应自动合并。 + ## 日志治理 新增或修改已治理文件时不要使用裸 `console.*`。使用: