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

chore(config): migrate renovate config #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
46 changes: 13 additions & 33 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,46 +1,26 @@
{
// Boilerplate
$schema: "https://docs.renovatebot.com/renovate-schema.json",

// This will group all patch- and minor-level updates into a single PR
// rather than generating 1 PR per dependency (which is the current default)
// This just helps reduce noise on the repo.
extends: ["group:allNonMajor"],

// Disables dependency dashboard - it doesn't do anything on
// repos that don't support issues
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'group:allNonMajor',
],
dependencyDashboard: false,

// Resetting to the default PR creation configuration
// The default config overrides this.
// Realized I also need to change this because you don't have issues
// Normally, the dependency dashboard would tell you if PRs are holding
// because they're waiting for tests to pass.
// With this set to "immediate", you'll be able to see any stuck pulls
prCreation: "immediate",

// Prevent automerging any lockfile mainteance
// there's an ongoing discussion around whether or not
// we should even have lockfile maintenance on by default
// here: https://apollograph.slack.com/archives/C02TG9NHM/p1689259568243699
prCreation: 'immediate',
lockFileMaintenance: {
automerge: false,
},

packageRules: [
// Prevent automerging for PRs that aren't lockfile maintenance
{
matchPackagePatterns: ["*"],
automerge: false,
rangeStrategy: "replace"
rangeStrategy: 'replace',
matchPackageNames: [
'*',
],
},
// Example of pinning a dependency to a specific version or range of versions
// There's a ton of flexibility for doing this type of thing
// if you're looking for other options, check out the various config options:
// https://docs.renovatebot.com/configuration-options/#packagerules
{
matchPackageNames: ["react"],
allowedVersions: "16.x",
matchPackageNames: [
'react',
],
allowedVersions: '16.x',
},
],
}