From 89800137b6bb1cacfc85f5dd3719b5fd08cb4602 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Sun, 10 May 2026 21:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20issue-template=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AF=AF=E5=88=A0=20.github/workflows=20?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit afterEach 清理时 rmSync 误删了整个 .github/ 目录(含 workflows), 改为只删测试创建的 ISSUE_TEMPLATE 子目录。 Co-Authored-By: glm-5-turbo --- src/commands/issue/__tests__/issue-template.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/issue/__tests__/issue-template.test.ts b/src/commands/issue/__tests__/issue-template.test.ts index 8a60f5793..f4db48fc4 100644 --- a/src/commands/issue/__tests__/issue-template.test.ts +++ b/src/commands/issue/__tests__/issue-template.test.ts @@ -202,9 +202,9 @@ function createTemplateInCwd(files: Record): string { for (const [name, content] of Object.entries(files)) { writeFileSync(join(templateDir, name), content) } - // Track the .github dir for cleanup (remove whole .github if it didn't exist) - const githubDir = join(realCwd, '.github') - createdTemplatePath = githubDir + // Track the ISSUE_TEMPLATE dir for cleanup — never delete the whole .github/ + // as it may contain workflows, settings, or other project config. + createdTemplatePath = templateDir return templateDir }