From 20c2e74412c983e9636774bf3f1733eb9ab67efb Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Fri, 24 Jul 2026 13:42:24 -0400 Subject: [PATCH] chore: allow direct pushes to main Remove the protect-main pre-push guard so main can be pushed directly, and update the CLAUDE.md git-workflow note to match. Co-Authored-By: Claude Opus 4.8 --- CLAUDE.md | 2 +- lefthook.yml | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 65b5f99..a23a31f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -86,4 +86,4 @@ Tests use `database.NewTestDB(t)` for in-memory SQLite with full schema. Test au ## Git Workflow -Direct push to `main` is blocked by lefthook — use feature branches and PRs. Pre-commit runs vet, lint, codegen check, and frontend typecheck in parallel. Pre-push runs the full test suite. +Feature branches and PRs are the norm, but direct pushes to `main` are allowed. Pre-commit runs vet, lint, codegen check, and frontend typecheck in parallel. Pre-push runs the full test suite. diff --git a/lefthook.yml b/lefthook.yml index fb2f309..b05cce6 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -31,17 +31,6 @@ pre-commit: pre-push: parallel: true commands: - protect-main: - run: | - branch=$(git rev-parse --abbrev-ref HEAD) - if [ "$branch" = "main" ]; then - echo "Direct push to main is not allowed. Use a pull request instead." - exit 1 - fi - skip: - - merge - - rebase - go-test: glob: "*.go" run: go test -tags webkit2_41 -race -count=1 -timeout 120s ./...