Skip to content

Protect main branch#2

Merged
cgasgarth merged 1 commit into
mainfrom
chore/protect-main
Mar 22, 2026
Merged

Protect main branch#2
cgasgarth merged 1 commit into
mainfrom
chore/protect-main

Conversation

@cgasgarth
Copy link
Copy Markdown
Owner

Summary

  • add local git hooks that block commits and pushes directly to main
  • install the repo hook path automatically on npm install/prepare
  • run the full validation gate before commits on feature branches

Testing

  • npm run commit-check
  • .githooks/pre-commit on main exits 1
  • .githooks/pre-push rejects refs/heads/main

@cgasgarth cgasgarth merged commit a04263b into main Mar 22, 2026
1 check passed
@cgasgarth cgasgarth deleted the chore/protect-main branch March 22, 2026 02:01
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