Improve hook output and remove redundant {origin} placeholder - #152
Merged
Merged
Conversation
Color "Running..." message with PrimaryStyle and show description instead of hook name when available. Remove redundant success line. Include exit code in failure error messages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
{origin} was identical to {repo} in practice. Remove the field from
hooks.Context, all callers, config template, and docs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move shell wrapper and completions into a dedicated Shell Integration
section. Link to it from Getting Started step 1. Remove {origin} from
placeholder docs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
- Explicit --hook names now only run in the after phase, preventing
double execution (once in before-hooks and again in after-hooks)
- Prune before-hook errors now include the actual error message
- Prune skips worktree when hook selection fails (prevents unguarded
deletion on --hook typos)
- Add t.Parallel() to TestValidateHookTriggers subtests
- Fix stale {origin} reference in CLAUDE.md
- Clarify doc.go: before-hook failure skips individual worktree in
prune batches, not the entire operation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Improve hook execution output: color messages with lipgloss styles, show hook description instead of name, include exit codes on failure. Remove the redundant
{origin}placeholder (identical to{repo}). Reorganize README shell integration section.Breaking Changes
{origin}hook placeholder removed — use{repo}insteadTest Coverage