feat(ci): AI代码审查添加阻塞级判定 + 门禁控制(develop同步) #1042

Merged
auto-approve-bot merged 1 commits from feature/ai-gate-develop-sync into develop 2026-07-27 22:22:35 +08:00
Owner

从main同步AI代码审查门禁功能到develop分支:

  • AI审查输出commit status(阻塞级问题→failure,无阻塞→success)
  • 作为develop分支required check门禁
  • fail-open策略:LLM调用异常时不阻塞合并
从main同步AI代码审查门禁功能到develop分支: - AI审查输出commit status(阻塞级问题→failure,无阻塞→success) - 作为develop分支required check门禁 - fail-open策略:LLM调用异常时不阻塞合并
xiaoxia added 1 commit 2026-07-27 22:05:13 +08:00
feat(ci): AI代码审查添加阻塞级判定 + 门禁控制(develop同步)
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 59s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 56s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m27s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m27s
AI Code Review / AI Code Review (pull_request) Successful in 1m20s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 43s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 3m7s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m50s
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 10m8s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 12m20s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 12m25s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 7m26s
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m44s
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 12s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 14m24s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 12s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 12s
6eb91f653f
Collaborator

代码审查结果 - PR #1042

⚠️ 问题(1个需要修改)

  1. c -l)\n... (异常文件名) 第1行严重的数据损坏与格式错误。Diff 中出现了一个名为 c -l)\n... 的新文件,文件名中包含 Shell 命令片段、换行符和特殊字符。这通常是 Git 命令执行错误或文件系统操作失误导致的产物。提交此类文件会污染仓库历史,可能导致 Git 操作失败、CI/CD 系统解析错误或文件系统兼容性问题。必须删除此文件并检查生成过程。

💡 建议(1个可选)

  1. scripts/ci_code_review.py 第187行存在未使用的死代码。新增了 create_commit_status 方法,但在代码中并未被调用。根据 main 函数的注释,逻辑依赖于 Gitea 根据 Job 退出码自动打 status。如果不需要手动调用 API,建议删除此方法以保持代码整洁。

格式检查未通过 | 逻辑审查需修改 | 性能无明显问题


🤖 由 AI 代码审查机器人自动生成 | 2026-07-27 14:08:51 | 模型:

## 代码审查结果 - PR #1042 ### ⚠️ 问题(1个需要修改) 1. **c -l)\n... (异常文件名) 第1行**:**严重的数据损坏与格式错误**。Diff 中出现了一个名为 `c -l)\n...` 的新文件,文件名中包含 Shell 命令片段、换行符和特殊字符。这通常是 Git 命令执行错误或文件系统操作失误导致的产物。提交此类文件会污染仓库历史,可能导致 Git 操作失败、CI/CD 系统解析错误或文件系统兼容性问题。必须删除此文件并检查生成过程。 ### 💡 建议(1个可选) 1. **scripts/ci_code_review.py 第187行**:**存在未使用的死代码**。新增了 `create_commit_status` 方法,但在代码中并未被调用。根据 `main` 函数的注释,逻辑依赖于 Gitea 根据 Job 退出码自动打 status。如果不需要手动调用 API,建议删除此方法以保持代码整洁。 --- ❌ 格式检查未通过 | ❌ 逻辑审查需修改 | ✅ 性能无明显问题 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-07-27 14:08:51 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->
auto-approve-bot merged commit a75cce0a3b into develop 2026-07-27 22:22:35 +08:00
auto-approve-bot deleted branch feature/ai-gate-develop-sync 2026-07-27 22:22:35 +08:00

🗑️ 预览环境已清理

PR #1042 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #1042 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.