merge_pull

Merge an open pull request after protections pass.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.
pull_number integer Yes Pull request number within the repo.
expected_target_oid string No Optional expected current target commit OID.
expected_source_oid string No Optional expected current source commit OID.
message string No Optional merge commit message when a merge commit is required.

Example

curl -X POST https://pearing.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "merge_pull",
      "arguments": {
        "repo": "teams/acme/webapp",
        "pull_number": 42,
        "expected_target_oid": "abc123"
      }
    }
  }'

Response

Returns the merged pull object and merge mode.