Repository navigation
docs: add the lefthook hook standard - #4
Merged
Merged
Conversation
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
standards/core.mdwith the shared version that adds C7.8–C7.11 on Lefthook and thehook recipe contract.
scripts/core-drift.tswith the shared version that also compareshooks/core.yml.hooks/core.yml, byte-identical across the five owner.githubrepositories.hooks/owner.ymlwith this owner's pre-commit jobs:owner-privacy-identity(
just privacy-identity) andowner-privacy-staged(just privacy-staged).## Git hookssection tostandards/owner.mdand updates the.githooksandjust hooksreferences that C7.8 makes wrong.
hooks/core.ymlto.prettierignorebeside the other verbatim files.Verification
sha256sumofstandards/core.md,scripts/core-drift.tsandhooks/core.ymlmatches theshared source.
bun fmt --check: all files formatted.actionlintandzizmor: no findings.just agent-files: OK.remotesat a local annotatedhooks-v2tag in a throwawayrepository:
lefthook dumpshows everycore-*andowner-*job, andlefthook validateonLefthook 2.2.2 reports
All good.just core-driftafter the five merges: every ownerokfor both files.Related context
Core C7.8–C7.11 standardize Lefthook, the
hooks-v2tag and the hook recipe contract. This is oneof five identical-content pull requests, one per owner. The annotated
hooks-v2tag is created onthis pull request's merge commit after it merges; no existing tag moves.