Create Pull Request
Create a pull request from the current implementation branch for a GitHub issue.
Process
1. Verify Branch
Check existing local and remote branches for one related to this issue -- it may be named by issue number (feature/issue-123) or by description (feature/audit-improvements). Check it out and ensure it has committed changes ready for a PR.
2. Get Issue Context
Determine the issue number from the user's request and fetch details:
gh issue view <issue-number>
3. Review All Changes
Determine the correct base branch -- main for regular branches, or the parent feature branch for sub-issue branches. Read git diff <base> to understand the full scope of changes. Note what was added, modified, and removed.
4. Create Pull Request
Read .github/PULL_REQUEST_TEMPLATE.md for the expected format, then create the PR:
gh pr create --title "<type>: <description>" --body "<body following template>" --base <base-branch>
Include Closes #<issue-number> in the body.
5. Post Update
gh issue comment <issue-number> --body "Pull request created: <PR-link>
---
*Generated by Claude -- reply with \`/praxis:review-pr <pr-number>\` for automated review*"