npx skills add ...
npx skills add oschina/gitee-agent-skills --skill merge-pr-check
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 Server to be configured.
npx skills add oschina/gitee-agent-skills --skill merge-pr-check
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_comments (resource_type: pull), get_diff_files, merge_pull)Use get_pull_detail to retrieve PR details and check:
Basic status
Pre-merge checklist
Use list_comments (resource_type: pull) to retrieve all comments and check:
Use get_diff_files to inspect changed files:
Based on the checks above, output a merge assessment report:
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.