diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 51329d0..c9900b4 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -24,9 +24,15 @@ jobs: - name: Run code review script env: + # === 项目配置 === GIT_PROJECT_PATH: /workspace/hui/SCTMES_V5 # Gitea 的工作目录 ALLOWED_PATHS: '["EdgeManager/**", "mes_in_sct/**", "mes_in_task/**", "webman/**"]' # 允许检测目录 IGNORED_PATHS: '["EdgeManager/vendor/**", "mes_in_sct/vendor/**", "mes_in_task/vendor/**", "webman/public/**", "webman/runtime/**", "webman/vendor/**"]' # 忽略检测目录 + + # === Gitea API 配置(传给 audit_code.sh)=== + API_URL: "http://119.91.43.128:3003/api/v1/repos/hui/SCTMES_V5/issues/$PULLS_ID/comments" + GITEA_TOKEN: $GITEA_TOKEN + SYSTEM_PROMPT: | 你是代码审核助手,我需要你审核代码后以JSON形式输出通过(passed)或者不通过(no-passed),只输出json不添加其他说明。 只判断代码是否存在变量拼写错误,并且在issues输出行数、出错语句及原因;