It would be nice if Agentic workflows also cleaned up really old branches.
@dsyme já está trabalhando nisso.
Desde 29/5/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 1.1k
- Forks
- 163
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de githubnext/agentics
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
githubnext/agentics#420 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
githubnext/agentics#419 ·
-
FrontendAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsAbertaagentic-workflows
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 8/100
githubnext/agentics#415 · 1 comentário ·
Todas as issues de githubnext/agentics
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
bad-antics/lateralus-lang#1489 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 69/100
anderspitman/awesome-tunneling#330 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
scikit-hep/coffea#1668 ·