Mark a GitHub pull request ready, or back to draft
github_pr_readyMark a draft pull request ready for review, or use undo to turn it back into a draft; only open pull requests can change.
Instructions
Mark a draft pull request ready for review, or with undo true turn it back into a draft. Marking it ready notifies the people asked to review it. A pull request that is in the asked state already is left as it is: nothing is sent and changed is false. Only an open pull request can change; a closed or merged one is an error. A pull request is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | The pull request, as 12, #12, owner/repo#12 or its URL. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. | |
| undo | No | Turn the pull request back into a draft instead of marking it ready. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | ||
| url | Yes | ||
| repo | Yes | ||
| draft | Yes | Whether the pull request is a draft now. | |
| changed | Yes | False when the pull request was in the asked state already and nothing was sent. | |
| foreign | Yes |