It would be nice if Agentic workflows also cleaned up really old branches.
@dsyme 已经在做这个了。
开始于 2026年5月29日。
评估
这个 Issue 还没有评估数据。
描述
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.
- 主要语言
- Python
- 星标
- 1.1k
- 派生
- 163
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/agentics 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
githubnext/agentics#420 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
githubnext/agentics#402 ·
-
agentic-workflows automated documentation
难度 1/5 1 小时以内 新手友好度 1/100
githubnext/agentics#419 ·
-
Frontend未关闭
难度 5/5 一周以上 新手友好度 1/100
githubnext/agentics#418 ·
-
agentic-workflows
难度 2/5 1 小时以内 新手友好度 8/100
githubnext/agentics#415 · 1 条评论 ·
查看 githubnext/agentics 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
bad-antics/lateralus-lang#1489 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 1/5 1 小时以内 新手友好度 69/100
anderspitman/awesome-tunneling#330 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
scikit-hep/coffea#1668 ·