chore: add renovate bot modular configuration (#1983)

This commit is contained in:
Joe Harrison
2025-10-07 05:21:18 +01:00
committed by GitHub
parent 94a43ea480
commit 0af453ee33
8 changed files with 154 additions and 21 deletions

24
.github/renovate.json5 vendored Normal file
View File

@@ -0,0 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":dependencyDashboard",
":timezone(UTC)",
"docker:enableMajor",
"docker:pinDigests",
"group:nextjsMonorepo",
"group:reactMonorepo",
"group:typescript-eslintMonorepo",
"group:tailwindcssMonorepo",
"github>seerr-team/seerr//.github/renovate/actions.json5",
"github>seerr-team/seerr//.github/renovate/groups.json5",
"github>seerr-team/seerr//.github/renovate/helm.json5",
"github>seerr-team/seerr//.github/renovate/labels.json5",
"github>seerr-team/seerr//.github/renovate/pnpm.json5",
"github>seerr-team/seerr//.github/renovate/semanticCommits.json5"
],
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"suppressNotifications": ["prEditedNotification", "prIgnoreNotification"],
"rebaseWhen": "conflicted",
"labels": ["dependencies"]
}

14
.github/renovate/actions.json5 vendored Normal file
View File

@@ -0,0 +1,14 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['helpers:pinGitHubActionDigests'],
packageRules: [
// All GitHub Actions need manual review
{
matchManagers: ['github-actions'],
groupName: 'GitHub Actions',
minimumReleaseAge: '7 days',
},
],
}

21
.github/renovate/groups.json5 vendored Normal file
View File

@@ -0,0 +1,21 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
packageRules: [
// Node.js
{
matchPackageNames: ['node'],
matchManagers: ['dockerfile', 'npm'],
groupName: 'Node.js',
minimumReleaseAge: '7 days',
commitMessageTopic: 'Node.js',
},
// Database packages
{
matchPackageNames: ['pg', 'sqlite3', 'typeorm'],
groupName: 'Database',
minimumReleaseAge: '7 days',
},
],
}

22
.github/renovate/helm.json5 vendored Normal file
View File

@@ -0,0 +1,22 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
packageRules: [
{
matchManagers: ['helm-values'],
matchFileNames: ['charts/*/values.yaml'],
},
],
customManagers: [
{
customType: 'regex',
description: 'Update appVersion in Chart.yaml to match Docker image',
fileMatch: ['(^|/)Chart\\.yaml$'],
matchStrings: [
'#\\s+renovate:\\s+image=(?<depName>\\S*)\nappVersion:\\s+"(?<currentValue>\\S*)"',
],
datasourceTemplate: 'docker',
},
],
}

29
.github/renovate/labels.json5 vendored Normal file
View File

@@ -0,0 +1,29 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
packageRules: [
// JavaScript/npm packages
{
matchManagers: ['npm'],
addLabels: ['javascript'],
},
// GitHub Actions
{
matchManagers: ['github-actions'],
addLabels: ['github_actions'],
},
// Docker images
{
matchManagers: ['dockerfile', 'docker-compose'],
addLabels: ['docker'],
},
// Helm charts
{
matchManagers: ['helm-values'],
addLabels: ['helm'],
},
],
}

11
.github/renovate/pnpm.json5 vendored Normal file
View File

@@ -0,0 +1,11 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
// Run pnpm dedupe after dependency updates
postUpdateOptions: ['pnpmDedupe'],
lockFileMaintenance: {
enabled: true,
},
}

33
.github/renovate/semanticCommits.json5 vendored Normal file
View File

@@ -0,0 +1,33 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
packageRules: [
// Default for all dependencies
{
matchPackagePatterns: ['*'],
semanticCommitType: 'chore',
semanticCommitScope: 'deps',
},
// Node.js runtime
{
matchPackageNames: ['node'],
semanticCommitType: 'build',
semanticCommitScope: 'node',
},
// GitHub Actions
{
matchManagers: ['github-actions'],
semanticCommitType: 'ci',
semanticCommitScope: 'actions',
},
// Docker
{
matchManagers: ['dockerfile'],
semanticCommitType: 'build',
semanticCommitScope: 'docker',
},
],
}