Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
#!/usr/bin/env bash
npx -y conventional-commit-msg "$1"
# `@latest` + explicit `--package` dodge two npm footguns: an inherited
# npm_config_package (agent wrappers like axexec/axrun set it, hijacking
# `npx -y` into exit 127), and local-root shadowing — without the version,
# `npm exec` resolves the conventional-commit-msg repo's own package and the
# bin is "not found", breaking the hook in that repo after prepare wires it up.
Comment on lines +2 to +6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Shorten the hook comment to a single line

The repo guideline in AGENTS.md says comments must be kept to one short line and never use multi-line comment blocks. This new five-line block violates that documented standard even though the rationale is useful; please collapse it to a concise single-line why-comment or move the fuller explanation to commit/PR context.

Useful? React with 👍 / 👎.

npm exec --yes --package=conventional-commit-msg@latest -- conventional-commit-msg "$1"
Loading