Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(actions): skip lefthook detection when git core.hooksPath is set#78

Merged
matt2e merged 1 commit intomainfrom
matt2e/git-hook-overrides
Feb 12, 2026
Merged

feat(actions): skip lefthook detection when git core.hooksPath is set#78
matt2e merged 1 commit intomainfrom
matt2e/git-hook-overrides

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 12, 2026

Check for git hook overrides by running git config core.hooksPath in the working directory before building the action detection prompt. When a custom hooks path is configured, the prompt instructs the AI to skip suggesting lefthook install as a prerun action. When no override is set, the original behavior is preserved.

The lefthook instructions in the prompt template are now dynamic via a {lefthook_instructions} placeholder, populated at runtime based on the override check.

Check for git hook overrides by running `git config core.hooksPath` in the
working directory before building the action detection prompt. When a custom
hooks path is configured, the user manages git hooks externally, so the
prompt instructs the AI to skip suggesting `lefthook install` as a prerun
action. When no override is set, the original behavior is preserved.

The lefthook instructions in the prompt template are now dynamic via a
`{lefthook_instructions}` placeholder, populated at runtime based on the
override check.
@matt2e matt2e merged commit 27135cf into main Feb 12, 2026
2 checks passed
@matt2e matt2e deleted the matt2e/git-hook-overrides branch February 12, 2026 21:01
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