Skip to content

docs: add the lefthook hook standard - #4

Merged
deathpie merged 1 commit into
mainfrom
docs/hooks-standard
Nov 23, 2026
Merged

deathpie merged 1 commit into
mainfrom
docs/hooks-standard

Conversation

@deathpie

Copy link
Copy Markdown
Owner

What changed

  • Replaces standards/core.md with the shared version that adds C7.8–C7.11 on Lefthook and the
    hook recipe contract.
  • Replaces scripts/core-drift.ts with the shared version that also compares hooks/core.yml.
  • Adds hooks/core.yml, byte-identical across the five owner .github repositories.
  • Adds hooks/owner.yml with this owner's pre-commit jobs: owner-privacy-identity
    (just privacy-identity) and owner-privacy-staged (just privacy-staged).
  • Adds a ## Git hooks section to standards/owner.md and updates the .githooks and just hooks
    references that C7.8 makes wrong.
  • Adds hooks/core.yml to .prettierignore beside the other verbatim files.

Verification

  • sha256sum of standards/core.md, scripts/core-drift.ts and hooks/core.yml matches the
    shared source.
  • bun fmt --check: all files formatted.
  • actionlint and zizmor: no findings.
  • just agent-files: OK.
  • Loaded both hook files through remotes at a local annotated hooks-v2 tag in a throwaway
    repository: lefthook dump shows every core-* and owner-* job, and lefthook validate on
    Lefthook 2.2.2 reports All good.
  • just core-drift after the five merges: every owner ok for both files.

Related context

Core C7.8–C7.11 standardize Lefthook, the hooks-v2 tag and the hook recipe contract. This is one
of five identical-content pull requests, one per owner. The annotated hooks-v2 tag is created on
this pull request's merge commit after it merges; no existing tag moves.

@deathpie
deathpie merged commit a5b8077 into main Nov 23, 2026
5 checks passed
@deathpie
deathpie deleted the docs/hooks-standard branch November 23, 2026 18:29
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