Create Pr

Create a PR for completed work

PaulBunker updated 5mo ago
Claude CodeGeneric
View source ↗
---
description: Create a PR for completed work
---

# Create PR

Submit completed work as a pull request linked to the originating issue.

## Process

1. **Check git status**:
   ```bash
   git status
   git log --oneline origin/master..HEAD
  • Verify current branch (should be issue-<number>-...)
  • Check for uncommitted changes
  • Review commits since master
  1. Ensure changes are committed: If there are uncommitted changes, commit them with a descriptive message.

  2. Check for doc updates (optional): Run /docs-check to identify documentation that may need updates based on the changes.

  3. Push branch:

    git push -u origin <branch-name>
    
  4. Extract issue number from branch name (e.g., issue-12-fix-bug12)

  5. Create PR:

    gh pr create \
      --title "Fix #<number>: <description>" \
      --body "Closes #<number>
    
    ## Summary
    <1-3 bullet points describing the changes>
    
    ## Changes
    <list of files/areas modified>
    
    ## Testing
    <how the changes were tested>
    "
    
  6. Run code review: /code-review <pr_number>

  7. If issues found - fix and re-review:

    • Fix the issues identified
    • Commit and push: git add -A && git commit -m "fix: address code review feedback" && git push
    • Re-run: /code-review <pr_number>
    • Repeat until no issues found
  8. Update issue labels (only after code review passes):

    gh issue edit <number> --add-label "status:review" --remove-label "status:in-progress"
    
  9. Report to user:

    • PR URL
    • Code review result (passed/issues fixed)
    • Issue status update confirmation

Notes

  • PR title should reference the issue number with "Fix #N:" or "Closes #N:"
  • The PR body should include "Closes #N" to auto-close the issue on merge
  • If tests exist, ensure they pass before creating PR
  • Do NOT merge until code review passes with no issues

Maintain Create Pr?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Create Pr on getagentictools](https://getagentictools.com/loops/paulbunker-create-pr?ref=badge)