Skip to content

Add weekly stale-branch monitor workflow#2639

Open
rpsene wants to merge 1 commit into
mainfrom
rpsene-stalled-branches
Open

Add weekly stale-branch monitor workflow#2639
rpsene wants to merge 1 commit into
mainfrom
rpsene-stalled-branches

Conversation

@rpsene
Copy link
Copy Markdown
Collaborator

@rpsene rpsene commented Feb 3, 2026

A weekly GitHub Action scans all branches via the GitHub GraphQL API, calculates the age of the last commit, and opens an issue for any branch older than 30 days.

Issues are labeled stale-branch, assigned to aswaterman and wmat, and include deletion steps.

To avoid duplicates, each issue embeds a hidden marker with the branch name and commit SHA; if an issue already exists for that exact branch+SHA it’s reused (reopened if needed).

The workflow also supports an exclude list (with wildcards) and defaults to the repo’s default branch for deletion instructions.

A weekly GitHub Action scans all branches via the GitHub GraphQL API, calculates the age of the last commit, and opens an issue for any branch older than 30 days. Issues are labeled stale-branch, assigned to aswaterman and wmat, and include deletion steps. To avoid duplicates, each issue embeds a hidden marker with the branch name and commit SHA; if an issue already exists for that exact branch+SHA it’s reused (reopened if needed). The workflow also supports an exclude list (with wildcards) and defaults to the repo’s default branch for deletion instructions.

Signed-off-by: Rafael Sene <rafael@riscv.org>
@rpsene rpsene requested review from aswaterman and wmat February 3, 2026 12:58
@wmat
Copy link
Copy Markdown
Collaborator

wmat commented Feb 16, 2026

Will this remove branches? Just on my phone so can't test but we beed our release branches to persist on riscv-isa-manual repo.

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.

2 participants