Create a pull request, optionally for the issue provided as argument
Create a pull request. If an issue number is provided in $ARGUMENTS, use it. If no issue is provided, continue without requiring one.
Follow these steps:
Check current git status and branch information
git status and git branch to understand the current stateCreate branch if needed
Review commit history and code differences
git log and git diff main...HEAD to understand all changes from the main branchAdd changeset record if necessary
.changeset/ directory following changeset conventionpatch (0.0.x) — Users barely notice
minor (0.x.0) — Users can clearly perceive "something new"
major (x.0.0) — Users need to pay attention / adapt. Almost never use. Must ask user for explicit approval before using.
Ensure all changes are committed
Push the branch to remote
git push -u origin <branch-name> if neededCreate PR with GitHub CLI
gh pr create with:
.github/PULL_REQUEST_TEMPLATE.mdCloses #<issue-number>Return the PR URL for easy access
Follow these commit types:
feat: New featuresfix: Bug fixesdocs: Documentation changesstyle: Code style changesrefactor: Code refactoringtest: Adding or updating testschore: Maintenance tasksbuild: Build system changesci: CI/CD changesperf: Performance improvementsrevert: Reverting previous commitsi18n: Internationalization changesai: AI-related featuresFormat: type(scope): description
.github/PULL_REQUEST_TEMPLATE.mdCLAUDE.md