Commandtypescript
/pr Command
Create a well-formatted pull request for the current changes following Summit conventions.
Create Pull Request
Create a well-formatted pull request for the current changes following Summit conventions.
Pre-PR Checklist
Before creating the PR, verify:
-
Run all quality checks:
pnpm lint && pnpm typecheck && pnpm test:jest -
Run smoke tests:
pnpm smoke -
Check for uncommitted changes:
git status -
Review the diff:
git diff --stat origin/main...HEAD
Creating the PR
-
Push the branch:
git push -u origin $(git branch --show-current) -
Create PR with proper format:
Use this PR template:
## Summary
[1-3 bullet points describing what this PR does]
## Changes
- [List of specific changes made]
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Smoke tests pass
- [ ] Manual testing completed
## Screenshots (if applicable)
[Add any relevant screenshots]
## Related Issues
Closes #[issue number]
## Checklist
- [ ] Code follows project conventions
- [ ] Self-review completed
- [ ] Documentation updated (if needed)
- [ ] No console.log or debug statements
- [ ] No secrets or credentials exposed
Commit Message Format
Follow Conventional Commits:
<type>(<scope>): <description>
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, perf, test, chore, ci, build
After PR Creation
- Request reviewers from the appropriate team
- Add relevant labels (e.g.,
area/api,type/feature) - Link to any related issues
- Monitor CI status and address any failures