| name | pull-request-conventions |
| description | Use when creating or merging pull requests - provides branch naming, PR title format, and description requirements for consistent PR workflows |
Pull Request Conventions
Branch Naming Convention
Format: <type>/<issue-number>-<description> or <type>/<description>
Types (must match conventional commit types):
feat- New featurefix- Bug fixdocs- Documentation onlychore- Maintenance tasksrefactor- Code restructuringtest- Adding or updating testsbuild- Build system changesci- CI configurationperf- Performance improvementsstyle- Code style changes (formatting, etc.)
Examples:
feat/123-user-authfix/login-errordocs/api-guiderefactor/simplify-validation
PR Title Convention
PR titles must follow Conventional Commits format.
Format: <type>[optional scope]: <description>
Why: PR title becomes the squash merge commit message on main.
Examples:
feat(auth): add JWT validationfix: resolve login errordocs(api): update endpoint documentation
Deriving PR Title
Primary source: commits. The PR title should reflect what the changes actually accomplish, not just the branch name.
Process:
- Review commit history to understand the changes
- Identify the primary type (
feat,fix,refactor, etc.) - Summarize the changes concisely
- Add scope if clearly scoped to a specific area
Branch name as fallback: If starting from branch name (e.g., when branch already exists), use it as a hint:
- Extract type from prefix:
feat/...→feat - Remove issue number if present:
feat/123-user-auth→user auth - Convert hyphens to spaces
Scope is optional - add when the change is clearly scoped to a specific area:
feat/auth-jwt-validation→feat(auth): jwt validationfix/login-error→fix: login error(no obvious scope)
Important: The branch name may diverge from actual changes during development. Always verify the title accurately reflects what the PR contains.
PR Description Requirements
Foundational principle: Description must be 100% accurate.
Required Sections
## Summary
<1-3 bullet points describing what changed and why>
## Test plan
<How to verify the changes work>
Accuracy Rules
The description must reflect the final state of changes, not the journey:
- If code was added then removed: don't mention it
- If approach changed mid-development: describe final approach only
- If features were split to other PRs: don't reference them
Common Red Flags
When reviewing PR descriptions, watch for:
- Mentions features that were removed
- Describes approach that was changed
- References safeguards that were removed
- Contains code examples that don't match final implementation