|
1 | 1 | version: 2 |
2 | 2 |
|
3 | 3 | updates: |
4 | | - # Enable version updates for npm dependencies |
| 4 | + # npm dependency updates - DAILY (as per US12 Security requirements) |
5 | 5 | - package-ecosystem: "npm" |
6 | 6 | directory: "/" |
7 | 7 | schedule: |
8 | | - interval: "weekly" |
9 | | - day: "tuesday" |
10 | | - open-pull-requests-limit: 10 |
| 8 | + interval: "daily" # Changed from weekly to daily for security patches |
| 9 | + time: "03:00" # Run at 3 AM UTC (off-peak hours) |
| 10 | + open-pull-requests-limit: 10 # Maximum 10 PRs at a time |
| 11 | + reviewers: |
| 12 | + - "CodeStorm-Hub" # Automatically assign reviewer |
11 | 13 | labels: |
12 | 14 | - "dependencies" |
13 | 15 | - "npm" |
| 16 | + - "automated" # Mark as automated PR |
14 | 17 | commit-message: |
15 | | - prefix: "chore" |
16 | | - include: "scope" |
17 | | - # To ignore specific updates, uncomment and configure: |
18 | | - # ignore: |
19 | | - # - dependency-name: "*" |
20 | | - # update-types: |
21 | | - # - "version-update:semver-patch" |
22 | | - # - "version-update:semver-minor" |
| 18 | + prefix: "chore(deps)" # Conventional commit format |
| 19 | + include: "scope" # Include package name in commit |
| 20 | + # Group minor and patch updates together to reduce PR noise |
| 21 | + groups: |
| 22 | + # Group all Next.js related packages together |
| 23 | + nextjs: |
| 24 | + patterns: |
| 25 | + - "next" |
| 26 | + - "react" |
| 27 | + - "react-dom" |
| 28 | + - "@next/*" |
| 29 | + update-types: |
| 30 | + - "minor" |
| 31 | + - "patch" |
| 32 | + |
| 33 | + # Group all Prisma related packages together |
| 34 | + prisma: |
| 35 | + patterns: |
| 36 | + - "@prisma/*" |
| 37 | + - "prisma" |
| 38 | + update-types: |
| 39 | + - "minor" |
| 40 | + - "patch" |
| 41 | + |
| 42 | + # Group all testing related packages together |
| 43 | + testing: |
| 44 | + patterns: |
| 45 | + - "vitest" |
| 46 | + - "@vitest/*" |
| 47 | + - "@testing-library/*" |
| 48 | + - "playwright" |
| 49 | + - "@playwright/*" |
| 50 | + update-types: |
| 51 | + - "minor" |
| 52 | + - "patch" |
| 53 | + |
| 54 | + # Group all linting and formatting tools together |
| 55 | + code-quality: |
| 56 | + patterns: |
| 57 | + - "eslint" |
| 58 | + - "eslint-*" |
| 59 | + - "@eslint/*" |
| 60 | + - "prettier" |
| 61 | + - "typescript" |
| 62 | + - "typescript-eslint" |
| 63 | + - "@typescript-eslint/*" |
| 64 | + update-types: |
| 65 | + - "minor" |
| 66 | + - "patch" |
| 67 | + |
| 68 | + # Group all UI library packages together |
| 69 | + ui-libraries: |
| 70 | + patterns: |
| 71 | + - "@radix-ui/*" |
| 72 | + - "tailwindcss" |
| 73 | + - "@tailwindcss/*" |
| 74 | + - "lucide-react" |
| 75 | + - "framer-motion" |
| 76 | + update-types: |
| 77 | + - "minor" |
| 78 | + - "patch" |
| 79 | + |
| 80 | + # Group all development dependencies |
| 81 | + dev-dependencies: |
| 82 | + dependency-type: "development" |
| 83 | + update-types: |
| 84 | + - "minor" |
| 85 | + - "patch" |
| 86 | + |
| 87 | + # Ignore major version updates for stable packages (review manually) |
| 88 | + ignore: |
| 89 | + - dependency-name: "next" |
| 90 | + update-types: ["version-update:semver-major"] |
| 91 | + - dependency-name: "react" |
| 92 | + update-types: ["version-update:semver-major"] |
| 93 | + - dependency-name: "react-dom" |
| 94 | + update-types: ["version-update:semver-major"] |
| 95 | + - dependency-name: "typescript" |
| 96 | + update-types: ["version-update:semver-major"] |
| 97 | + |
| 98 | + # Allow Dependabot to update lockfile without opening PR for transitive deps |
| 99 | + versioning-strategy: "increase" |
23 | 100 |
|
24 | 101 | # Enable version updates for GitHub Actions |
25 | 102 | - package-ecosystem: "github-actions" |
|
0 commit comments