✨ 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
@@ -387,14 +387,14 @@ class WebhookCoordinator {
|
||||
|
||||
if (event.kind === 'push') {
|
||||
const s = getSettings(this.ctx)
|
||||
const autoBuild = s.autoBuildBranch.trim() || s.devBranch
|
||||
logger.add({
|
||||
level: 'info',
|
||||
source: 'webhook',
|
||||
message: `收到 push 事件 branch=${event.branch}`,
|
||||
})
|
||||
if (event.branch === s.devBranch || event.branch === autoBuild)
|
||||
void this.activePanel?.handleBranchSyncCheck()
|
||||
// 推到开发分支或任一发布分支都会改变「未发布提交数」,刷新发布按钮。
|
||||
if (event.branch === s.devBranch || event.branch.startsWith(s.releaseBranchPrefix))
|
||||
void this.activePanel?.handleReleaseStatus()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user