Skip to content

Mark stale issues and PRs with GitHub workflow #3339

Closed

Description

@jpraynaud

Why

Issues and pull requests with no activity for a long time clutter the backlog, making triage harder and hiding items that still need attention. Automatically flagging and closing inactive items keeps the tracker focused and signals which threads are no longer followed. More information on how to support that on GitHub is available here.

What

Add a scheduled GitHub Actions workflow based on actions/stale that marks inactive issues and PRs as stale, closes them after a grace period, and exempts configured labels.

How

  • Create a .github/workflows/stale.yml triggered on a daily schedule and workflow_dispatch, with issues: write and pull-requests: write permissions.
  • Add an actions/stale step configuring days-before-stale, days-before-close, stale/close messages, and stale labels.
  • Configure exempt-issue-labels, exempt-pr-labels, and operations-per-run.
  • Create a Stale label in GitHub
  • Configure stale-issue-label and stale-pr-label with Stale label.
  • Validate with debug-only: true, then enable and document the policy in the contributing guidelines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions