Document automerge label workflow in CLAUDE.md (#6)

This commit is contained in:
Ullrich Schäfer 2026-03-22 22:55:31 +01:00 committed by GitHub
parent 9160301ab3
commit df731d9d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,12 @@ pnpm test:e2e:ui # Run E2E tests with Playwright UI
### Opening a PR
- Create a feature branch: `git checkout -b <descriptive-name>`
- Keep PRs focused — one logical change per PR
- PRs auto-merge when CI is green (use `gh pr merge --auto --squash`)
- Add the `automerge` label to auto-merge when CI passes:
```bash
gh pr create --title "..." --body "..."
gh api repos/trails-cool/trails/issues/<PR_NUMBER>/labels -f "labels[]=automerge"
```
- PRs with `automerge` label squash-merge and delete the branch automatically
- Use squash merges to keep main history clean
### Stacking PRs (for fast local iteration)