fix(auto-merge): 合并PR前验证CI状态(validate + frontend-lint) #253
Reference in New Issue
Block a user
Delete Branch "feat/auto-merge-ci-check"
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_merge_prs.sh 脚本在合并PR前只检查
mergeable标志的问题,改为必须验证指定CI检查项全部通过才允许合并。修改内容
/commits/{sha}/statusAPI 获取PR头部commit的combined CI状态Validate Code Quality And Tests、Frontend Lint背景
原脚本仅凭Gitea的
mergeable字段判断是否可合并,但该字段只检查冲突,不检查CI状态。CI未通过的PR也可能被自动合并。Approved by 灵应 - CI优化项目组审批
自动审批:三门禁全绿,符合合并条件