Create Pull Request
Create a well-formatted GitHub Pull Request for the current branch.
Steps
- •
Check branch state:
- •Run
git statusto see uncommitted changes - •Run
git log main..HEADto see commits to include - •Run
git diff main...HEADto understand all changes
- •Run
- •
Push if needed:
- •Check if branch is pushed with
git branch -vv - •Push with
git push -u origin HEADif needed
- •Check if branch is pushed with
- •
Create PR:
- •Analyze ALL commits (not just the latest) to write the summary
- •Use
gh pr createwith this format:
bash
gh pr create --title "Short descriptive title" --body "$(cat <<'EOF' ## Summary <1-3 bullet points covering the changes> ## Test plan - [ ] Manual testing steps or automated test coverage 🤖 Generated with [Claude Code](https://claude.com/claude-code) EOF )"
Important
- •Keep PR title under 70 characters
- •Summary should cover ALL commits in the branch, not just the most recent
- •Return the PR URL when done