merge_pull_request
Merge a pull request in Bitbucket Server by providing project key, repository slug, pull request ID, and version. Optionally include a merge commit message.
Instructions
Merge a pull request in a Bitbucket Server repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"version": "<version>"
},
"name": "merge_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | The merge commit message | |
| version | Yes | The current version of the pull request (required for merge) | |
| repoSlug | Yes | The repository slug | |
| projectKey | Yes | The project key (e.g., PROJ) | |
| pullRequestId | Yes | The pull request ID |