Skip to content

chore(githooks): add pre-push guard for protected branches - #15

Merged
jfrench9 merged 1 commit into
mainfrom
chore/pre-push-guard
Jul 14, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
chore/pre-push-guard

Conversation

@jfrench9

Copy link
Copy Markdown
Member

Summary

  • Add committed .githooks/pre-push hook that rejects pushes to main / master / release/*
  • Install the hook automatically via an npm prepare script (git config core.hooksPath .githooks)
  • Add .claude/settings.json allowing Bash(git push:*) so feature branches can be pushed

Test plan

  • Hook blocks a push targeting refs/heads/main; feature-branch refs pass through
  • Pre-commit suite green

@jfrench9
jfrench9 merged commit 26a55bb into main Jul 14, 2026
1 check passed
@jfrench9
jfrench9 deleted the chore/pre-push-guard branch July 14, 2026 06:03
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