-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from apollographql/renovate/configure
Configure Renovate
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
// 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 | ||
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 | ||
lockFileMaintenance: { | ||
automerge: false, | ||
}, | ||
|
||
packageRules: [ | ||
// Prevent automerging for PRs that aren't lockfile maintenance | ||
{ | ||
matchPackagePatterns: ["*"], | ||
automerge: false, | ||
rangeStrategy: "replace" | ||
}, | ||
// 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", | ||
}, | ||
], | ||
} |