Autoclose existing PRs when repo is disabled #21242
Labels
priority-1-critical
A bad bug or work that is holding up a lot of other important features or fixes
status:in-progress
Someone is working on implementation
type:feature
Feature (new functionality)
What would you like Renovate to be able to do?
Have the option to "clean up" existing PRs when a repo is skipped or disabled for either reason:
There may be other cases where
INFO: Repository is disabled - skipping
is true to cover, but not all of them. For example if the repo is archived then we can't make any changes.If you have any ideas on how this should be implemented, please tell us here.
Introduce a new option
pruneBranchesWhenDisabled
which defaults tofalse
. The reason to make this opt-in is that it will introduce extra work each run which is not necessary. It would instead be reserved for "cleanup" situations such as caused by #21237Ideally if the repo cache is in use then we can also save the fact we've already done a cleanup and then not do it the next time we run on the repo, assuming it's still disabled.
Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: