It would be nice if Agentic workflows also cleaned up really old branches.
@dsyme ci sta già lavorando.
Dal 29/5/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
It would be nice if Agentic workflows also cleaned up really old branches. I didn't realize that I have almost 150 remotes.
Biggest culprits
- repo-assist/ branches: 85 — the automated agent creates long-hash-suffixed branches, and when retries happen they chain (-hash1-hash2-hash3). These are never cleaned up.
- copilot/ branches: 28 — from Copilot coding agent sessions, also never auto-deleted.
- dependabot/, shanselman/, fix/, etc. — smaller numbers, normal.
What cleans them today?
Almost nothing. You have:
stale.yml — marks stale PRs and issues after 14–27 days and closes them after 7 more days. But closing a PR does not delete its branch unless the repo setting "Automatically delete head branches" is enabled at the repository level.
No workflow or cron job that deletes branches after PR merge/close.
What should be done?
Enable "Automatically delete head branches" in repo Settings → General. This is the single biggest win — it auto-deletes branches when their PR is merged. It's a GitHub repo-level toggle, not a workflow setting.
Delete the 13 already-merged branches immediately. These are dead weight (e.g., copilot/tidy-remote-branches, pr-211-build-props, pr-triage, several repo-assist/eng-* branches).
Add a scheduled workflow to prune stale branches — e.g., delete remote branches older than 60 days that are either (a) fully merged, or (b) have no open PR. This catches the repo-assist/ retry chains that pile up with no PR at all.
Audit the 39 branches older than 60 days — most are abandoned repo-assist/ retry chains from March that will never be merged.
- Lingua principale
- Python
- Stelle
- 1.1k
- Fork
- 163
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di githubnext/agentics
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
githubnext/agentics#420 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 1/100
githubnext/agentics#419 ·
-
FrontendAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsApertaagentic-workflows
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 8/100
githubnext/agentics#415 · 1 commento ·
Tutte le issue di githubnext/agentics
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 69/100
anderspitman/awesome-tunneling#330 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4676 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 18 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
pandas-dev/pandas-stubs#2155 ·
I maintainer di solito rispondono entro 1 giorno
-
essreduce
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
I maintainer di solito rispondono entro 1 giorno