convert_to_draft
Converts an open pull request to draft mode to prevent merging while further changes are made.
Instructions
Convert an open pull request back to draft mode.
The version parameter is required for optimistic locking. Get it from get_pull_request.
Args: project_key: The project key. repo_slug: The repository slug. pr_id: The pull request ID. version: Current version of the PR (required for optimistic locking).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| pr_id | Yes | ||
| version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |