Skip to content

Commit 9335ca2

Browse files
committed
feat: setup renovate
1 parent 08d112c commit 9335ca2

File tree

4 files changed

+55
-7
lines changed

4 files changed

+55
-7
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: validate renovate config
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
validate-renovate-config:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v6
14+
15+
- name: Validate Renovate config
16+
uses: suzuki-shunsuke/github-action-renovate-config-validator@v2.0.0

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,6 @@ cython_debug/
290290
.idea/
291291

292292
# VS Code
293-
.vscode/
293+
.vscode/
294+
295+
.DS_Store

renovate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

renovate.json5

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// configuration options: https://docs.renovatebot.com/configuration-options/
2+
// list of all presets: https://docs.renovatebot.com/presets-default/
3+
{
4+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
5+
extends: ['config:recommended', ':automergeRequireAllStatusChecks'],
6+
dependencyDashboard: true,
7+
// let it fly for now, we've got a lot to catch up on
8+
// schedule: [
9+
// "0 * * * *"
10+
// ],
11+
timezone: 'UTC',
12+
// Always squash PRs when automerging
13+
automergeType: 'pr',
14+
automergeStrategy: 'squash',
15+
packageRules: [
16+
{
17+
description: 'Group and automerge patch updates after CI passes',
18+
matchUpdateTypes: ['patch'],
19+
automerge: true,
20+
groupName: 'patch-updates',
21+
},
22+
{
23+
description: 'Create PRs for minor updates without automerge',
24+
matchUpdateTypes: ['minor'],
25+
automerge: false,
26+
},
27+
{
28+
description: 'Require dashboard approval for major updates',
29+
matchUpdateTypes: ['major'],
30+
dependencyDashboardApproval: true,
31+
automerge: false,
32+
},
33+
],
34+
prConcurrentLimit: 3,
35+
rebaseWhen: 'auto',
36+
}

0 commit comments

Comments
 (0)