bb_add_pr
Create pull requests in Bitbucket repositories with customizable title, source branch, and optional destination branch. Automatically delete the source branch after merging and use Markdown for PR descriptions. Requires write permissions.
Instructions
Creates a new pull request in a repository (repoSlug
). If workspaceSlug
is not provided, the system will use your default workspace. Required parameters include title
, sourceBranch
(branch with changes), and optionally destinationBranch
(target branch, defaults to main/master). The description
parameter accepts Markdown-formatted text for the PR description. Set closeSourceBranch
to true to automatically delete the source branch after merging. Returns the newly created pull request details as formatted Markdown. Requires Bitbucket credentials with write permissions to be configured.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
closeSourceBranch | No | Whether to close the source branch after the pull request is merged. Default: false | |
description | No | Optional description for the pull request in Markdown format. Supports standard Markdown syntax including headings, lists, code blocks, and links. | |
destinationBranch | No | Destination branch name (the branch you want to merge into, defaults to main). Example: "develop" | |
repoSlug | Yes | Repository slug to create the pull request in. This must be a valid repository in the specified workspace. Example: "project-api" | |
sourceBranch | Yes | Source branch name (the branch containing your changes). Example: "feature/new-login" | |
title | Yes | Title for the pull request. Example: "Add new feature" | |
workspaceSlug | No | Workspace slug containing the repository. If not provided, the system will use your default workspace. Example: "myteam" |