✨ feat(vscode): 发布按钮扩展侧 handler,删除分支同步
Claude-Session: https://claude.ai/code/session_01HTMgwaE3woqM5yvsHiuSAa
This commit is contained in:
1 parent
6f59b4f3fd
commit
b363e08ef9
12 files changed
+292
-345
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { deleteLocalBranch } from '../../git/branchSync'
|
||||
import { deleteLocalBranch } from '../../git/branches'
|
||||
import { deleteBranch } from '../../gitea/api'
|
||||
import { logger } from '../../logging/logger'
|
||||
|
||||
@@ -12,7 +12,7 @@ import { logger } from '../../logging/logger'
|
||||
* - 全程 best-effort:远程 / 本地各自 try/catch,失败只记日志——分支清理从不回滚已完成的主流程
|
||||
* (worktree 已删、PR 已合并)。branch 为空直接返回。
|
||||
*
|
||||
* 放在 handlers 层而非 `git/branchSync.ts`:后者刻意不依赖 `vscode`(有单测覆盖
|
||||
* 放在 handlers 层而非 `git/branches.ts`:后者刻意不依赖 `vscode`(有单测覆盖
|
||||
* deleteLocalBranch),而本函数要用 logger(→ vscode)和 gitea API。
|
||||
*/
|
||||
export async function cleanupFeatureBranch(opts: {
|
||||
|
||||
Reference in new issue
Block a user