Use this skill when the user asks to merge a PR, check if a PR is ready to merge, "merge PR", "can this PR be merged", "merge-pr-check". Requires Gitee MCP S...
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.
Check whether a Pull Request meets the criteria for merging, then execute the merge after confirmation.
get_pull_detail, list_pull_comments, get_diff_files, merge_pull)Use get_pull_detail to retrieve PR details and check:
Basic status
Pre-merge checklist
Use list_pull_comments to retrieve all comments and check:
Use get_diff_files to inspect changed files:
Based on the checks above, output a merge assessment report:
## PR Merge Check Report
**PR**: #[number] [title]
**Status**: [Open/Draft/Closed]
### Checklist
✅ PR is in Open state
✅ Has a change description
⚠️ No reviewer approval yet
✅ Diff scope is reasonable
### Conclusion
[Ready to merge / Recommend waiting for review / Not recommended to merge]
Reason: [Specific explanation]
If the checks pass, ask the user to confirm the merge.
After confirmation, use merge_pull with these parameters:
merge_method: merge strategy — merge (creates a merge commit), squash (squashes commits), or rebase
merge; suggest squash if the PR has many messy commitscommit_message: merge commit message (optional, defaults to PR title)After a successful merge, output the result and ask whether the user wants to delete the source branch.
ZIP package — ready to use