From 52753e56d1f54232aeee1d29e8b5d51029617336 Mon Sep 17 00:00:00 2001 From: james Date: Sun, 27 Jul 2025 23:29:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/test.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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输出行数、出错语句及原因;