Create a PR with standardized team format
!git branch --show-current
!git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d' ' -f5
!git log --oneline $(git merge-base HEAD origin/$(git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d' ' -f5))..HEAD 2>/dev/null
!git diff --stat origin/$(git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d' ' -f5)...HEAD 2>/dev/null
Based on the branch, commits, and diff above:
Push if not already pushed:
git rev-parse --abbrev-ref @{upstream} 2>/dev/nullgit push -u origin <branch>git pushDetermine PR title:
Check for Linear ticket references:
DYN-123, LIN-123Create PR using gh pr create with this exact template:
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- [Bullet point 1: what changed]
- [Bullet point 2: if needed]
## Context
[Why this change was needed]
[Linear ticket link if found, e.g., "Closes DYN-123"]
## Testing
- [ ] [Step to verify the change works]
## Checklist
- [ ] Human has reviewed AI code
- [ ] Relevant context for this fix has been tracked in this issue and/or in associated linear ticket for future debugging
- [ ] Code follows project conventions
EOF
)"
Execute without asking for confirmation
Output the PR URL when done