Skip to content

ci: add autofix.ci#20

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

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

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

What this does

Adds an autofix.ci workflow that automatically pushes lint/format fixes onto pull requests. When a contributor opens or updates a PR, the workflow runs the repo's mutating fixer (pnpm run lint, i.e. biome check --write) and, via the autofix.ci GitHub App, commits any resulting fixes straight back onto the PR branch. Contributors never see a red formatting/lint check they have to reproduce and fix by hand.

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

How it composes with the existing lint gate

CI's biome ci . lint step stays exactly as-is: it's non-mutating and still fails the build on anything that can't be auto-fixed (genuine lint errors are meant to be surfaced, not silently rewritten). autofix.ci is the complement — it handles the mechanical fixes (formatting, safe lint autofixes) so that class of failure disappears from the contributor's plate. The fixer step is guarded with || true so unfixable lint errors don't block uploading the fixes that did apply; CI remains the source of truth for reporting them.

The setup steps (checkout / pnpm / Node) mirror test.yml exactly, with the same SHA-pinned action versions.

Verification

  • Cloned, pnpm install --ignore-scripts --frozen-lockfile, ran pnpm run lintno diff (tree stays clean; only pre-existing non-fixable warnings, which CI already reports).
  • Workflow YAML parses cleanly and passes actionlint.
  • 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.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 89.8% 2934 / 3267
🔵 Statements 89.8% 2934 / 3267
🔵 Functions 86.9% 73 / 84
🔵 Branches 91.76% 479 / 522
File CoverageNo changed files found.
Generated in workflow #69 for commit d427257 by the Vitest Coverage Report Action

@mscolnick
mscolnick merged commit d427257 into main Jul 22, 2026
5 checks passed
@mscolnick
mscolnick deleted the ci/autofix branch July 22, 2026 17:45
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