/install gitee-create-pr
Note: If you have
mcporterinstalled locally, you should usemcporterto invoke the MCP tool instead of directly calling the MCP tool. ThemcporterCLI 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
- Gitee MCP Server configured (tools:
create_pull,get_file_content,list_repo_issues,compare_branches_tags) - User must provide: repository owner, repository name, source branch, target branch (usually main/master)
- Optional: linked Issue number
Steps
Step 1: Gather Information
Confirm with the user or infer from context:
- Source branch (head branch)
- Target branch (base branch, default: master or main)
- Core purpose of this PR (if not stated, infer from commit messages or file changes)
- Whether to link an Issue (optional)
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.,mainormaster)head: source branch
Analyze the returned diff to determine:
- Which core files were changed
- What functionality was added or modified
- Whether there are any breaking changes
Step 3: Generate PR Title
Follow the Conventional Commits format:
\x3Ctype>(\x3Cscope>): \x3Csubject>
Available types:
feat: New featurefix: Bug fixrefactor: Code refactoringdocs: Documentation updatetest: Test-related changeschore: Build / dependency / toolchain changes
Example: 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 branch
After successful creation, output the PR link for the user.
Notes
- If the user specifies a linked Issue, append
closes #Nto the description so the Issue is automatically closed when the PR is merged - Keep the PR title concise (under 50 characters) — put details in the description
- If the user hasn't provided enough information, ask before creating, to avoid opening a PR with an empty description
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gitee-create-pr - 安装完成后,直接呼叫该 Skill 的名称或使用
/gitee-create-pr触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Create Pr 是什么?
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 352 次。
如何安装 Create Pr?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gitee-create-pr」即可一键安装,无需额外配置。
Create Pr 是免费的吗?
是的,Create Pr 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Create Pr 支持哪些平台?
Create Pr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Create Pr?
由 开源中国(@oschina)开发并维护,当前版本 v1.0.0。