Skip to content

ci: check formatting, and skip the reformat in blame - #120

Merged
alexgrozav merged 1 commit into
mainfrom
blame-format-check-uxf-1018
Nov 25, 2026
Merged

alexgrozav merged 1 commit into
mainfrom
blame-format-check-uxf-1018

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

What changed

CI now checks the formatting, and git blame can skip the commit that first formatted the code.

  • .git-blame-ignore-revs. It lists 5b14e24, the squash commit of style: format with the shared oxfmt config #119 (style: format with the shared oxfmt config). GitHub reads this file at the root by itself, so its blame view skips the reformat. Of the 17,196 lines that git blame gives to that commit today, 459 stay on it with the file in use: the lines the formatter added, like the ), of a wrapped call. A line it only re-indented, like <NuxtRouteAnnouncer /> in app/app.vue, goes back to the commit that wrote it.
  • CI. The lint job now runs pnpm format:check in a Format step before its Lint step, and is named "Format and lint". Each step reports on its own: Lint still runs when Format fails, as long as the install worked. The job isn't a required check, so the new name changes no merge rule.
  • CONTRIBUTING. It lists pnpm format:check, and says how to make local git blame skip the reformat: git config blame.ignoreRevsFile .git-blame-ignore-revs.

pnpm format:check passes on main today, so this PR formats nothing.

Checklist

  • The title follows Conventional Commits, as in feat(docs): add the focus guideline.
  • pnpm check-types passes.
  • Docs changes: the pages read well on pnpm dev. (No docs pages change.)
  • Homepage changes: pnpm build, then pnpm lighthouse, still scores 100 in every category. (No homepage changes.)

Adds a Format step (pnpm format:check) to the lint job, now named "Format and lint", and lists the formatting commit from #119 in .git-blame-ignore-revs, so GitHub's blame view skips it. CONTRIBUTING says how to make local git blame skip it too.

Co-authored-by: multica-agent <github@multica.ai>
@alexgrozav
alexgrozav marked this pull request as ready for review November 25, 2026 18:29
@alexgrozav
alexgrozav merged commit 848a30a into main Nov 25, 2026
6 checks passed
@alexgrozav
alexgrozav deleted the blame-format-check-uxf-1018 branch November 25, 2026 19:09
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