merge_pull_request
Merge a pull request in Bitbucket Server by providing project key, repository slug, pull request ID, and current version. Optionally specify a merge strategy such as merge-commit, squash, or rebase-no-ff.
Instructions
Merge a pull request.
Args: project_key: The project key. repo_slug: The repository slug. pr_id: The pull request ID. version: Current version of the PR (required for optimistic locking). strategy: Optional merge strategy (e.g., 'merge-commit', 'squash', 'rebase-no-ff').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| pr_id | Yes | ||
| version | Yes | ||
| strategy | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |