Skip to content

chore: ignore older formatting commits in git blame (AI-assisted) - #12650

Merged
slorber merged 1 commit into
mainfrom
claude/git-blame-ignore-formatting-c8c144
Oct 15, 2026
Merged

slorber merged 1 commit into
mainfrom
claude/git-blame-ignore-formatting-c8c144

Conversation

@slorber

@slorber slorber commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Follow-up of #12590: add older formatting commits to .git-blame-ignore-revs (AI-assisted).

I blamed every file on main and kept only formatting commits that still own lines today:

Commit Change Lines still blamed on it
190ef6fa5d Prettier to oxfmt migration (#11824) 255
a1de6dab04 CRLF to LF line endings fix (2018), empty diff with --ignore-cr-at-eol 342 (test fixtures)
55e676cb25 First Prettier run on Markdown files (#2102) 87 (fixtures, package READMEs)

Like f144233f5c, #11824 also includes about 30 lines of tooling changes (scripts, workflow step names, AGENTS.md). Ignoring those few lines in blame is acceptable. The files it created (.oxfmtrc.json, etc.) stay attributed to it.

Not added:

Test Plan

With git config blame.ignoreRevsFile .git-blame-ignore-revs, each commit is skipped:

  • admin/new.docusaurus.io/netlify.toml line 6: 190ef6fa5d → 700a82aefe
  • packages/docusaurus-mdx-loader/README.md line 22: 55e676cb25 → af059e61de
  • packages/docusaurus-plugin-content-docs/src/__tests__/__fixtures__/simple-site/docs/foo/bar.md line 1: a1de6dab04 → d80a2555c0

Test links

Deploy preview: https://deploy-preview-12650--docusaurus-2.netlify.app/

No site change.

Related issues/PRs

🤖 Generated with Claude Code

Add the Prettier to oxfmt migration (#11824), the 2019 Prettier run on
Markdown files (#2102) and a 2018 CRLF to LF line endings fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@slorber
slorber requested a review from Josh-Cena as a code owner October 15, 2026 11:09
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Oct 15, 2026
@netlify

netlify Bot commented Oct 15, 2026

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit 1f6c23f
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6ad0b47dd9b4246a3ed645b6
😎 Deploy Preview https://deploy-preview-12650--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@slorber slorber added the pr: ignore This PR is not meaningful enough to appear in the changelog. label Oct 15, 2026
@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 53 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 54 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 69 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 66 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 67 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 69 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 65 🟢 100 🟢 100 🟠 86 Report

@slorber
slorber merged commit f7e5ab0 into main Oct 15, 2026
18 checks passed
@slorber
slorber deleted the claude/git-blame-ignore-formatting-c8c144 branch October 15, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: ignore This PR is not meaningful enough to appear in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant