prStalenessThreshold #34060
Labels
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:feature
Feature (new functionality)
As discussed with @felipecrs in #34012
Add a new configuration option
prStalenessThreshold
. It should support a duration string with same supported syntax asminimumReleaseAge
, e.g. "90 days". It should default tonull
to retain backwards-compatible behavior, although in future we may choose to give it a non-null default in a new major release.The behavior should be like this:
prStalenessThreshold
can be configured inpackageRules
, even down to per-package or update type if users wishprStalenessThreshold
will benull
if all updates within it arenull
, otherwise it will be the largest of the non-null valuesprStalenessThreshold
defined, and it hasn't been exceeded yet (calculated as "current timestamp minus PR creation timestamp"), then there's no change of behaviorprStalenessThreshold
defined, and it has been exceeded, then no rebasing or updating (e.g. if a newer version is available) will be done automaticallyisStale=true
if aprStalenessThreshold
exists and is exceeded,isStale=false
if aprStalenessThreshold
exists and is not exceeded, and noisStale
field if noprStalenessThreshold
is definedisStale
field if no updates have anisStale
field, it should haveisStale=false
if any update hasisStale=false
, and it should haveisStale=true
otherwise (i.e. which means if allisStale
fields in updates aretrue
)branch.isStale
described aboveThe text was updated successfully, but these errors were encountered: