commandby lazylabz
Create Pr
Create a PR following the project template with iterative description editing
Installs: 0
Used in: 1 repos
Updated: 8h ago
$
npx ai-builder add command lazylabz/create-prInstalls to .claude/commands/create-pr.md
Create a pull request following these steps:
1. **Analyze the current branch changes:**
- Run `git status` to see uncommitted changes
- Run `git diff main...HEAD --stat` to see all changes from main
- Run `git log main..HEAD` to see all commits in this branch
- Check if branch tracks remote with `git rev-parse --abbrev-ref --symbolic-full-name @{u}`
2. **Draft PR content based on `.github/pull_request_template.md`:**
- **Title**: Follow conventional commit format (feat/fix/docs/refactor/test/chore)
- **Description sections**:
- Follow `.github/pull_request_template.md`
3. **Present the draft to me:**
- Show the proposed PR title
- Show the complete PR description
- Wait for my feedback
4. **Iterate based on feedback:**
- If I request edits, update specific sections
- Show the updated version
- Repeat until I approve
5. **Submit the PR:**
- Only after I explicitly approve
- Push branch to remote if needed (`git push -u origin <branch>`)
- Create PR with `gh pr create --title "..." --body "..."`
- Use HEREDOC for the body to ensure proper formatting
**Important:**
- Do NOT push or create the PR until I explicitly approve
- Ensure the title follows conventional commit format
- Fill out all relevant sections from the template
- Check all commits in the branch, not just the latest oneQuick Install
$
npx ai-builder add command lazylabz/create-prDetails
- Type
- command
- Author
- lazylabz
- Slug
- lazylabz/create-pr
- Created
- 3d ago