bitbucket_create_branch
Create a new branch in a Bitbucket repository by providing workspace, repository name, new branch name, and optional source branch (default main).
Instructions
Create a new branch in a repository.
Args: workspace: Workspace name or project key. repository: Repository name. branch_name: New branch name. source_branch: Source branch to create from (default: main).
Returns: JSON string containing the created branch details.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name | |
| branch_name | Yes | New branch name | |
| source_branch | No | Source branch to create from | main |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |