PR to Main Branch
Create PR for feature branches targeting main.
Workflow
-
Gather context (parallel):
git status(no -uall flag)git difffor staged/unstaged changesgit logfor commit history on current branch- Check if branch tracks remote and needs push
-
Analyze changes:
- Review ALL commits in the branch (not just latest)
- Identify the type from commit prefix:
fix:,feat:,improvement:
-
Select template based on commit prefix:
fix:→ Useassets/fix-template.mdfeat:→ Useassets/feat-template.mdimprovement:→ Useassets/improvement-template.md
-
Create PR (parallel if needed):
- Push branch with
-uflag if needed - Create PR using
gh pr create
- Push branch with
PR Format
Language: Always write PR title and body in English
Title: Under 70 characters, descriptive
Templates
fix: (Bug fixes)
Use assets/fix-template.md - Problem/Solution format with Current/Expected behavior
feat: (New features)
Use assets/feat-template.md - Summary/Motivation/Changes format
improvement: (Enhancements)
Use assets/improvement-template.md - Before/After comparison format