Remove Stale Branches

Open
#1,174 6 comments 12 reactions 0 assignees View on GitHub

@abstrask is already working on this.

Since Oct 30, 2026.

  • #1379 by @abstrask — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
devops

Research direction

Start with this proposal and the linked actions/stale issue #620 to understand the intended behavior and prior discussion. Inspect the repository's existing entry points for stale-item handling, then define how the age threshold and open-issue association should be configured. Done means stale, unassociated branches are identified and removed without affecting branches linked to open issues.

Written by the indexing model from the issue text.

Description

feature request

Description:
Automatically remove branches that are not associated with an open issue and are more than X days stale.

Previously described in https://github.com/actions/stale/issues/620, which ironically closed due to staleness.

Justification:
Branches are another form of cruft that builds up and becomes stale.

Are you willing to submit a PR?
I'm probably not the best person to do so, else I would

Dominant language
TypeScript
Stars
1.7k
Forks
438
Avg merge
27d 8h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/stale

All issues in actions/stale

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.