From d49509e3c969b4472cace19f98cdeb22feede855 Mon Sep 17 00:00:00 2001 From: cuioss-release-bot Date: Thu, 5 Feb 2026 16:57:28 +0100 Subject: [PATCH] chore: add Git Workflow section to CLAUDE.md --- CLAUDE.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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`)