Add stale-PR workflow (close PRs after 6 months of inactivity)#627
Merged
Conversation
Marks a PR stale after 180 days without activity, warns, and closes it 14 days later if still no response, with a message inviting the author to re-open. Issues are untouched; a 'keep' label exempts a PR; any comment or push clears the stale mark. Uses the official actions/stale, oldest-first with an ops cap so the existing backlog is closed gradually, not all at once.
|
❌ BioContainers CI failed for Errors (must fix):
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/stale.ymlusing the officialactions/stale.Behaviour
stale+ a heads-up comment.keep/pinned/security/wip/blockedlabel exempts it; drafts are exempt.operations-per-run: 60so the current backlog of old PRs is worked through gradually over several days, not closed all at once.Before it goes live, worth a dry run: after merge, trigger it via Run workflow (
workflow_dispatch). To preview without changing anything, temporarily adddebug-only: trueto the step and run once — it logs what it would mark/close.Tuning knobs if you want a different cadence:
days-before-pr-stale/days-before-pr-close(set close to0for a hard close at 6 months with no grace period).