Create Pr
by @oschina
Use this skill when the user asks to create a PR, open a pull request, "create-pr", "submit a pull request", or "open a merge request". Requires Gitee MCP Se...
clawhub install gitee-create-prπ About This Skill
name: create-pr description: Use this skill when the user asks to create a PR, open a pull request, "create-pr", "submit a pull request", or "open a merge request". Requires Gitee MCP Server to be configured. version: 1.0.0 requires: mcp-servers: - gitee
> Note: If you have mcporter installed locally, you should use mcporter to invoke the MCP tool instead of directly calling the MCP tool. The mcporter CLI provides a more convenient interface and better error handling.
Create PR via Gitee MCP
Generate a well-structured Pull Request description based on the current changes and submit it to Gitee.
Prerequisites
create_pull, get_file_content, list_repo_issues, compare_branches_tags)Steps
Step 1: Gather Information
Confirm with the user or infer from context:
Step 2: Analyze the Changes
Use compare_branches_tags to fetch the diff between the source branch and target branch:
base: target branch (e.g., main or master)head: source branchAnalyze the returned diff to determine:
Step 3: Generate PR Title
Follow the Conventional Commits format:
():
Available types:
feat: New featurefix: Bug fixrefactor: Code refactoringdocs: Documentation updatetest: Test-related changeschore: Build / dependency / toolchain changesExample: feat(auth): add OAuth2 login support
Step 4: Generate PR Description
Use the following template for a structured description:
## Summary[Clear description of the purpose of this PR and the problem it solves]
Changes
[Change 1]
[Change 2]
[Change 3] Testing
[ ] Unit tests pass
[ ] Functional tests pass
[x] [Completed test item] Related Issue
closes #[issue number] (if applicable)
Notes
[Breaking changes, dependency upgrades, deployment considerations, etc. (if any)]
Step 5: Create the PR
Use create_pull to create the PR with these parameters:
title: title generated in Step 3body: description generated in Step 4head: source branchbase: target branchAfter successful creation, output the PR link for the user.
Notes
closes #N to the description so the Issue is automatically closed when the PR is mergedβοΈ Configuration
create_pull, get_file_content, list_repo_issues, compare_branches_tags)π Tips & Best Practices
[Breaking changes, dependency upgrades, deployment considerations, etc. (if any)]
``
Step 5: Create the PR
Use create_pull to create the PR with these parameters:
title: title generated in Step 3
body: description generated in Step 4
head: source branch
base`: target branch
After successful creation, output the PR link for the user.