Skip to content

Commit 6acf4cb

Browse files
committed
chore(renovate): optimize dependency update strategy
Add rate limiting, grouping, and minimum release age to reduce PR volume while maintaining weekly updates. Groups related packages (electron, react, testing, build tools) to batch dependency updates.
1 parent 82572b2 commit 6acf4cb

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

renovate.json

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
],
1010
"labels": ["dependency"],
1111
"rangeStrategy": "pin",
12+
"prConcurrentLimit": 3,
13+
"prHourlyLimit": 2,
14+
"minimumReleaseAge": "3 days",
1215
"packageRules": [
1316
{
1417
"matchDepTypes": ["engines"],
@@ -22,7 +25,59 @@
2225
{
2326
"description": "Fetch changelog details for twemoji packages",
2427
"matchPackageNames": ["@discordapp/twemoji"],
25-
"sourceUrl": "https://github.com/jdjdecked/twemoji"
28+
"changelogUrl": "https://github.com/jdjdecked/twemoji"
29+
},
30+
{
31+
"description": "Group all GitHub Actions updates",
32+
"matchManagers": ["github-actions"],
33+
"groupName": "github-actions",
34+
"labels": ["dependency", "github-actions"]
35+
},
36+
{
37+
"description": "Group non-major npm updates",
38+
"matchDatasources": ["npm"],
39+
"matchUpdateTypes": ["minor", "patch"],
40+
"groupName": "npm-non-major"
41+
},
42+
{
43+
"description": "Group Electron ecosystem packages",
44+
"matchPackageNames": ["electron", "electron-builder", "electron-log", "electron-updater", "@electron/**"],
45+
"groupName": "electron"
46+
},
47+
{
48+
"description": "Group React ecosystem packages",
49+
"matchPackageNames": ["react", "react-dom", "react-router-dom", "@types/react", "@types/react-dom", "@types/react-router-dom"],
50+
"groupName": "react"
51+
},
52+
{
53+
"description": "Group testing packages",
54+
"matchPackageNames": ["jest", "jest-*", "@types/jest", "ts-jest", "@testing-library/**", "nock", "babel-jest"],
55+
"groupName": "testing"
56+
},
57+
{
58+
"description": "Group Primer design system packages",
59+
"matchPackageNames": ["@primer/**"],
60+
"groupName": "primer"
61+
},
62+
{
63+
"description": "Group webpack and build tools",
64+
"matchPackageNames": ["webpack", "webpack-*", "ts-loader", "css-loader", "postcss-loader", "html-webpack-plugin", "copy-webpack-plugin", "mini-css-extract-plugin", "css-minimizer-webpack-plugin", "terser-webpack-plugin"],
65+
"groupName": "webpack"
66+
},
67+
{
68+
"description": "Group Tailwind CSS packages",
69+
"matchPackageNames": ["tailwindcss", "@tailwindcss/**", "tailwind-merge"],
70+
"groupName": "tailwind"
71+
},
72+
{
73+
"description": "Group Babel packages",
74+
"matchPackageNames": ["@babel/**"],
75+
"groupName": "babel"
76+
},
77+
{
78+
"description": "Group GraphQL packages",
79+
"matchPackageNames": ["graphql", "@graphql-codegen/**"],
80+
"groupName": "graphql"
2681
}
2782
],
2883
"customManagers": [

0 commit comments

Comments
 (0)