Skip to content

fix(trunk): remove stale sh-hook action blocking local git hooks#447

Open
ss-o wants to merge 1 commit into
mainfrom
bug-445-remove-stale-sh-hook
Open

fix(trunk): remove stale sh-hook action blocking local git hooks#447
ss-o wants to merge 1 commit into
mainfrom
bug-445-remove-stale-sh-hook

Conversation

@ss-o

@ss-o ss-o commented Jun 13, 2026

Copy link
Copy Markdown
Member

Problem

.trunk/trunk.yaml enables a custom sh-hook action that runs .github/hook.sh on the pre-commit and pre-push git hooks, but that script was deleted in e3fd962. Every git commit / git push in a local clone with trunk-managed hooks fails:

sh-hook: line 1: .github/hook.sh: No such file or directory
✖ Commit blocked by git hook 'sh-hook'

Fix

Remove the sh-hook entry from both actions.enabled and actions.definitions. The deleted script only ran trunk check --show-existing --no-progress, which trunk's built-in trunk-check-pre-push / trunk-fmt-pre-commit actions already provide when desired (both are deliberately disabled in this config).

Closes #445

🤖 Generated with Claude Code

The sh-hook action ran .github/hook.sh on the pre-commit and pre-push
git hooks, but that script was deleted in e3fd962, so every commit
and push in clones with trunk-managed hooks failed with
"sh-hook: line 1: .github/hook.sh: No such file or directory".

Remove the action from actions.enabled and actions.definitions; the
script only ran 'trunk check --show-existing', which the built-in
trunk actions already cover when desired.

Closes #445
Copilot AI review requested due to automatic review settings June 13, 2026 01:56
@ss-o ss-o requested a review from a team as a code owner June 13, 2026 01:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes a stale Trunk custom git-hook action (sh-hook) from .trunk/trunk.yaml so local git commit/git push aren’t blocked by a missing .github/hook.sh script (per #445).

Changes:

  • Drop sh-hook from actions.enabled.
  • Remove the sh-hook custom action definition from actions.definitions.

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.

Stale sh-hook trunk action blocks every local commit (.github/hook.sh removed)

2 participants