Skip to content

Commit 85dd50f

Browse files
committed
chore(config): update Renovate configuration for improved dependency management
- Changed `rebaseWhen` setting to 'conflicted' for more efficient handling of PRs. - Set `semanticCommitScope` to 'deps' to enhance commit message clarity. - Reduced the minimum release age for patch and minor updates from 14 days to 7 days, and for Python patches to 3 days. - Updated package rules to mark major version bumps with a 'breaking' label and adjusted critical package handling for better organization.
1 parent f02c3ad commit 85dd50f

File tree

2 files changed

+78
-125
lines changed

2 files changed

+78
-125
lines changed

.github/renovate.json5

Lines changed: 26 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
'nix',
2525
],
2626
platformAutomerge: true,
27-
rebaseWhen: 'auto',
27+
rebaseWhen: 'conflicted',
2828
osvVulnerabilityAlerts: true,
29+
semanticCommitScope: 'deps',
2930
fetchChangeLogs: 'pr',
3031
commitBodyTable: true,
3132
prConcurrentLimit: 10,
@@ -41,30 +42,16 @@
4142
},
4243
packageRules: [
4344
{
44-
matchPackageNames: [
45-
'discord-py',
46-
'sqlmodel',
47-
'sqlalchemy',
48-
'pydantic',
49-
'pydantic-settings',
50-
'alembic',
51-
'alembic-postgresql-enum',
52-
'alembic-utils',
53-
'asyncpg',
54-
'psycopg',
55-
],
45+
// Mark major version bumps with breaking label
5646
matchUpdateTypes: [
5747
'major',
5848
],
59-
automerge: false,
60-
groupName: 'critical',
6149
addLabels: [
62-
'deps: critical',
63-
'deps: needs-review',
50+
'breaking',
6451
],
65-
prPriority: 10,
6652
},
6753
{
54+
// Critical packages - core dependencies
6855
matchPackageNames: [
6956
'discord-py',
7057
'sqlmodel',
@@ -77,16 +64,10 @@
7764
'asyncpg',
7865
'psycopg',
7966
],
80-
matchUpdateTypes: [
81-
'minor',
82-
'patch',
83-
],
84-
automerge: true,
85-
minimumReleaseAge: '14 days',
86-
prPriority: 5,
87-
addLabels: [
88-
'deps: critical',
89-
],
67+
groupName: 'critical',
68+
addLabels: ['deps: critical'],
69+
minimumReleaseAge: '7 days',
70+
prPriority: 10,
9071
},
9172
{
9273
matchUpdateTypes: [
@@ -95,7 +76,7 @@
9576
groupName: 'patch',
9677
automerge: true,
9778
automergeType: 'branch',
98-
minimumReleaseAge: '14 days',
79+
minimumReleaseAge: '7 days',
9980
addLabels: [
10081
'deps: patch',
10182
],
@@ -108,7 +89,7 @@
10889
groupName: 'minor',
10990
automerge: true,
11091
automergeType: 'branch',
111-
minimumReleaseAge: '14 days',
92+
minimumReleaseAge: '7 days',
11293
addLabels: [
11394
'deps: minor',
11495
],
@@ -186,20 +167,6 @@
186167
],
187168
prPriority: -2,
188169
},
189-
{
190-
matchPackageNames: [
191-
'basedpyright',
192-
],
193-
matchUpdateTypes: [
194-
'minor',
195-
'patch',
196-
],
197-
automerge: true,
198-
automergeType: 'branch',
199-
addLabels: [
200-
'deps: dev',
201-
],
202-
},
203170
{
204171
matchManagers: [
205172
'github-actions',
@@ -213,21 +180,12 @@
213180
commitMessageTopic: '{{depName}}',
214181
},
215182
{
183+
// Docker updates (Dockerfile and docker-compose)
216184
matchManagers: [
217185
'docker-compose',
218-
],
219-
groupName: 'docker-compose',
220-
automerge: true,
221-
automergeType: 'branch',
222-
addLabels: [
223-
'deps: docker',
224-
],
225-
},
226-
{
227-
matchManagers: [
228186
'dockerfile',
229187
],
230-
groupName: 'dockerfile',
188+
groupName: 'docker',
231189
automerge: true,
232190
automergeType: 'branch',
233191
addLabels: [
@@ -249,53 +207,29 @@
249207
prPriority: 5,
250208
},
251209
{
252-
matchManagers: [
253-
'dockerfile',
254-
'github-actions',
255-
'custom.regex',
256-
],
257-
matchPackageNames: [
258-
'python',
259-
],
210+
// Python runtime - groups .python-version, workflows, and Dockerfile
211+
matchManagers: ['dockerfile', 'github-actions', 'custom.regex'],
212+
matchPackageNames: ['python'],
260213
groupName: 'python runtime',
261-
addLabels: [
262-
'deps: python',
263-
],
214+
addLabels: ['deps: python'],
264215
prPriority: 10,
265216
},
266217
{
267-
matchManagers: [
268-
'dockerfile',
269-
'github-actions',
270-
'custom.regex',
271-
],
272-
matchPackageNames: [
273-
'python',
274-
],
275-
matchUpdateTypes: [
276-
'patch',
277-
],
218+
// Python patch updates auto-merge
219+
matchManagers: ['dockerfile', 'github-actions', 'custom.regex'],
220+
matchPackageNames: ['python'],
221+
matchUpdateTypes: ['patch'],
278222
automerge: true,
279223
automergeType: 'branch',
280224
minimumReleaseAge: '3 days',
281225
},
282226
{
283-
matchManagers: [
284-
'dockerfile',
285-
'github-actions',
286-
'custom.regex',
287-
],
288-
matchPackageNames: [
289-
'python',
290-
],
291-
matchUpdateTypes: [
292-
'minor',
293-
'major',
294-
],
227+
// Python minor/major need review
228+
matchManagers: ['dockerfile', 'github-actions', 'custom.regex'],
229+
matchPackageNames: ['python'],
230+
matchUpdateTypes: ['minor', 'major'],
295231
automerge: false,
296-
addLabels: [
297-
'deps: needs-review',
298-
],
232+
addLabels: ['deps: needs-review'],
299233
},
300234
{
301235
matchManagers: [

0 commit comments

Comments
 (0)