fix(ci): auto-approve/merge只检查分支保护required门禁,避免非required失败阻塞自动合并 #644
Reference in New Issue
Block a user
Delete Branch "fix/ci-autoapprove-match-branch-protection"
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?
问题
当前auto-approve和auto-merge把Unit Tests、Integration Tests都当必须通过的检查,但分支保护的required门禁只有Validate和Frontend Lint两个。
导致:develop上本身就有的Unit Tests失败(业务测试用例bug,非PR引入)会阻塞所有PR的自动审批和合并,每次都得手动approve+merge。
修复
auto-approve和auto-merge的检查列表与分支保护对齐:
设计原则
分支保护是Gitea层面的硬门禁,自动化脚本的判断标准应该和Gitea一致。非required的CI失败是告警/改进项,不应该阻塞正常合并流程。
影响
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #644 已关闭或合并,对应的预览环境已被清理。