From 3902caef03b092fb107722735838170500206630 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 27 Jul 2026 18:34:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20code-review=E5=8E=BB=E6=8E=89continue-o?= =?UTF-8?q?n-error=EF=BC=8C=E7=94=A8=E9=80=80=E5=87=BA=E7=A0=81=E6=8E=A7?= =?UTF-8?q?=E5=88=B6job=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/code-review.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/code-review.yml b/.gitea/workflows/code-review.yml index 8374aaba8..5fbf25f6f 100644 --- a/.gitea/workflows/code-review.yml +++ b/.gitea/workflows/code-review.yml @@ -48,6 +48,7 @@ jobs: GITEA_TOKEN: ${{ secrets.REVIEW_GITEA_TOKEN }} REPO_NAME: ${{ gitea.repository }} PR_NUMBER: ${{ gitea.event.pull_request.number }} + PR_HEAD_SHA: ${{ gitea.event.pull_request.head.sha }} # LLM 提供商: coze (扣子原生Bot) / openai (OpenAI兼容) LLM_PROVIDER: "coze" # 扣子模式配置(默认国内站 api.coze.cn) @@ -60,8 +61,9 @@ jobs: LLM_TIMEOUT: "120" run: | python3 scripts/ci_code_review.py - # 审查脚本异常不影响 CI 通过 - continue-on-error: true + # 注意:脚本退出码决定job状态 + # - 有阻塞级问题 → exit 1 → job失败 → 门禁拦截 + # - 无阻塞级问题/LLM异常 → exit 0 → 通过(fail-open) - name: Report CI trace if: always()