Skip to content

fix: pin pre-commit hook --base to mirror CI#34

Merged
ethanj merged 1 commit intomainfrom
align-prehook-with-ci
Apr 22, 2026
Merged

fix: pin pre-commit hook --base to mirror CI#34
ethanj merged 1 commit intomainfrom
align-prehook-with-ci

Conversation

@ethanj
Copy link
Copy Markdown
Contributor

@ethanj ethanj commented Apr 22, 2026

Summary

Follow-up to the fallow gate rollout. Codex flagged that the Husky pre-commit hook advertised same semantics CI uses but relied on fallow audit's auto-detection while CI passed --base explicitly. Auto-detection can pick a different ref when the tracked remote branch is stale or multiple remotes are configured, so a commit could clear the hook locally and still fail CI.

Pin the hook's --base to match the CI step exactly.

Test plan

  • Pre-commit hook runs fallow audit --base=origin/<default> and passes on this branch
  • CI green end-to-end

Codex flagged that the Husky hook relied on fallow audit's
auto-detection while CI passed --base explicitly, so a commit could
clear the hook locally and still fail CI if origin/main was stale or
the auto-detected ref differed. Pin to origin/main to match the CI
step exactly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ethanj ethanj merged commit 0b53116 into main Apr 22, 2026
1 check passed
@ethanj ethanj deleted the align-prehook-with-ci branch April 22, 2026 22:32
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.

1 participant