mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
aeb8561d11
The format job set format_fixed=true from a whole-tree git diff and then git-committed only the scoped PR files. When a PR's own files are already formatter-clean but the runner's working tree is dirty for an unrelated reason (e.g. an LFS smudge on examples/teams/appPackage/*.png, which are *.png filter=lfs), the whole-tree diff falsely triggered the commit path while the scoped git add staged nothing, so git commit exited 1 and failed the job. This intermittently red-flagged any PR depending on per-runner LFS-smudge state (cf. #5715). - Trigger format_fixed only when a SCOPED file actually changed. - Guard the commit so an empty staged set is a no-op (exit 0) instead of a hard failure.