1.9 KiB
1.9 KiB
Create Pull Request
Create a well-structured pull request with proper description and context.
PR Title (if provided)
$ARGUMENTS
Process
-
Prepare Branch
# Check current branch git branch --show-current # Ensure we're not on main # If on main, create a feature branch -
Review Changes
# See what will be included git status git diff main...HEAD -
Create Commits
- Stage relevant files
- Create logical, atomic commits if not already done
- Write clear commit messages following conventional commits, do not include any reference to cluade, written by clade etc:
feat:for new featuresfix:for bug fixesdocs:for documentationtest:for testsrefactor:for refactoring
-
Push to Remote
git push -u origin HEAD -
Create PR
gh pr create --title "$ARGUMENTS" --body "$(cat <<'EOF' ## Summary [Brief description of what this PR does] ## Changes - [List key changes] - [Be specific] ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Testing - [ ] Tests pass locally - [ ] Added new tests - [ ] Manual testing completed ## Checklist - [ ] Code follows project style - [ ] Self-reviewed - [ ] Updated documentation - [ ] No console.logs or debug code ## Screenshots (if applicable) [Add screenshots for UI changes] ## Additional Context [Any extra information reviewers should know] EOF )" -
Post-Creation
- Add labels if needed:
gh pr edit --add-label "feature,needs-review" - Request reviewers if known
- Link to related issues
- Add labels if needed:
Remember to:
- Keep PRs focused and small
- Provide context for reviewers
- Test thoroughly before creating PR