create_pull_request
Create a pull request to merge changes from one branch to another. Automatically detects the source branch and selects the destination, with optional reviewer assignment.
Instructions
Create a new pull request.
Use this tool to create a pull request for merging changes from one branch to another. Supports auto-detection of source branch and smart destination selection.
Workflow for adding reviewers:
First use search_workspace_users to find users by name
Pass the account_id(s) from the search results to reviewer_account_ids
Default reviewers are automatically included unless disabled
Args: title: Title of the pull request. source_branch: Branch containing the changes. If not provided, uses the current git branch. Cannot be main/master/development. destination_branch: Branch to merge into. If not provided, defaults to 'development' for feature/bugfix branches. description: Optional description of the changes. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace. reviewer_account_ids: Comma-separated list of reviewer account_ids to add as additional reviewers (use search_workspace_users to find these). include_default_reviewers: If True (default), includes repository's default reviewers in addition to any specified reviewers. close_source_branch: Whether to close the source branch after merge.
Returns: JSON object with the created pull request details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| workspace | No | ||
| repository | No | ||
| description | No | ||
| source_branch | No | ||
| destination_branch | No | ||
| close_source_branch | No | ||
| reviewer_account_ids | No | ||
| include_default_reviewers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |