fix: 修复AI审查严重问题检测正则,正确匹配需要修改的问题 #747
Reference in New Issue
Block a user
Delete Branch "fix/ai-review-critical-match"
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?
问题
AI审查与auto-approve联动失效:get_ai_review_result()的正则要求匹配"严重"字样,但实际AI审查评论格式为
### ⚠️ 问题(X个需要修改),不包含"严重",导致has_critical永远为False。修复
调整方式2的正则,将
需修改.*?严重改为(?:需修改|问题),兼容当前AI审查输出格式。验证
5个Open PR全部正确识别:
CI全绿,approve
🗑️ 预览环境已清理
PR #747 已关闭或合并,对应的预览环境已被清理。