GitHubPullRequest
Defined in: pulls/pulls.ts:5
A pull request as GitHub returns it, with only the fields this client reads.
Properties
Section titled “Properties”additions?
Section titled “additions?”
optionaladditions?:number
Defined in: pulls/pulls.ts:50
Lines added, as the single-pull-request endpoint returns it (the list endpoint omits it).
optionalbase?:object
Defined in: pulls/pulls.ts:43
The base branch.
ref:
string
The base branch’s name, e.g. alpha.
optionalbody?:string|null
Defined in: pulls/pulls.ts:13
The pull request’s description, as written (markdown); null when it has none.
changed_files?
Section titled “changed_files?”
optionalchanged_files?:number
Defined in: pulls/pulls.ts:54
Files changed; see additions.
closed_at?
Section titled “closed_at?”
optionalclosed_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.
created_at?
Section titled “created_at?”
optionalcreated_at?:string
Defined in: pulls/pulls.ts:30
When the pull request was opened, as an ISO 8601 timestamp.
deletions?
Section titled “deletions?”
optionaldeletions?:number
Defined in: pulls/pulls.ts:52
Lines removed; see additions.
draft?
Section titled “draft?”
optionaldraft?: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
Section titled “html_url”html_url:
string
Defined in: pulls/pulls.ts:19
The URL of the pull request’s page on GitHub.
mergeable?
Section titled “mergeable?”
optionalmergeable?:boolean|null
Defined in: pulls/pulls.ts:56
Whether it merges cleanly; null while GitHub is still working it out.
mergeable_state?
Section titled “mergeable_state?”
optionalmergeable_state?:string
Defined in: pulls/pulls.ts:58
dirty means it conflicts with its base; see mergeable.
merged_at
Section titled “merged_at”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.
merged_by?
Section titled “merged_by?”
optionalmerged_by?: {login:string; } |null
Defined in: pulls/pulls.ts:41
Who merged it; null for a pull request that is not merged.
node_id?
Section titled “node_id?”
optionalnode_id?:string
Defined in: pulls/pulls.ts:9
The pull request’s GraphQL node id (what markReadyForReview and a board’s addProjectV2ItemById take).
number
Section titled “number”number:
number
Defined in: pulls/pulls.ts:7
The pull request’s number.
requested_reviewers?
Section titled “requested_reviewers?”
optionalrequested_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.
optionaluser?: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).