Skip to content

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

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

chore(githooks): add pre-push guard for protected branches#206
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 any push whose destination ref is main / master / release/*
  • Wire hook installation via npm prepare script (core.hooksPath.githooks)
  • Move Bash(git push:*) from deny to allow in .claude/settings.json

Test plan

  • Hook blocks a push to refs/heads/main and passes feature-branch refs
  • Pre-commit suite green

@jfrench9 jfrench9 merged commit d6874ab into main Jul 14, 2026
3 checks 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