create_pull_request
Create a pull request in Bitbucket by specifying workspace, repository, title, source and destination branches, description, reviewers, and branch closure option for efficient code review and merge workflows.
Instructions
Create a new pull request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
close_source_branch | No | Whether to close source branch after merge (optional, default: false) | |
description | No | Description of the pull request (optional) | |
destination_branch | Yes | Destination branch name (e.g., "main", "master") | |
repository | Yes | Repository slug (e.g., "my-repo") | |
reviewers | No | Array of reviewer usernames/emails (optional) | |
source_branch | Yes | Source branch name | |
title | Yes | Title of the pull request | |
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, default: false)",
"type": "boolean"
},
"description": {
"description": "Description of the pull request (optional)",
"type": "string"
},
"destination_branch": {
"description": "Destination branch name (e.g., \"main\", \"master\")",
"type": "string"
},
"repository": {
"description": "Repository slug (e.g., \"my-repo\")",
"type": "string"
},
"reviewers": {
"description": "Array of reviewer usernames/emails (optional)",
"items": {
"type": "string"
},
"type": "array"
},
"source_branch": {
"description": "Source branch name",
"type": "string"
},
"title": {
"description": "Title of the pull request",
"type": "string"
},
"workspace": {
"description": "Bitbucket workspace/project key (e.g., \"PROJ\")",
"type": "string"
}
},
"required": [
"workspace",
"repository",
"title",
"source_branch",
"destination_branch"
],
"type": "object"
}