claude-git-hooks
Version:
Git hooks with Claude CLI for code analysis and automatic commit messages
33 lines (24 loc) • 966 B
Markdown
# GitHub Pull Request Creation
You have access to the GitHub MCP tool. Use the `create_pull_request` tool to create a pull request with the following parameters:
## Repository Information
- **Repository**: {{OWNER}}/{{REPO}}
- **Base Branch**: {{BASE}}
- **Head Branch**: {{HEAD}}
## Pull Request Details
- **Title**: {{TITLE}}
- **Draft**: {{DRAFT}}
## Description
{{BODY}}
## Additional Metadata
{{#HAS_LABELS}}- **Labels**: {{LABELS}}{{/HAS_LABELS}}
{{#HAS_REVIEWERS}}- **Reviewers**: {{REVIEWERS}}{{/HAS_REVIEWERS}}
**Instructions:**
1. Use the `create_pull_request` MCP tool with the exact parameters above
2. If labels or reviewers are specified, include them in the request
3. Return ONLY the PR URL in your response (format: https://github.com/owner/repo/pull/123)
4. If the PR creation fails, explain the error clearly
**IMPORTANT**: Return ONLY the PR URL, nothing else. Example response:
```
https://github.com/{{OWNER}}/{{REPO}}/pull/456
```