Skip to content

fix: Allow release script to bypass pre-push hook#67

Merged
pfrederiksen merged 1 commit intomainfrom
fix/release-script-pre-push-hook
Jan 12, 2026
Merged

fix: Allow release script to bypass pre-push hook#67
pfrederiksen merged 1 commit intomainfrom
fix/release-script-pre-push-hook

Conversation

@pfrederiksen
Copy link
Owner

Problem

The release script tries to git push origin main which is now blocked by the pre-push hook we just installed.

Solution

Use --no-verify flag for release pushes. This is safe because:

  • Release script has extensive safety checks
  • Verifies we're on main branch
  • Checks for uncommitted changes
  • Confirms we're up to date with remote
  • Requires manual confirmation
  • Creates atomic version bump + tag + push

Changes

  • Updated scripts/release.sh to use --no-verify for both branch and tag pushes
  • Releases are a special case where direct push to main is intentional

Testing

Will test after merge by running the major release.

🤖 Generated with Claude Code

The release script is a special case where pushing to main is intentional
and safe because:
- Script verifies we're on main branch
- Checks for uncommitted changes
- Confirms we're up to date with remote
- Requires manual confirmation before proceeding
- Creates atomic version bump + tag + push

Use --no-verify for release pushes to bypass the pre-push hook.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@pfrederiksen pfrederiksen merged commit c695a94 into main Jan 12, 2026
4 checks passed
@pfrederiksen pfrederiksen deleted the fix/release-script-pre-push-hook branch January 12, 2026 04:15
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