bb_add_branch
Creates a new branch in a Bitbucket repository by specifying the workspace, repository, new branch name, and source branch or commit. Requires repository write permissions.
Instructions
Creates a new branch in a specified Bitbucket repository. Requires the workspace slug (workspaceSlug
), repository slug (repoSlug
), the desired new branch name (newBranchName
), and the source branch or commit hash (sourceBranchOrCommit
) to branch from. Requires repository write permissions. Returns a success message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
newBranchName | Yes | The name for the new branch. | |
repoSlug | Yes | Repository slug where the branch will be created. | |
sourceBranchOrCommit | Yes | The name of the branch or the commit hash to branch from. | |
workspaceSlug | No | Workspace slug containing the repository. If not provided, the system will use your default workspace (either configured via BITBUCKET_DEFAULT_WORKSPACE or the first workspace in your account). Example: "myteam" |