1. Ensure all changes are committed with proper message format
2. Push to appropriate branch (fork or direct)
3. Prepare comprehensive PR description
4. Get user approval before creating PR
5. Extract owner and repo from the provided GitHub URL
- Bug fixes: "fix: [description] (#[issue-number])"
- Features: "feat: [description] (#[issue-number])"
- Follow conventional commit format
Must include:
- Link to issue (Fixes #[number])
- Detailed description of changes
- Testing performed
- Verification of acceptance criteria
- Checklist items
- Screenshots/demos if applicable
Use GitHub CLI to create the pull request:
gh pr create --repo [owner]/[repo] --base main --title "[title]" --body "[description]" --maintainer-can-modify
If working from a fork, ensure you've forked first:
gh repo fork [owner]/[repo] --clone
The gh CLI automatically handles fork workflows.
1. Comment on original issue with PR link:
gh issue comment [issue-number] --repo [owner]/[repo] --body "PR #[pr-number] has been created to address this issue"
2. Inform user of successful creation
3. Provide next steps and tracking info
4. Monitor PR checks:
gh pr checks [pr-number] --repo [owner]/[repo] --watch