Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: apply Renovate stability settings globally #840

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
rebaseWhen: 'conflicted', // separate PRs updating the lockfile are likely to conflict each other
updateNotScheduled: true, // default

// Stability settings: don't raise a PR until a dependency is at least 3 days old
rangeStrategy: 'pin',
minimumReleaseAge: '3 days',
internalChecksFilter: 'strict',

packageRules: [
{
matchCategories: ['node'],
Expand All @@ -59,7 +64,19 @@
schedule: 'at any time',
prCreation: 'immediate',
platformAutomerge: true,
minimumReleaseAge: '0 days'
},

// Perform dependency pinning immediately
{
matchUpdateTypes: ['pin'],
commitMessageAction: 'pin',
groupName: 'dependency ranges',
// Renovate's defaults for these options
schedule: 'at any time',
prCreation: 'immediate',
platformAutomerge: true,
}
],

npm: {
Expand All @@ -71,12 +88,6 @@
commitMessageTopic: 'lockfile',
},

// Stability settings: don't raise a PR until a dependency is at least 3 days old
rangeStrategy: 'pin',
commitMessageAction: 'update', // same as above, don't use `rangeStrategy` as the action
minimumReleaseAge: '3 days',
internalChecksFilter: 'strict',

packageRules: [
// Dependencies
{
Expand Down Expand Up @@ -143,22 +154,11 @@
prPriority: -10,
},

// Group/separate all dependency pinning, perform it immediately
{
matchUpdateTypes: ['pin'],
commitMessageAction: 'pin',
groupName: 'dependency ranges',
// Renovate's defaults for these options
schedule: 'at any time',
prCreation: 'immediate',
platformAutomerge: true,
},

// Everything else
{
matchDepTypes: ['optionalDependencies', 'peerDependencies', 'engines'],
enabled: false,
},
],
},
}
]
}
}
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
with:
filters: |
changes:
- '**/mkdocs.yml'
- 'docs/**'
- '**/*.md'
- 'mkdocs.yml'

lint:
needs:
Expand Down
Loading