fix: 移除auto-fix commit中的[ci skip],让格式修复后CI能重新验证 #699
Reference in New Issue
Block a user
Delete Branch "fix/auto-fix-ci-skip"
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_fix_formatting.py在自动格式化并提交后,commit message带了
[ci skip],导致Gitea跳过新commit的CI检查。结果是:PR格式有问题 → auto-fix修复 → 但CI不跑了 → PR永远过不了门禁 → 卡住。修复
移除commit message中的
[ci skip],让修复后的commit正常触发CI。为什么不会无限循环
格式化修复后,下次CI跑Validate时black/isort/prettier都会通过,不会再触发auto-fix,所以不会出现「修复→触发CI→再修复」的死循环。