From 720e6ede8b4da3c8826ad4a883f1063c8bb46ed8 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Mon, 14 Jun 2021 13:35:25 +0200 Subject: [PATCH] docs: improve stabilityDays config option documentation (#10420) --- docs/usage/configuration-options.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index 586240b3a8fc73..06988ec4c8b3bf 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -2185,6 +2185,12 @@ If this setting is true then you would get one PR for webpack@v2 and one for web If this is set to a non-zero value, _and_ an update contains a release timestamp header, then Renovate will check if the "stability days" have passed. +Note: Renovate will wait for the set amount of `stabilityDays` to pass for each **separate** version. +Renovate does not wait until the package has seen no releases for x `stabilityDays`. +`stabilityDays` is not intended to help with slowing down fast releasing project updates. +If you want to slow down PRs for a specific package, setup a custom schedule for that package. +Read [our selective-scheduling help](https://docs.renovatebot.com/noise-reduction/#selective-scheduling) to learn how to set the schedule. + If the amount of days since the release is less than the set `stabilityDays` a "pending" status check is added to the branch. If enough days have passed then the "pending" status is removed, and a "passing" status check is added. @@ -2201,6 +2207,22 @@ There are a couple of uses for `stabilityDays`: If you combine `stabilityDays=3` and `prCreation="not-pending"` then Renovate will hold back from creating branches until 3 or more days have elapsed since the version was released. It's recommended that you enable `dependencyDashboard=true` so you don't lose visibility of these pending PRs. +#### Prevent holding broken npm packages + +npm packages less than 72 hours (3 days) old can be unpublished, which could result in a service impact if you have already updated to it. +Set `stabilityDays` to 3 for npm packages to prevent relying on a package that can be removed from the registry: + +```json +{ + "packageRules": [ + { + "matchDatasources": ["npm"], + "stabilityDays": 3 + } + ] +} +``` + #### Await X days before Automerging If you have both `automerge` as well as `stabilityDays` enabled, it means that PRs will be created immediately but automerging will be delayed until X days have passed.