-
Notifications
You must be signed in to change notification settings - Fork 131
ci: add aireceipts auto-attach hook (two-file kit) #994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "hooks": { | ||
| "PreToolUse": [ | ||
| { | ||
| "matcher": "Bash", | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "npx -y aireceipts-cli@latest hook pre-push", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In any Claude Code session for this repo, this Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because this project-level hook is committed and Claude Code executes command hooks automatically for matching Bash calls, Useful? React with 👍 / 👎. |
||
| "timeout": 60 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: PreToolUse hook fires on every Bash invocation, not just git pushes — the command runs
npx -yresolution on every shell command, adding latency to all Bash operations. Consider pre-installingaireceipts-clias a project dependency and runningnpx aireceipts-cli hook pre-push(or a direct path) to eliminate the resolution overhead on non-push Bash calls.Prompt for AI agents