summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorRenaud Chaput <renchap@gmail.com>2023-07-17 09:33:22 +0200
committerGitHub <noreply@github.com>2023-07-17 09:33:22 +0200
commit84ce94b100e033cfb1eed194a037f8869b219d43 (patch)
tree98caf844671ffc0fe96c842d8fd36c3029cb69d7 /.github
parent26e522ac55d4147b0418abcf7e16bb70cd3f0af5 (diff)
Try to improve Renovatebot config (#26005)
Diffstat (limited to '.github')
-rw-r--r--.github/renovate.json524
1 files changed, 20 insertions, 4 deletions
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index 0dddc3e2907..78530d65b43 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -9,7 +9,9 @@
],
stabilityDays: 3, // Wait 3 days after the package has been published before upgrading it
// packageRules order is important, they are applied from top to bottom and are merged,
- // so for example grouping rules needs to be at the bottom
+ // meaning the most important ones must be at the bottom, for example grouping rules
+ // If we do not want a package to be grouped with others, we need to set its groupName
+ // to `null` after any other rule set it to something.
packageRules: [
{
// Ignore major version bumps for these node packages
@@ -45,6 +47,7 @@
// Ignore major version bumps for these Ruby packages
matchManagers: ['bundler'],
matchPackageNames: [
+ 'rack', // Needs to be synced with Rails version
'sprockets', // Requires manual upgrade https://github.com/rails/sprockets/blob/master/UPGRADING.md#guide-to-upgrading-from-sprockets-3x-to-4x
'strong_migrations', // Requires manual upgrade
'sidekiq', // Requires manual upgrade
@@ -84,13 +87,18 @@
// Update devDependencies every week, with one grouped PR
matchDepTypes: 'devDependencies',
matchUpdateTypes: ['patch', 'minor'],
- excludePackageNames: [
- 'typescript', // Typescript has many changes in minor versions, needs to be checked every time
- ],
groupName: 'devDependencies (non-major)',
extends: ['schedule:weekly'],
},
{
+ // Group all eslint-related packages with `eslint` in the same PR
+ matchManagers: ['npm'],
+ matchPackageNames: ['eslint'],
+ matchPackagePrefixes: ['eslint-', '@typescript-eslint/'],
+ matchUpdateTypes: ['patch', 'minor'],
+ groupName: 'eslint (non-major)',
+ },
+ {
// Update @types/* packages every week, with one grouped PR
matchPackagePrefixes: '@types/',
matchUpdateTypes: ['patch', 'minor'],
@@ -98,6 +106,14 @@
extends: ['schedule:weekly'],
addLabels: ['typescript'],
},
+ {
+ // We want those packages to always have their own PR
+ matchManagers: ['npm'],
+ matchPackageNames: [
+ 'typescript', // Typescript has code-impacting changes in minor versions
+ ],
+ groupName: null, // We dont want them to belong to any group
+ },
// Add labels depending on package manager
{ matchManagers: ['npm', 'nvm'], addLabels: ['javascript'] },
{ matchManagers: ['bundler', 'ruby-version'], addLabels: ['ruby'] },