Github Set Pr Draft
github_set_pr_draftChange a pull request's review state to draft or ready. Updates status directly via GraphQL to avoid recreating the PR for draft mode.
Instructions
Moves a pull request between draft and ready for review. REST accepts draft only when the pull request is created, so this goes through GraphQL.
Workflow and conventions: github_get_skill('pr-management').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_owner": "<repo_owner>",
"repo_name": "<repo_name>",
"pr_number": "<pr_number>",
"draft": "<draft>"
},
"name": "github_set_pr_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | True puts the pull request back into draft, False marks it ready for review | |
| pr_number | Yes | ||
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||