renovate icon indicating copy to clipboard operation
renovate copied to clipboard

`releaseDelay` instead of `stabilityDays`

Open JavierSegoviaCordoba opened this issue 2 years ago • 2 comments

What would you like Renovate to be able to do?

Get a flexible way to delay looking for new updates as commented here: https://github.com/renovatebot/renovate/issues/12133#issuecomment-943966256

Related issue: https://github.com/renovatebot/renovate/issues/12310

If you have any ideas on how this should be implemented, please tell us here.

The summary mentioned by @rarkins is:

  • Rename it to be a bit more generic (e.g. "releaseDelay", but better)
  • We retire/migrate stabilityDays
  • Define a simple format for duration - or find one which already exists - so that it can be e.g. 1d2h3m. We might find use for such a format elsewhere

Is this a feature you are interested in implementing yourself?

No

JavierSegoviaCordoba avatar Jul 31 '22 14:07 JavierSegoviaCordoba

We also discussed some new names for the stabilityDays config option in this issue:

  • https://github.com/renovatebot/renovate/issues/12914

HonkingGoose avatar Jul 31 '22 16:07 HonkingGoose

The name minimumReleaseAge from #12914 is maybe more intuitive

rarkins avatar Aug 01 '22 04:08 rarkins

The pretty-ms package converts from milliseconds to human readable string. I think we need to write the opposite, i.e. to convert from human-readable string back to a millisecond duration.

https://www.npmjs.com/package/pretty-ms

rarkins avatar Oct 17 '22 04:10 rarkins

Now done: https://github.com/renovatebot/renovate/blob/main/lib/util/pretty-time.ts

rarkins avatar Apr 06 '23 05:04 rarkins

Let's do it in a major release when we rename renovate/stability-days to renovate/minimum-release-age.

rarkins avatar Apr 06 '23 05:04 rarkins