Skip to content

Commit 967a423

Browse files
committed
refactor(devops): remove Chinese comments from GitHub Actions
Clean up code by removing Chinese language comments that were left from previous development, improving code readability for international contributors.
1 parent ee5ad2a commit 967a423

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/src/main/kotlin/cc/unitmesh/devti/actions/GenerateGitHubActionsAction.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ class GenerateGitHubActionsAction : AnAction(AutoDevBundle.message("action.new.g
2020
val project = e.project ?: return
2121

2222
try {
23-
// 改进变量命名
2423
val buildSystem = BuildSystemProvider.guess(project)
2524
val templateRender = TemplateRender(GENIUS_CICD)
2625
templateRender.context = DevOpsContext.from(buildSystem)
2726
val template = templateRender.getTemplate("generate-github-action.vm")
2827

29-
// 安全的路径处理
3028
val projectDir = project.guessProjectDir()?.toNioPath()
3129
?: throw IllegalStateException("Cannot determine project directory")
3230

@@ -40,9 +38,7 @@ class GenerateGitHubActionsAction : AnAction(AutoDevBundle.message("action.new.g
4038
.runProcessWithProgressAsynchronously(task, BackgroundableProcessIndicator(task))
4139

4240
} catch (e: Exception) {
43-
// 添加错误处理,可以显示错误通知给用户
4441
logger<GenerateGitHubActionsAction>().error("Failed to generate GitHub Actions workflow", e)
45-
// 可以添加用户通知
4642
}
4743
}
4844
}

0 commit comments

Comments
 (0)