create_pull_request
Create a pull request in Bitbucket Server by specifying project, repository, source and target branches, title, optional description, reviewers, and draft status.
Instructions
Create a new pull request.
Branch names should be bare (e.g., 'feature/x'), the 'refs/heads/' prefix is added automatically.
Args: project_key: The project key. repo_slug: The repository slug. title: Title of the pull request. source_branch: Source branch name (e.g., 'feature/my-feature'). target_branch: Target branch name (e.g., 'main'). description: Optional description/body for the pull request. reviewers: Optional list of reviewer usernames. draft: Whether to create the PR as a draft (default False).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| title | Yes | ||
| source_branch | Yes | ||
| target_branch | Yes | ||
| description | No | ||
| reviewers | No | ||
| draft | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |