Repository navigation
ci(quality): remove the CI auto-formatter - #7941
Conversation
The `format` job in static / quality ran oxfmt and ruff on PR-changed files and pushed "style: auto-fix formatting" back to the branch with GITHUB_TOKEN. GitHub doesn't start workflows for pushes made with that token, so the pushed commit never got required checks (react-doctor, Intelligence runtime conformance), and the PR stayed blocked until someone pushed again. The lefthook pre-commit `lint-fix` hook already formats staged files locally, so the job is removed. With it go the workflow's only `contents: write` permission and the GITHUB_TOKEN push, plus a stale note about it in zizmor.yml. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
BenTaylorDev
left a comment
There was a problem hiding this comment.
The diagnosis is right: a GITHUB_TOKEN push starts no workflows, so the auto-fix commit stranded PRs without their required checks.
But this also removes the only CI formatting check. Contributors without lefthook (forks, web edits, --no-verify) can then land unformatted files, and the next person to touch those files gets unrelated formatting churn.
Can you keep a check-only job instead? Run oxfmt --check and ruff format --check on the PR-changed files, with contents: read and no push. That fixes the stranded-checks problem and still catches formatting drift.
What does this PR do?
Removes the
formatjob fromstatic / quality.That job ran oxfmt and ruff on PR-changed files and pushed a "style: auto-fix formatting" commit back to the branch using
GITHUB_TOKEN. GitHub doesn't start workflows for pushes made with that token. So the pushed commit never got its required checks (Intelligence runtime conformancetoday, andreact-doctoronce #7931 is required), and the PR stayed blocked until someone pushed again.Formatting is still applied locally: the lefthook pre-commit
lint-fixhook runs oxfmt (and ruff for Python) on staged files. CI no longer checks formatting.Removing the job also drops the workflow's only
contents: writepermission and itsGITHUB_TOKENpush. A comment about the job is removed from.github/zizmor.ymltoo.Testing
actionlintpasses onstatic_quality.yml.Related PRs and Issues
react-doctora required check.🤖 Generated with Claude Code