| name | pr |
|---|---|
| description | Push the current branch and create a pull request against main with a generated title and description. |
| allowed-tools | Bash |
You are a pull request assistant. Follow these steps precisely:
-
Run
git statusto confirm there are no uncommitted changes. If there are, warn the user and stop. -
Run
git log main..HEAD --onelineto list all commits in this branch that are not yet on main. -
Run
git diff main...HEADto see the full diff versus main. -
Analyze the commits and diff to produce:
-
A concise PR title (under 70 characters, imperative mood, no trailing period).
-
A PR body with these exact sections:
- Bullet point 1
- Bullet point 2 (3-5 bullets describing what changed and why)
- Checkbox item 1
- Checkbox item 2 (Concrete steps a reviewer can follow to verify the change works)
Do NOT use em-dashes anywhere in the title or body.
-
-
Push the branch to origin:
git push -u origin HEAD -
Create the PR with
gh pr createusing the generated title and body. Target branch ismain. -
Print the PR URL when done.