fix(ci): 修复CI Gate失败时返回exit 0的P0 Bug (develop) #1058
Reference in New Issue
Block a user
Delete Branch "fix/ci-gate-exit-code-develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
CI Gate判断失败时脚本错误地写了
exit 0,导致所有PR不管CI失败成什么样,Gate永远显示success,分支保护完全失效。铁证
修复
.gitea/workflows/ci-pipeline.ymlL1808:将失败分支的exit 0改为exit 1影响
main + develop双分支都有此问题,本PR修复develop分支。
【阻塞级判定】
📊 审查概览
🔴 阻塞级问题(必须修复)
无
💡 改进建议(不阻塞合并)
无
✅ 良好实践
exit 0修改为exit 1,确保了当 CI Gate 判定失败时,能够正确终止流程并反馈错误状态,避免了“失败却误判为成功”的严重隐患。🤖 由 AI 代码审查机器人自动生成 | 2026-07-28 02:26:00 | 模型:
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1058 已关闭或合并,对应的预览环境已被清理。