create_pull_request
Create pull requests to propose code changes, request reviews, and merge feature branches in Bitbucket Server repositories. Submit code for review, assign reviewers, and manage branch merges.
Instructions
Create a new pull request to propose code changes, request reviews, or merge feature branches. Use this when you want to submit code for review, merge a feature branch, or contribute changes to a repository. Automatically sets up branch references and can assign reviewers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. Use list_projects to discover available projects. | |
| repository | Yes | Repository slug where the pull request will be created. Use list_repositories to find available repositories. | |
| title | Yes | Clear, descriptive title for the pull request that summarizes the changes. | |
| description | No | Detailed description of changes, context, and any relevant information for reviewers. Supports Markdown formatting. | |
| sourceBranch | Yes | Source branch name containing the changes to be merged (e.g., "feature/new-login", "bugfix/security-patch"). | |
| targetBranch | Yes | Target branch where changes will be merged (e.g., "main", "develop", "release/v1.2"). | |
| reviewers | No | Array of Bitbucket usernames to assign as reviewers for this pull request. |