create_pr_complete
Creates a professional pull request with an intelligent title, description, and code review. Automatically assigns reviewers and includes a smart GIF.
Instructions
🚀 UNIFIED PR CREATION WORKFLOW - WHEN USER SAYS 'Create a PR', YOU MUST FOLLOW THESE STEPS IN ORDER: (1) Call 'generate_pr_title' → get prompt, (2) YOU analyze and generate intelligent title, (3) Call 'generate_pr_description' → get prompt, (4) YOU analyze and generate intelligent description, (5) Call 'review' → get context/diff prompt, (6) YOU analyze and write code review, (7) Call THIS tool with 'title', 'description', and 'aiReviewText' parameters. IMPORTANT: ALL 3 parameters (title, description, aiReviewText) should be YOUR generated content, NOT the tool outputs (which are prompts). If any are omitted, simple fallbacks are auto-generated. This creates a professional PR with: YOUR intelligent title, YOUR comprehensive description, YOUR AI code review, smart GIF, automatic reviewer assignment. Works for ANY language/framework. Requires GITHUB_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Create the PR as a draft | |
| title | No | RECOMMENDED: YOUR (Claude's) generated PR title. Workflow: (1) Call 'generate_pr_title' to get analysis prompt, (2) YOU analyze and create intelligent title, (3) Pass YOUR title here. DO NOT pass the tool's output directly - it's a prompt for YOU, not the final title. If not provided, a simple title is auto-generated from commit messages. | |
| language | No | Description language | fr |
| template | No | Template to use for the description | standard |
| baseBranch | No | Base branch for comparison (auto-detected if not provided) | |
| description | No | RECOMMENDED: YOUR (Claude's) generated PR description. Workflow: (1) Call 'generate_pr_description' to get analysis prompt, (2) YOU analyze and write intelligent description, (3) Pass YOUR description here. DO NOT pass the tool's output directly - it's a prompt for YOU, not the final description. If not provided, a simple template-based description is auto-generated. | |
| githubToken | No | GitHub token for authentication (optional, defaults to GITHUB_TOKEN env var) | |
| addReviewers | No | Automatically suggest and add reviewers based on Git history | |
| aiReviewText | No | REQUIRED for complete PR with review: YOUR (Claude's) generated code review text. Workflow: (1) Call 'review' tool to get analysis prompt with context/diff, (2) YOU analyze and write the review following the format in that prompt, (3) Pass YOUR review text here. DO NOT pass the review tool's output directly - it's a prompt for YOU to analyze, not the final review. | |
| includeStats | No | Include statistics in the description | |
| maxReviewers | No | Maximum number of reviewers to add (1-20) | |
| maxTitleLength | No | Maximum length for the title (optional, e.g., 72) |