issue_types
Creates, updates, deletes, gets or lists an issue_types resource.
Overview
| Name | issue_types |
| Type | Resource |
| Id | github.repos.issue_types |
Fields
The following fields are returned by SELECT queries:
- list_issue_types
Response
| Name | Datatype | Description |
|---|---|---|
id | integer | The unique identifier of the issue type. |
name | string | The name of the issue type. |
node_id | string | The node identifier of the issue type. |
color | string | The color of the issue type. (gray, blue, green, yellow, orange, red, pink, purple) |
created_at | string (date-time) | The time the issue type created. |
description | string | The description of the issue type. |
is_enabled | boolean | The enabled state of the issue type. |
updated_at | string (date-time) | The time the issue type last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_issue_types | select | owner, repo | Lists issue types available for a repository (inherited from its organization owner, with any per-repository overrides applied). OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.Fine-grained access tokens require the "Metadata" repository permission (read). |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
owner | string | The account owner of the repository. The name is not case sensitive. |
repo | string | The name of the repository without the .git extension. The name is not case sensitive. |
SELECT examples
- list_issue_types
Lists issue types available for a repository (inherited from its organization owner, with any per-repository overrides applied).
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
Fine-grained access tokens require the "Metadata" repository permission (read).
SELECT
id,
name,
node_id,
color,
created_at,
description,
is_enabled,
updated_at
FROM github.repos.issue_types
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;