diff --git a/CLAUDE.md b/CLAUDE.md index f7faf46..4af9a99 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -48,6 +48,19 @@ Do not create LogRecord constants or migrate to structured logging for this libr ./mvnw -Prewrite clean install # Verify changes ``` + +## Git Workflow + +This repository has branch protection on `main`. Direct pushes to `main` are never allowed. Always use this workflow: + +1. Create a feature branch: `git checkout -b ` +2. Commit changes: `git add && git commit -m ""` +3. Push the branch: `git push -u origin ` +4. Create a PR: `gh pr create --head --base main --title "" --body "<body>"` +5. Enable auto-merge: `gh pr merge --auto --squash --delete-branch` +6. Wait for merge (check every ~60s): `while gh pr view --json state -q '.state' | grep -q OPEN; do sleep 60; done` +7. Return to main: `git checkout main && git pull` + ## Project Architecture ### Core Testing Framework (`src/main/java/de/cuioss/test/jsf`)