Skip to content

ci: add autofix workflow for formatting and lint fixes - #208

Merged
Siumauricio merged 1 commit into
mainfrom
ci/autofix-format
Oct 21, 2026
Merged

Siumauricio merged 1 commit into
mainfrom
ci/autofix-format

Conversation

@Siumauricio

Copy link
Copy Markdown
Contributor

Why

Adds the same kind of autofix workflow Dokploy uses in dokploy/dokploy. On each PR, Biome formats and applies safe lint and import fixes, then autofix.ci pushes any changes back to the PR branch as a commit. Contributors don't have to rerun Biome by hand to get lint-and-typecheck green.

Changes

  • New .github/workflows/format.yml, adapted from the dokploy/dokploy version:
    • Triggers on push and pull_request to main.
    • Uses pnpm and Node 24.4.0, like pull-request.yml, so the Biome version matches the repo's lockfile.
    • Runs pnpm biome check --write instead of biome format --write. CI runs biome ci, which also checks lint and import order, so the autofix needs to cover those too.
    • Keeps the same autofix.ci action pin.

Notes

  • autofix.ci needs its GitHub App installed on this repository. Without it, the action fails on PRs.
  • Autofix only pushes to branches in this repo, not from forks.
  • This PR doesn't change any source files.

Runs biome check --write on PRs and pushes any fixes back to the PR
branch through autofix.ci, so formatting problems are fixed instead of
failing lint-and-typecheck.
@Siumauricio
Siumauricio merged commit 1eaa0fe into main Oct 21, 2026
0 of 2 checks passed
@Siumauricio
Siumauricio deleted the ci/autofix-format branch October 21, 2026 21:06
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.

1 participant