merge_pull_request
Merge pull requests in Bitbucket repositories using specified merge strategies, close source branches, and customize commit messages for streamlined PR lifecycle management.
Instructions
Merge a pull request
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| close_source_branch | No | Whether to close source branch after merge (optional) | |
| commit_message | No | Custom merge commit message (optional) | |
| merge_strategy | No | Merge strategy: merge-commit, squash, fast-forward (optional) | |
| pull_request_id | Yes | Pull request ID | |
| repository | Yes | Repository slug (e.g., "my-repo") | |
| workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") | 
Input Schema (JSON Schema)
{
  "properties": {
    "close_source_branch": {
      "description": "Whether to close source branch after merge (optional)",
      "type": "boolean"
    },
    "commit_message": {
      "description": "Custom merge commit message (optional)",
      "type": "string"
    },
    "merge_strategy": {
      "description": "Merge strategy: merge-commit, squash, fast-forward (optional)",
      "enum": [
        "merge-commit",
        "squash",
        "fast-forward"
      ],
      "type": "string"
    },
    "pull_request_id": {
      "description": "Pull request ID",
      "type": "number"
    },
    "repository": {
      "description": "Repository slug (e.g., \"my-repo\")",
      "type": "string"
    },
    "workspace": {
      "description": "Bitbucket workspace/project key (e.g., \"PROJ\")",
      "type": "string"
    }
  },
  "required": [
    "workspace",
    "repository",
    "pull_request_id"
  ],
  "type": "object"
}