PR Title
Format: <type>: <short description in lowercase>
Types: feat, fix, chore, refactor, perf, docs, test, ci, build, style
No scope. No capital after colon.
Steps
- •
Detect platform - run in parallel:
- •
gh pr view --json number,title,url 2>/dev/null - •
glab mr view --output json 2>/dev/null - •Both fail → ask user to create one (and on which platform)
- •Both succeed → ask user which one
- •
- •
Analyze - infer type from branch name, commits, and diff. Branch hints:
- •
feature/*,feat/*→feat - •
fix/*,bugfix/*,hotfix/*→fix - •
refactor/*→refactor - •
chore/*,deps/*→chore - •Ambiguous → inspect commits/diff
- •
- •
Propose - present 2-3 title options via AskUserQuestion
- •
Apply:
- •GitHub:
gh pr edit --title "…"orgh pr create --title "…" --body "" - •GitLab:
glab mr update --title "…"orglab mr create --title "…" --description ""
- •GitHub: