# Merge Pull Request

> Merge a pull request

- Skill: `xiaobai1017/merge-pull-request` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xiaobai1017/merge-pull-request`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaobai1017/merge-pull-request/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaobai1017 (https://skillmd.com/u/xiaobai1017)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/xiaobai1017/merge-pull-request

---


# merge_pull_request

Merge a pull request

## Purpose

This skill provides access to the MCP tool `merge_pull_request`. It allows you to merge a pull request.

## Parameters

The tool accepts the following parameters:

### `owner`
**Required**
- **Type**: `string`
- **Description**: Repository owner (username or organization)

### `repo`
**Required**
- **Type**: `string`
- **Description**: Repository name

### `pull_number`
**Required**
- **Type**: `number`
- **Description**: Pull request number

### `commit_title`
*Optional*
- **Type**: `string`
- **Description**: Title for the automatic commit message

### `commit_message`
*Optional*
- **Type**: `string`
- **Description**: Extra detail to append to automatic commit message

### `merge_method`
*Optional*
- **Type**: `string`
- **Description**: Merge method to use
- **Allowed values**: merge, squash, rebase


## Usage Instructions

To use this tool:

1. **Prepare the parameters** according to the schema above
2. **Invoke the MCP tool** `merge_pull_request` with the prepared parameters
3. **Process the result** returned by the tool

## Example

```json
{
  "owner": "example_value",
  "repo": "example_value",
  "pull_number": 123,
  "commit_title": "example_value",
  "commit_message": "example_value",
  "merge_method": "example_value"
}
```


## Notes

- This skill requires an active MCP connection to the server providing the `merge_pull_request` tool
- Ensure the MCP server is properly configured and running before attempting to use this tool
- Review the parameter requirements carefully to avoid errors
