Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
84ce94b1
Unverified
Commit
84ce94b1
authored
1 year ago
by
Renaud Chaput
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Try to improve Renovatebot config (#26005)
parent
26e522ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/renovate.json5
+20
-4
20 additions, 4 deletions
.github/renovate.json5
with
20 additions
and
4 deletions
.github/renovate.json5
+
20
−
4
View file @
84ce94b1
...
...
@@ -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,12 +87,17 @@
// 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/'
,
...
...
@@ -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'
]
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment