Skip to content

chore: stop tracking lefthook-local.yml#1454

Merged
jrusso1020 merged 1 commit into
heygen-com:mainfrom
calcarazgre646:chore/untrack-lefthook-local
Jun 15, 2026
Merged

chore: stop tracking lefthook-local.yml#1454
jrusso1020 merged 1 commit into
heygen-com:mainfrom
calcarazgre646:chore/untrack-lefthook-local

Conversation

@calcarazgre646

Copy link
Copy Markdown
Contributor

What

Remove lefthook-local.yml from version control and add it to .gitignore.

Why

lefthook-local.yml is Lefthook's per-developer override file. By design it stays local and uncommitted; the shared hooks live in lefthook.yml. (Lefthook docs: local config)

It is currently committed, so it applies to everyone who clones the repo. The file defines a commit-msg hook that appends a personal Co-authored-by trailer to every contributor's commits, which isn't intended for shared use.

Change

  • git rm lefthook-local.yml
  • add lefthook-local.yml to .gitignore so local overrides stay local

lefthook.yml (the shared hook config) is untouched, so no shared hooks change. Anyone who wants a personal override can still create their own lefthook-local.yml and it will now be ignored.

lefthook-local.yml is Lefthook's per-developer override file and is meant to
stay local (the shared hooks live in lefthook.yml). It is currently committed,
so it applies to everyone who clones the repo: a commit-msg hook in it appends
a personal Co-authored-by trailer to every contributor's commit.

Remove it from version control and add it to .gitignore so local overrides stay
local. lefthook.yml (the shared config) is unchanged.

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed end-to-end — small, correct chore PR.

CI is green: every skipping job is gated behind the Detect changes path filter, and the checks that actually ran (CodeQL, Analyze, Format, File size check, regression, Semantic PR title) all passed. The BLOCKED state is just the review-required gate, not a failing required check.

Strengths

  • Correctly diagnoses the root issue: lefthook-local.yml was committed, so its commit-msg hook appended Co-authored-by: Miguel Ángel <…> to every contributor's commits (lefthook-local.yml:6). *-local.yml is Lefthook's per-developer override by design — committing it was the actual bug, and git rm + .gitignore is the right fix.

Verified

  • Shared lefthook.yml is untouched; its commit-msg: commitlint and all pre-commit hooks (lint/format/typecheck/fallow/largefiles/filesize) are independent of the deleted file, so no shared hook regresses.
  • No code, script, doc, or CI references lefthook-local.yml anywhere — removal breaks nothing.
  • The Miguel co-author trailer appears only in this file (other "Miguel" matches are unrelated test comments/fixtures).
  • .gitignore had no prior lefthook entry; the new ignore block is correct and well-commented.

No blockers, no nits.

Verdict: APPROVE
Reasoning: Clean cleanup that fixes a real (if minor) problem — an accidentally-tracked personal git hook polluting everyone's commit trailers. Shared config untouched, nothing references the removed file, CI green.

— pr-review

@jrusso1020 jrusso1020 merged commit 2002aa2 into heygen-com:main Jun 15, 2026
35 checks passed
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