Skip to content

GitHubIssue

Defined in: issues/issues.ts:5

An issue as GitHub returns it, with only the fields this client reads.

assignee: { email?: string | null; login: string; name?: string | null; } | null

Defined in: issues/issues.ts:19

The user the issue is assigned to, or null when unassigned.


optional assignees?: object[]

Defined in: issues/issues.ts:25

Everyone the issue is assigned to; absent where the response does not list them.

login: string


optional body?: string | null

Defined in: issues/issues.ts:13

The issue’s description; null or absent when empty.


optional created_at?: string

Defined in: issues/issues.ts:31

When the issue was created, as an ISO 8601 timestamp.


html_url: string

Defined in: issues/issues.ts:29

The URL of the issue’s page on GitHub.


id: number

Defined in: issues/issues.ts:7

The issue’s numeric id.


labels: object[]

Defined in: issues/issues.ts:17

The labels on the issue.

name: string


optional milestone?: { number: number; title: string; } | null

Defined in: issues/issues.ts:33

The milestone the issue belongs to, or null when none.


optional node_id?: string

Defined in: issues/issues.ts:35

The issue’s GraphQL node id.


number: number

Defined in: issues/issues.ts:9

The issue’s number within its repository.


optional pull_request?: unknown

Defined in: issues/issues.ts:39

Set when the item is a pull request; GitHub’s issues API returns pull requests too.


state: "open" | "closed"

Defined in: issues/issues.ts:15

Whether the issue is open or closed.


title: string

Defined in: issues/issues.ts:11

The issue’s title.


optional type?: { name: string; } | null

Defined in: issues/issues.ts:37

The issue’s Type (Bug, Feature, Task), or null when it has none; absent where the organization has no types.


updated_at: string

Defined in: issues/issues.ts:27

When the issue was last updated, as an ISO 8601 timestamp.