Repository navigation
ci: check formatting, and skip the reformat in blame - #120
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
CI now checks the formatting, and
git blamecan skip the commit that first formatted the code..git-blame-ignore-revs. It lists5b14e24, 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 thatgit blamegives 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 />inapp/app.vue, goes back to the commit that wrote it.lintjob now runspnpm format:checkin 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.pnpm format:check, and says how to make localgit blameskip the reformat:git config blame.ignoreRevsFile .git-blame-ignore-revs.pnpm format:checkpasses onmaintoday, so this PR formats nothing.Checklist
feat(docs): add the focus guideline.pnpm check-typespasses.pnpm dev. (No docs pages change.)pnpm build, thenpnpm lighthouse, still scores 100 in every category. (No homepage changes.)