Skip to content

ci: add autofix.ci#45

Merged
mscolnick merged 1 commit into
mainfrom
ci/autofix
Jul 22, 2026
Merged

ci: add autofix.ci#45
mscolnick merged 1 commit into
mainfrom
ci/autofix

Conversation

@mscolnick

Copy link
Copy Markdown
Collaborator

What this does

Adds an autofix.ci workflow that runs on every PR (and on pushes to main). It installs deps exactly like the repo's own CI (ci.yml), runs Biome's fixer (biome check --write . via the existing lint script), and hands the result to autofix-ci/action, which pushes the formatting/lint fixes back onto the PR branch. Contributors never have to hand-fix formatting.

The autofix.ci GitHub App is installed org-wide for marimo-team (confirmed by an org admin), so this works as soon as it's merged — no per-repo setup needed.

How it composes with the existing lint gate

This does not replace CI's lint check — it complements it. The existing ci.yml lint job stays the hard gate that fails the build on unfixable problems. autofix.ci just removes the busywork: anything Biome can fix automatically gets pushed to the branch, so the lint gate only ever fails on things that genuinely need a human. The fixer runs with || true so unfixable lint errors don't block uploading the fixes that did apply (CI still reports them).

Included fix: renovate.json

Running the fixer locally surfaced one pre-existing formatting drift: renovate.json (left un-formatted by the recent Renovate config migration) gets reformatted by Biome. That fix is included in this PR so the tree is clean and future autofix runs are no-ops. No behavior change — same extends list, reformatted to Biome's style.

Verification

  • Cloned, pnpm install, ran the exact fixer the workflow uses. Only diff was the renovate.json reformat noted above (now committed); re-running the fixer is a clean no-op.
  • Workflow YAML parses and passes actionlint (0 issues).
  • Action/toolchain versions and SHA pins (checkout/pnpm/node all # v6) mirror ci.yml.
  • Workflow name is exactly autofix.ci (required — the service identifies the workflow by name for security) and the autofix-ci/action step runs last.

Part of the marimo-team engineering-excellence initiative.

Copilot AI review requested due to automatic review settings July 22, 2026 17:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mscolnick
mscolnick merged commit 19253f1 into main Jul 22, 2026
4 checks passed
@mscolnick
mscolnick deleted the ci/autofix branch July 22, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants