| name | pr |
| description | Generate PR description and automatically create pull request on GitHub |
| disable-model-invocation | true |
| allowed-tools | Bash(gh:*), Bash(git:*) |
Context
- Current git status: !
git status
- Changes in this PR: !
git diff master...HEAD
- Commits in this PR: !
git log --oneline master..HEAD
- PR template: @.github/pull_request_template.md
Your task
Based on the provided option, perform one of the following actions:
Options:
- No option or default: Generate PR description and create pull request
- -p: Push current branch and create pull request
- -u: Update existing pull request description only
Default behavior (no option):
- Create a PR description following the exact format of the PR template in Japanese
- Add a Mermaid diagram that visualizes the changes made in this PR
- Execute
gh pr create --draft with the generated title and description
With -p option:
- Push current branch to remote repository using
git push -u origin <current-branch>
- Create a PR description following the exact format of the PR template in Japanese
- Add a Mermaid diagram that visualizes the changes made in this PR
- Execute
gh pr create --draft with the generated title and description
With -u option:
- Create a PR description following the exact format of the PR template in Japanese
- Add a Mermaid diagram that visualizes the changes made in this PR
- Update existing pull request description using
gh pr edit --body <description>
Requirements:
- Follow the template structure exactly
- Use Japanese for all content
- Include specific implementation details
- List concrete testing steps
- Always include a Mermaid diagram that shows:
- Architecture changes (if any)
- Data flow modifications
- Component relationships
- Process flows affected by the changes
- Be comprehensive but concise
Mermaid Diagram Guidelines:
- Use appropriate diagram types (flowchart, sequence, class, etc.)
- Show before/after states if applicable
- Highlight new or modified components
- Use consistent styling and colors
- Add the diagram in a dedicated section of the PR description
Generate the PR description and create the pull request automatically.