Generate pull requests with proper title formatting, structured descriptions, and GitHub CLI integration
/plugin marketplace add claudeforge/marketplace/plugin install pull-request-generator@claudeforge-marketplaceGenerate well-formatted pull requests using GitHub CLI with consistent titles, structured descriptions, and proper templates.
Run after committing and pushing your changes:
/create-pull-request
The command will guide you through PR creation.
Use conventional commit format with optional emoji:
<type>(<scope>): <description>
Examples:
feat(auth): add OAuth2 login support
fix(api): resolve rate limiting issue
docs(readme): update installation guide
feat: New featurefix: Bug fixdocs: Documentation changesrefactor: Code restructuringtest: Test additions or modificationschore: Build/config changes## Summary
Brief 1-2 sentence overview of changes
## Changes Made
- Change 1
- Change 2
- Change 3
## Related Issues
Closes #123
Relates to #456
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests passing
- [ ] Manual testing completed
## Screenshots
(if UI changes)
Create PR
gh pr create \
--title "feat(search): add fuzzy search" \
--body "$(cat <<'EOF'
## Summary
Implement fuzzy search for user queries
## Changes Made
- Added fuzzysearch library
- Updated search component
- Added tests
## Related Issues
Closes #234
EOF
)"
Create Draft PR
gh pr create --draft --title "WIP: Feature in progress"
Set Base Branch
gh pr create --base develop --head feature/new-feature
Add Reviewers and Labels
gh pr create \
--reviewer alice,bob \
--label "enhancement,needs-review" \
--assignee charlie
Scenario: Adding export feature
Step 1: Commit and Push
git add .
git commit -m "feat(export): add CSV export functionality"
git push -u origin feature/csv-export
Step 2: Create PR
gh pr create \
--title "feat(export): add CSV export functionality" \
--body "$(cat <<'EOF'
## Summary
Add ability to export data as CSV files
## Changes Made
- Created ExportService class
- Added CSV conversion logic
- Added download button to UI
- Wrote unit tests
## Related Issues
Closes #189
## Testing
- [x] Unit tests pass
- [x] Tested with sample data
- [x] Verified file downloads correctly
EOF
)"
Feature PR
feat(payments): add Stripe integration
## Summary
Integrate Stripe for payment processing
## Changes Made
- Added Stripe SDK
- Created payment service
- Added checkout flow
Bug Fix PR
fix(validation): correct email regex
## Summary
Fix email validation rejecting valid addresses
## Changes Made
- Updated regex to allow + signs
- Added test cases
- Fixed edge case handling
Documentation PR
docs(api): update endpoint documentation
## Summary
Document all REST API endpoints
## Changes Made
- Added endpoint descriptions
- Included request/response examples
- Updated authentication section
Set Milestone
gh pr create --milestone "v2.0"
Add Projects
gh pr create --project "Development Sprint"
Template from File
gh pr create --body-file pr-template.md
Web UI
gh pr create --web
Before creating, verify:
Not Authenticated: Run gh auth login
No Upstream Branch: Push with git push -u origin branch-name
PR Already Exists: Check existing PRs with gh pr list
Wrong Base Branch: Specify with --base main
View PR
gh pr view 123
Check Status
gh pr checks
Edit PR
gh pr edit 123 --title "New title"
Add Comment
gh pr comment 123 --body "Additional info"
Mark Ready
gh pr ready 123
A good PR includes: