Skip to main content

issue_types

Creates, updates, deletes, gets or lists an issue_types resource.

Overview

Nameissue_types
TypeResource
Idgithub.repos.issue_types

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerThe unique identifier of the issue type.
namestringThe name of the issue type.
node_idstringThe node identifier of the issue type.
colorstringThe color of the issue type. (gray, blue, green, yellow, orange, red, pink, purple)
created_atstring (date-time)The time the issue type created.
descriptionstringThe description of the issue type.
is_enabledbooleanThe enabled state of the issue type.
updated_atstring (date-time)The time the issue type last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_issue_typesselectowner, repoLists 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.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

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
;