It would be nice if Agentic workflows also cleaned up really old branches.
@dsyme ya está trabajando en esto.
Desde el 29/5/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 1.1k
- Forks
- 163
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de githubnext/agentics
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
githubnext/agentics#420 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
githubnext/agentics#419 ·
-
FrontendAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 1/100
githubnext/agentics#418 ·
-
[aw] Detection RunsAbiertoagentic-workflows
Dificultad 2/5 Menos de una hora Aptitud para principiantes 8/100
githubnext/agentics#415 · 1 comentario ·
Todos los issues de githubnext/agentics
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
bad-antics/lateralus-lang#1489 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 69/100
anderspitman/awesome-tunneling#330 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
scikit-hep/coffea#1668 ·