|
3 | 3 | # Please see the documentation for all configuration options: |
4 | 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates |
5 | 5 |
|
| 6 | +# .github/dependabot.yml |
6 | 7 | version: 2 |
| 8 | + |
7 | 9 | updates: |
8 | | - - package-ecosystem: "npm" # for frontend dependencies |
9 | | - directory: "/src/frontend" |
| 10 | +############################################################################### |
| 11 | +# 1) ONE PR on `dependabotchanges` with *all* normal npm bumps # |
| 12 | +############################################################################### |
| 13 | + - package-ecosystem: "npm" |
| 14 | + directory: "/src/frontend" |
10 | 15 | schedule: |
11 | 16 | interval: "monthly" |
12 | | - commit-message: |
13 | | - prefix: "build" |
14 | 17 | target-branch: "dependabotchanges" |
15 | | - open-pull-requests-limit: 100 |
| 18 | + open-pull-requests-limit: 10 |
| 19 | + commit-message: |
| 20 | + prefix: "build(deps)" |
| 21 | + |
| 22 | + groups: |
| 23 | + all-frontend-deps: |
| 24 | + patterns: ["*"] # every dependency |
16 | 25 |
|
17 | | - - package-ecosystem: "pip" # for backend dependencies |
18 | | - directory: "/src" |
| 26 | + ignore: # keep heavy majors out of this lane |
| 27 | + - dependency-name: "react" |
| 28 | + update-types: ["version-update:semver-major"] |
| 29 | + - dependency-name: "@types/react" |
| 30 | + update-types: ["version-update:semver-major"] |
| 31 | + - dependency-name: "@fluentui/*" |
| 32 | + update-types: ["version-update:semver-major"] |
| 33 | + |
| 34 | +############################################################################### |
| 35 | +# 2) ONE PR on `dependabot-react-major` with React / FluentUI majors only # |
| 36 | +# versioning-strategy: lockfile-only ⇢ fixes previous timeout / hang # |
| 37 | +############################################################################### |
| 38 | + - package-ecosystem: "npm" |
| 39 | + directory: "/src/frontend" |
19 | 40 | schedule: |
20 | 41 | interval: "monthly" |
| 42 | + target-branch: "dependabot-react-major" |
| 43 | + open-pull-requests-limit: 50 |
21 | 44 | commit-message: |
22 | | - prefix: "build" |
| 45 | + prefix: "build(deps-major)" |
| 46 | + versioning-strategy: lockfile-only # ← replaces the invalid key |
| 47 | + |
| 48 | + groups: |
| 49 | + react-fluentui-major: |
| 50 | + patterns: |
| 51 | + - "react" |
| 52 | + - "react-dom" |
| 53 | + - "react-test-renderer" |
| 54 | + - "@types/react" |
| 55 | + - "@types/react-dom" |
| 56 | + - "@fluentui/*" |
| 57 | + - "eslint-plugin-react" |
| 58 | + - "@testing-library/react*" |
| 59 | + update-types: ["major"] |
| 60 | + |
| 61 | +############################################################################### |
| 62 | +# 3) ONE PR for all pip requirements # |
| 63 | +############################################################################### |
| 64 | + - package-ecosystem: "pip" |
| 65 | + directory: "/src" |
| 66 | + schedule: |
| 67 | + interval: "monthly" |
23 | 68 | target-branch: "dependabotchanges" |
24 | | - open-pull-requests-limit: 100 |
25 | | - |
| 69 | + open-pull-requests-limit: 10 |
| 70 | + commit-message: |
| 71 | + prefix: "build(deps)" |
| 72 | + groups: |
| 73 | + all-backend-deps: |
| 74 | + patterns: ["*"] |
| 75 | + |
| 76 | +############################################################################### |
| 77 | +# 4) ONE PR for all GitHub Actions # |
| 78 | +############################################################################### |
26 | 79 | - package-ecosystem: "github-actions" |
27 | 80 | directory: "/" |
28 | 81 | schedule: |
29 | 82 | interval: "monthly" |
30 | | - commit-message: |
31 | | - prefix: "build" |
32 | 83 | target-branch: "dependabotchanges" |
33 | | - open-pull-requests-limit: 100 |
| 84 | + open-pull-requests-limit: 10 |
| 85 | + commit-message: |
| 86 | + prefix: "build(deps)" |
| 87 | + groups: |
| 88 | + all-actions: |
| 89 | + patterns: ["*"] |
0 commit comments