From 1b6cba454d2b6b3860c7b57f4cf9d25b8d75ee59 Mon Sep 17 00:00:00 2001 From: one Date: Sat, 24 May 2025 08:58:24 +0800 Subject: [PATCH] chore: add dependabot (#6369) --- .github/dependabot.yml | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..f530d6e3b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,86 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "monthly" + open-pull-requests-limit: 7 + target-branch: "main" + commit-message: + prefix: "chore" + include: "scope" + groups: + # 核心框架 + core-framework: + patterns: + - "react" + - "react-dom" + - "electron" + - "typescript" + - "@types/react*" + - "@types/node" + update-types: + - "minor" + - "patch" + + # Electron 生态和构建工具 + electron-build: + patterns: + - "electron-*" + - "@electron*" + - "vite" + - "@vitejs/*" + - "dotenv-cli" + - "rollup-plugin-*" + - "@swc/*" + update-types: + - "minor" + - "patch" + + # 测试工具 + testing-tools: + patterns: + - "vitest" + - "@vitest/*" + - "playwright" + - "@playwright/*" + - "eslint*" + - "@eslint*" + - "prettier" + - "husky" + - "lint-staged" + update-types: + - "minor" + - "patch" + + # CherryStudio 自定义包 + cherrystudio-packages: + patterns: + - "@cherrystudio/*" + update-types: + - "minor" + - "patch" + + # 兜底其他 dependencies + other-dependencies: + dependency-type: "production" + + # 兜底其他 devDependencies + other-dev-dependencies: + dependency-type: "development" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 3 + commit-message: + prefix: "ci" + include: "scope" + groups: + github-actions: + patterns: + - "*" + update-types: + - "minor" + - "patch"