fix(ci): 修复CI Gate失败时返回exit 0的P0 Bug (main) #1057
Reference in New Issue
Block a user
Delete Branch "fix/ci-gate-exit-code-main"
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修复main分支。
代码审查结果 - PR #1057
⚠️ 问题(0个需要修改)
无
💡 建议(0个可选)
无
✅ 格式检查通过 | ✅ 逻辑审查通过 | ✅ 性能无问题
🤖 由 AI 代码审查机器人自动生成 | 2026-07-28 02:22:51 | 模型:
🗑️ 预览环境已清理
PR #1057 已关闭或合并,对应的预览环境已被清理。