Skip to content

Add stale bot to automatically close inactive issues and PRs#1164

Open
arska wants to merge 1 commit intomasterfrom
add-stale-bot
Open

Add stale bot to automatically close inactive issues and PRs#1164
arska wants to merge 1 commit intomasterfrom
add-stale-bot

Conversation

@arska
Copy link
Copy Markdown
Member

@arska arska commented Mar 22, 2026

Summary

Add actions/stale workflow to automatically manage inactive issues and PRs:

  • 90 days of inactivity: labeled lifecycle/stale with a friendly comment
  • 30 more days without response: closed with an invitation to reopen
  • Exempt: issues labeled enhancement or lifecycle/frozen
  • Runs daily at 08:30 UTC

Why

During this triage session we manually closed ~10 stale issues/PRs that had been inactive for 1-2+ years. Automating this prevents the backlog from growing unbounded and keeps the issue tracker focused on active work.

Maintainers can always:

  • Add lifecycle/frozen to keep important long-term issues open
  • Reopen anything that was closed prematurely
  • Exempt additional labels as needed

Test plan

  • Verify the workflow runs on schedule
  • Verify enhancement issues are not marked stale
  • Verify lifecycle/frozen label exemption works

🤖 Generated with Claude Code

Relates-to: #905

@arska arska requested a review from a team as a code owner March 22, 2026 15:27
@arska arska requested review from bastjan and zugao and removed request for a team March 22, 2026 15:27
@arska arska self-assigned this Mar 22, 2026
@tobru
Copy link
Copy Markdown
Contributor

tobru commented Mar 23, 2026

While I generally agree that this can help with issue hygiene, it's also a bit offensive to the original reporter when the maintainer(s) didn't have time to catch up and an issue just gets closed by a bot. A probably more sensitive way to handle it is that the bot only handles issues that are waiting for input from non-maintainers.

WDYT @Kidswiss @lieneluksika @bastjan ?

@arska arska added the discussion-needed PR needs design or technical discussion before proceeding label Mar 23, 2026
Mark issues and PRs as stale after 90 days of inactivity, close
after 30 more days without response. Enhancement requests and
issues labeled lifecycle/frozen are exempt.

This prevents the backlog from accumulating stale items that
require periodic manual triage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Aarno Aukia <aarno.aukia@vshn.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discussion-needed PR needs design or technical discussion before proceeding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants