Edit a GitHub issue
github_issue_editUpdate a GitHub issue in one call: change its title or body, set its type or milestone, and add or remove labels and assignees, without manual multi-step edits.
Instructions
Change an issue in one call: title, body (body replaces it, append_body adds after a blank line), kind (an Issue Type, else a type: label that replaces the other type: labels), labels and assignees to add or remove (added assignees are notified), milestone or remove_milestone. A milestone that does not exist is an error unless create_milestone is true. Needs write permission on the repository. An issue 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 |
|---|---|---|---|
| body | No | The new body, which replaces the whole old one; empty clears it. | |
| kind | No | Such as bug: the organization's Issue Type of that name, else the type:<kind> label, replacing other type: labels. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). Used for a bare number. | |
| issue | Yes | The issue, as 12, #12, owner/repo#12 or its URL. | |
| title | No | The new title. | |
| milestone | No | A milestone title to set. | |
| add_labels | No | Labels to add; they must exist. | |
| append_body | No | Text added after the current body, set off by a blank line. | |
| add_assignees | No | Logins, or "@me". | |
| remove_labels | No | ||
| create_milestone | No | Create the milestone when it does not exist; needs milestone. | |
| remove_assignees | No | ||
| remove_milestone | No | Take the issue out of its milestone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| kind | Yes | Where the kind landed; null when none was given. | |
| repo | Yes | ||
| issue | Yes | ||
| changed | Yes | The arguments that were applied. | |
| foreign | Yes | ||
| milestone | Yes | The milestone that was set; null when none was set or it was removed. |