Skip to content

Commit 42f017c

Browse files
renovate[bot]jakubnogithub-advanced-security[bot]
authored
Configure Renovate (#142)
* Add renovate.json * feat: setup renovate * Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jakub Novak <jakub@e2b.dev> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b98e1e4 commit 42f017c

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
permissions:
12+
contents: read
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v6
16+
17+
- name: Validate Renovate config
18+
uses: suzuki-shunsuke/github-action-renovate-config-validator@v2.0.0

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)