Skip to content

Add stale-PR workflow (close PRs after 6 months of inactivity)#627

Merged
ypriverol merged 1 commit into
masterfrom
ci/stale-prs
Jul 7, 2026
Merged

Add stale-PR workflow (close PRs after 6 months of inactivity)#627
ypriverol merged 1 commit into
masterfrom
ci/stale-prs

Conversation

@ypriverol

Copy link
Copy Markdown
Member

Adds .github/workflows/stale.yml using the official actions/stale.

Behaviour

  • PR inactive 180 days → labelled stale + a heads-up comment.
  • 14 more days of silence → closed with: "This PR has been staled … please re-open it (or open a fresh PR)".
  • Any comment or new commit clears the stale mark; a keep/pinned/security/wip/blocked label exempts it; drafts are exempt.
  • Issues are not touched (PRs only).
  • Runs daily; oldest-first with operations-per-run: 60 so 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 add debug-only: true to 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 to 0 for a hard close at 6 months with no grace period).

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.
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

BioContainers CI failed for container.

Errors (must fix):

  • Cannot modify GitHub CI files (.github/workflows/stale.yml).

@ypriverol ypriverol merged commit 18451a9 into master Jul 7, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant