Create label
gh_create_labelCreate a new GitHub repository label with a specified name, color, and optional description. This action adds exactly one label without overwriting existing labels or modifying issues.
Instructions
Additive write: create exactly one new repository label after ordinary write authorization. Name, color, and description are explicitly bounded; one mutation attempt is followed by authoritative semantic readback. The operation never overwrites an existing label or retries an ambiguous create automatically, and it does not edit issues or delete labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New label name. | |
| repo | Yes | GitHub repository name without the owner prefix. | |
| color | Yes | Six-character hexadecimal label color. | |
| owner | Yes | GitHub repository owner or organization login. | |
| description | No | Optional label description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | Yes | ||
| color | No | ||
| message | Yes | ||
| warning | No | ||
| request_id | No | ||
| description | No | ||
| write_completed | Yes | ||
| readback_completed | Yes | ||
| precondition_checked | Yes | ||
| state_matches_requested | Yes |