Close a GitHub pull request
github_pr_closeClose a GitHub pull request without merging it or deleting its branch. Optionally post a comment as it closes; already closed or merged pull requests are left unchanged.
Instructions
Close a pull request without merging it; its branch is not deleted. The comment, if any, is posted as it closes, and the people following the pull request are notified. A pull request that is closed or merged already is left as it is: nothing is sent, the comment is not posted, changed is false and state says which. 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. | |
| comment | No | A comment to post as the pull request closes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | Yes | ||
| url | Yes | ||
| repo | Yes | ||
| state | Yes | closed, or merged for a pull request that was merged already. | |
| changed | Yes | False when the pull request was closed or merged already and nothing was sent. | |
| foreign | Yes |