pr-to-productionlisted
Install: claude install-skill breaking-brake/cc-wf-studio
# PR to Production Branch (Release)
Create release PR from main to production for semantic-release.
## Workflow
1. **Fetch latest from remote** (required first):
- `git fetch origin production main --quiet`
- **IMPORTANT**: Always use remote refs (`origin/production`, `origin/main`) for comparison. Local branches may be stale.
2. **Gather context** (parallel):
- `git log origin/production..origin/main --oneline` for commits to release
- `git ls-remote --tags origin | grep -E 'refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/.*refs\/tags\///' | sort -V | tail -1` for latest release version from remote
- `git rev-list --count origin/production..origin/main` to check if main is ahead of production
3. **Analyze commits**:
- Categorize by type: feat, fix, chore, etc.
- Calculate expected version bump
4. **Create PR**:
- Use `gh pr create` with base `production`
- Use template from `assets/pr-template.md`
## Version Bump Rules
- `feat:` → **minor** (1.0.0 → 1.1.0)
- `fix:`, `perf:`, `revert:` → **patch** (1.0.0 → 1.0.1)
- `BREAKING CHANGE` → **major** (1.0.0 → 2.0.0)
- `docs:`, `chore:`, `ci:` → no bump
## PR Format
**Language**: Always write PR title and body in English
**Title**: `Release: vX.Y.Z`
**Body**: Use template at `assets/pr-template.md`
## Example
```bash
gh pr create --base production --title "Release: v0.2.0" --body "$(cat <<'EOF'
## Summary
Merge latest changes from `main` to `production` for automated release v0.2.0.
## Include