Create a GitHub issue
github_issue_createCreate a GitHub issue with labels, assignees, milestone, parent, and blockers in one call, and get the issue back even when an optional step fails.
Instructions
Create an issue in a repository the viewer may write to, and settle its place in the same call: kind (an Issue Type, else a type: label that is created when missing), labels, assignees (they are notified), milestone, parent and blocked-by issues. A milestone that does not exist fails before the issue is made unless create_milestone is true. Once the issue exists, a failed kind, parent or blocked_by step does not fail the call: it is listed in errors and the issue is still returned. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the new issue's repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Markdown body; empty when left out. | |
| kind | No | Such as bug or feature: the organization's Issue Type of that name, else the type:<kind> label. | |
| repo | No | owner/name; defaults to the working tree's repository (its origin). | |
| title | Yes | The issue's title. | |
| labels | No | Labels to add; they must exist. | |
| parent | No | The parent issue: 12, #12, owner/repo#12 or its URL. | |
| assignees | No | Logins, or "@me". | |
| milestone | No | A milestone title. | |
| blocked_by | No | Issues that block this one, in the same forms as parent. | |
| create_milestone | No | Create the milestone when it does not exist; needs milestone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Where the kind landed; null when none was given or its step failed. | |
| repo | Yes | ||
| issue | Yes | ||
| errors | Yes | Failed steps (kind, parent, blocked_by), keyed by step; {} when none. | |
| foreign | Yes | ||
| milestone | Yes | ||
| relations | Yes |