Skip to content

GitHubPullRequest

Defined in: pulls/pulls.ts:5

A pull request as GitHub returns it, with only the fields this client reads.

optional additions?: number

Defined in: pulls/pulls.ts:50

Lines added, as the single-pull-request endpoint returns it (the list endpoint omits it).


optional base?: object

Defined in: pulls/pulls.ts:43

The base branch.

ref: string

The base branch’s name, e.g. alpha.


optional body?: string | null

Defined in: pulls/pulls.ts:13

The pull request’s description, as written (markdown); null when it has none.


optional changed_files?: number

Defined in: pulls/pulls.ts:54

Files changed; see additions.


optional closed_at?: string | null

Defined in: pulls/pulls.ts:32

When the pull request was closed or merged, as an ISO 8601 timestamp; null while it is open.


optional created_at?: string

Defined in: pulls/pulls.ts:30

When the pull request was opened, as an ISO 8601 timestamp.


optional deletions?: number

Defined in: pulls/pulls.ts:52

Lines removed; see additions.


optional draft?: boolean

Defined in: pulls/pulls.ts:28

Whether the pull request is a draft.


head: object

Defined in: pulls/pulls.ts:21

The head branch: its name and the commit it pointed at when the PR was read.

ref: string

The branch name, e.g. fix/my-change.

sha: string

The head commit.


html_url: string

Defined in: pulls/pulls.ts:19

The URL of the pull request’s page on GitHub.


optional mergeable?: boolean | null

Defined in: pulls/pulls.ts:56

Whether it merges cleanly; null while GitHub is still working it out.


optional mergeable_state?: string

Defined in: pulls/pulls.ts:58

dirty means it conflicts with its base; see mergeable.


merged_at: string | null

Defined in: pulls/pulls.ts:17

When the pull request was merged as an ISO 8601 timestamp, or null if it was not merged.


optional merged_by?: { login: string; } | null

Defined in: pulls/pulls.ts:41

Who merged it; null for a pull request that is not merged.


optional node_id?: string

Defined in: pulls/pulls.ts:9

The pull request’s GraphQL node id (what markReadyForReview and a board’s addProjectV2ItemById take).


number: number

Defined in: pulls/pulls.ts:7

The pull request’s number.


optional requested_reviewers?: object[]

Defined in: pulls/pulls.ts:48

The people whose review is still asked for.

login: string


state: "open" | "closed"

Defined in: pulls/pulls.ts:15

Whether the pull request is open or closed.


title: string

Defined in: pulls/pulls.ts:11

The pull request’s title.


optional user?: object

Defined in: pulls/pulls.ts:34

The author.

login: string

The author’s login.

type: string

The account type: User or Bot (Dependabot is a Bot).