Skip to content

GitHub: Pulls schemas

15 GitHub schemas with complete fields and constraints.

← Pulls operations · All schemas

Create a reply for a review comment — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Review Comments are comments on a portion of the Pull Request's diff.
_linksobjectRequired within parent
_links.htmlobjectRequired within parent
_links.html.hrefstringRequired within parentFormat: uri
_links.pull_requestobjectRequired within parent
_links.pull_request.hrefstringRequired within parentFormat: uri
_links.selfobjectRequired within parent
_links.self.hrefstringRequired within parentFormat: uri
author_associationstringRequired within parentHow the author is associated with the repository.
Known values: COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER
bodystringRequired within parentThe text of the comment.
body_htmlstringOptional
body_textstringOptional
commit_idstringRequired within parentThe SHA of the commit to which the comment applies.
created_atstringRequired within parentFormat: date-time
diff_hunkstringRequired within parentThe diff of the line that the comment refers to.
html_urlstringRequired within parentHTML URL for the pull request review comment.
Format: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeThe ID of the pull request review comment.
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
in_reply_to_idJSONOptional
in_reply_to_id (anyOf 1)integerAlternativeThe comment ID to reply to.
in_reply_to_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
lineJSONOptional
line (anyOf 1)integerAlternativeThe line of the blob to which the comment applies. The last line of the range for a multi-line comment
line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parentThe node ID of the pull request review comment.
original_commit_idstringRequired within parentThe SHA of the original commit to which the comment applies.
original_lineJSONOptional
original_line (anyOf 1)integerAlternativeThe line of the blob to which the comment applies. The last line of the range for a multi-line comment
original_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_positionJSONOptional
original_position (anyOf 1)integerAlternativeThe index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.
original_position (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_start_lineJSONOptional
original_start_line (anyOf 1)JSONAlternative
original_start_line (anyOf 1) (anyOf 1)integerAlternativeThe first line of the range for a multi-line comment.
original_start_line (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_start_line (anyOf 2)nullAlternative
pathstringRequired within parentThe relative path of the file to which the comment applies.
positionJSONOptional
position (anyOf 1)integerAlternativeThe line index in the diff to which the comment applies. This field is closing down; use `line` instead.
position (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pull_request_review_idJSONRequired within parent
pull_request_review_id (anyOf 1)JSONAlternative
pull_request_review_id (anyOf 1) (anyOf 1)integerAlternativeThe ID of the pull request review to which the comment belongs.
Format: int64
pull_request_review_id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pull_request_review_id (anyOf 2)nullAlternative
pull_request_urlstringRequired within parentURL for the pull request that the review comment belongs to.
Format: uri
reactionsModelOptionalExpand Get an issue — response body — reactions
sidestringOptionalThe side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment
Known values: LEFT, RIGHT
Default: RIGHT
start_lineJSONOptional
start_line (anyOf 1)JSONAlternative
start_line (anyOf 1) (anyOf 1)integerAlternativeThe first line of the range for a multi-line comment.
start_line (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
start_line (anyOf 2)nullAlternative
start_sideJSONOptional
start_side (anyOf 1)stringAlternativeThe side of the first line of the range for a multi-line comment.
Known values: LEFT, RIGHT
Default: RIGHT
start_side (anyOf 2)nullAlternative
subject_typestringOptionalThe level at which the comment is targeted, can be a diff line or a file.
Known values: line, file
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentURL for the pull request review comment
userModelRequired within parentExpand Get an issue — response body — user

Referenced models: Get an issue — response body — user, Get an issue — response body — reactions

Get a pull request stack — response body — pull requests item

FieldTypePresenceDescription and constraints
$objectRoot
$ (allOf 1)ModelAll variants applyExpand Get a check run — response body — pull requests item
$ (allOf 2)objectAll variants apply
$ (allOf 2).draftbooleanRequired within parent
$ (allOf 2).html_urlstringRequired within parentFormat: uri
$ (allOf 2).merged_atJSONRequired within parent
$ (allOf 2).merged_at (anyOf 1)stringAlternativeFormat: date-time
$ (allOf 2).merged_at (anyOf 2)nullAlternative
$ (allOf 2).node_idstringRequired within parent
$ (allOf 2).statestringRequired within parentKnown values: open, closed
$ (allOf 2).titlestringRequired within parent
$ (allOf 2).userModelRequired within parentExpand Get an issue — response body — user

Referenced models: Get an issue — response body — user, Get a check run — response body — pull requests item

Get a pull request — response body

FieldTypePresenceDescription and constraints
$objectRootPull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.
_linksobjectRequired within parent
_links.commentsModelRequired within parentExpand Get a pull request — response body — links html
_links.commitsModelRequired within parentExpand Get a pull request — response body — links html
_links.htmlModelRequired within parentExpand Get a pull request — response body — links html
_links.issueModelRequired within parentExpand Get a pull request — response body — links html
_links.review_commentModelRequired within parentExpand Get a pull request — response body — links html
_links.review_commentsModelRequired within parentExpand Get a pull request — response body — links html
_links.selfModelRequired within parentExpand Get a pull request — response body — links html
_links.statusesModelRequired within parentExpand Get a pull request — response body — links html
active_lock_reasonJSONOptional
active_lock_reason (anyOf 1)stringAlternative
active_lock_reason (anyOf 2)nullAlternative
additionsJSONRequired within parent
additions (anyOf 1)integerAlternative
additions (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
assigneesarrayOptional
assignees[]ModelEach itemExpand List users — response body — item
author_associationstringRequired within parentHow the author is associated with the repository.
Known values: COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER
auto_mergeModelRequired within parentExpand Get a pull request — response body — auto merge
baseobjectRequired within parent
base.labelstringRequired within parent
base.refstringRequired within parent
base.repoModelRequired within parentExpand List repositories for the authenticated user — response body — item
base.shastringRequired within parent
base.userModelRequired within parentExpand List users — response body — item
bodyJSONRequired within parent
body (anyOf 1)stringAlternative
body (anyOf 2)nullAlternative
changed_filesJSONRequired within parent
changed_files (anyOf 1)integerAlternative
changed_files (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
closed_atJSONRequired within parent
closed_at (anyOf 1)stringAlternativeFormat: date-time
closed_at (anyOf 2)nullAlternative
commentsJSONRequired within parent
comments (anyOf 1)integerAlternative
comments (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
comments_urlstringRequired within parentFormat: uri
commitsJSONRequired within parent
commits (anyOf 1)integerAlternative
commits (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
commits_urlstringRequired within parentFormat: uri
created_atstringRequired within parentFormat: date-time
deletionsJSONRequired within parent
deletions (anyOf 1)integerAlternative
deletions (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
diff_urlstringRequired within parentFormat: uri
draftbooleanOptionalIndicates whether or not the pull request is a draft.
headobjectRequired within parent
head.labelstringRequired within parent
head.refstringRequired within parent
head.repoModelRequired within parentExpand List repositories for the authenticated user — response body — item
head.shastringRequired within parent
head.userModelRequired within parentExpand List users — response body — item
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
issue_urlstringRequired within parentFormat: uri
labelsarrayRequired within parent
labels[]objectEach item
labels[].archived_byJSONRequired within parent
labels[].archived_by (anyOf 1)JSONAlternativeThe user who archived the label, or `null` if it has not been archived.
labels[].archived_by (anyOf 1) (allOf 1)ModelAll variants applyExpand List users — response body — item
labels[].archived_by (anyOf 2)nullAlternative
labels[].colorstringRequired within parent
labels[].defaultbooleanRequired within parent
labels[].descriptionJSONRequired within parent
labels[].description (anyOf 1)stringAlternative
labels[].description (anyOf 2)nullAlternative
labels[].idJSONRequired within parent
labels[].id (anyOf 1)integerAlternativeFormat: int64
labels[].id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
labels[].namestringRequired within parent
labels[].node_idstringRequired within parent
labels[].urlstringRequired within parent
lockedbooleanRequired within parent
maintainer_can_modifybooleanRequired within parentIndicates whether maintainers can modify the pull request.
mergeableJSONRequired within parent
mergeable (anyOf 1)booleanAlternative
mergeable (anyOf 2)nullAlternative
mergeable_statestringRequired within parent
mergedbooleanRequired within parent
merged_atJSONRequired within parent
merged_at (anyOf 1)stringAlternativeFormat: date-time
merged_at (anyOf 2)nullAlternative
merged_byModelRequired within parentExpand Get an issue — response body — user
milestoneModelRequired within parentExpand Get an issue — response body — milestone
node_idstringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternativeNumber uniquely identifying the pull request within its repository.
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
patch_urlstringRequired within parentFormat: uri
rebaseableJSONOptional
rebaseable (anyOf 1)booleanAlternative
rebaseable (anyOf 2)nullAlternative
requested_reviewersarrayOptional
requested_reviewers[]ModelEach itemExpand List users — response body — item
requested_teamsarrayOptional
requested_teams[]ModelEach itemExpand List security manager teams — response body — item
review_comment_urlstringRequired within parent
review_commentsJSONRequired within parent
review_comments (anyOf 1)integerAlternative
review_comments (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
review_comments_urlstringRequired within parentFormat: uri
stackModelOptionalExpand Get a pull request — response body — stack
statestringRequired within parentState of this Pull Request. Either `open` or `closed`.
Known values: open, closed
statuses_urlstringRequired within parentFormat: uri
titlestringRequired within parentThe title of the pull request.
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri
userModelRequired within parentExpand List users — response body — item

Referenced models: Get a pull request — response body — auto merge, Get a pull request — response body — links html, Get an issue — response body — milestone, Get an issue — response body — user, Get a pull request — response body — stack, List repositories for the authenticated user — response body — item, List users — response body — item, List security manager teams — response body — item

Get a pull request — response body — auto merge

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeThe status of auto merging a pull request.
$ (anyOf 1).commit_messagestringRequired within parentCommit message for the merge commit.
$ (anyOf 1).commit_titlestringRequired within parentTitle for the merge commit message.
$ (anyOf 1).enabled_byModelRequired within parentExpand List users — response body — item
$ (anyOf 1).merge_methodstringRequired within parentThe merge method to use.
Known values: merge, squash, rebase
$ (anyOf 2)nullAlternative

Referenced models: List users — response body — item

Get a pull request — response body — links html

FieldTypePresenceDescription and constraints
$objectRootHypermedia Link
hrefstringRequired within parent

Get a pull request — response body — stack

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeThe stack information associated with a pull request.
$ (anyOf 1).baseobjectRequired within parent
$ (anyOf 1).base.refstringRequired within parentThe base ref of the stack this pull request belongs to.
$ (anyOf 1).base.shastringRequired within parentThe base SHA of the stack this pull request belongs to.
$ (anyOf 1).idJSONOptional
$ (anyOf 1).id (anyOf 1)integerAlternativeThe ID of the stack that this pull request belongs to.
$ (anyOf 1).id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).numberJSONOptional
$ (anyOf 1).number (anyOf 1)integerAlternativeThe number of the stack that this pull request belongs to.
$ (anyOf 1).number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).positionJSONOptional
$ (anyOf 1).position (anyOf 1)integerAlternativeThe one-based position of this pull request within the stack, where 1 is the bottom of the stack.
$ (anyOf 1).position (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).sizeJSONOptional
$ (anyOf 1).size (anyOf 1)integerAlternativeThe total number of pull requests in the stack.
$ (anyOf 1).size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 2)nullAlternative

Get a review for a pull request — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Reviews are reviews on pull requests.
_linksobjectRequired within parent
_links.htmlobjectRequired within parent
_links.html.hrefstringRequired within parent
_links.pull_requestobjectRequired within parent
_links.pull_request.hrefstringRequired within parent
author_associationstringRequired within parentHow the author is associated with the repository.
Known values: COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER
bodystringRequired within parentThe text of the review.
body_htmlstringOptional
body_textstringOptional
commit_idJSONRequired within parent
commit_id (anyOf 1)stringAlternativeA commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.
commit_id (anyOf 2)nullAlternative
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeUnique identifier of the review
Format: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
pull_request_urlstringRequired within parentFormat: uri
statestringRequired within parent
submitted_atstringOptionalFormat: date-time
userModelRequired within parentExpand Get an issue — response body — user

Referenced models: Get an issue — response body — user

Get all requested reviewers for a pull request — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Review Request
teamsarrayRequired within parent
teams[]ModelEach itemExpand List teams — response body — item
usersarrayRequired within parent
users[]ModelEach itemExpand List users — response body — item

Referenced models: List users — response body — item, List teams — response body — item

Get the result of an asynchronous merge — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Merge Async Result
Additional keys: not allowed
detailsJSONRequired within parent
details (anyOf 1)objectAlternativeWhen the asynchronous merge request is pending
Additional keys: not allowed
details (anyOf 1).bypass_rulesbooleanOptionalWhether the asynchronous merge request will attempt to bypass repository rules that the authenticated actor is permitted to bypass.
Default: false
details (anyOf 1).expected_head_shastringRequired within parentSHA that the pull request head must match for the enqueued merge to proceed.
details (anyOf 1).merge_actionstringRequired within parentKnown values: default, merge_queue, direct_merge
details (anyOf 1).merge_methodstringRequired within parentKnown values: default, merge, squash, rebase
details (anyOf 1).messagestringRequired within parent
details (anyOf 1).uuidstringRequired within parent
details (anyOf 2)objectAlternativeWhen the pull request is in a merge queue
Additional keys: not allowed
details (anyOf 2).messagestringRequired within parent
details (anyOf 3)objectAlternativeWhen the asynchronous merge request failed
Additional keys: not allowed
details (anyOf 3).messagestringRequired within parent
details (anyOf 4)objectAlternativeWhen the pull request has been merged
Additional keys: not allowed
details (anyOf 4).messagestringRequired within parent
details (anyOf 4).shastringRequired within parent
statusstringRequired within parentKnown values: pending, merged, enqueued, failed

List comments for a pull request review — response body — item

FieldTypePresenceDescription and constraints
$objectRootLegacy Review Comment
_linksobjectRequired within parent
_links.htmlModelRequired within parentExpand Get a pull request — response body — links html
_links.pull_requestModelRequired within parentExpand Get a pull request — response body — links html
_links.selfModelRequired within parentExpand Get a pull request — response body — links html
author_associationstringRequired within parentHow the author is associated with the repository.
Known values: COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER
bodystringRequired within parent
body_htmlstringOptional
body_textstringOptional
commit_idstringRequired within parent
created_atstringRequired within parentFormat: date-time
diff_hunkstringRequired within parent
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
in_reply_to_idJSONOptional
in_reply_to_id (anyOf 1)integerAlternative
in_reply_to_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
lineJSONOptional
line (anyOf 1)integerAlternativeThe line of the blob to which the comment applies. The last line of the range for a multi-line comment
line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
original_commit_idstringRequired within parent
original_lineJSONOptional
original_line (anyOf 1)integerAlternativeThe original line of the blob to which the comment applies. The last line of the range for a multi-line comment
original_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_positionJSONRequired within parent
original_position (anyOf 1)integerAlternative
original_position (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_start_lineJSONOptional
original_start_line (anyOf 1)JSONAlternative
original_start_line (anyOf 1) (anyOf 1)integerAlternativeThe original first line of the range for a multi-line comment.
original_start_line (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
original_start_line (anyOf 2)nullAlternative
pathstringRequired within parent
positionJSONRequired within parent
position (anyOf 1)JSONAlternative
position (anyOf 1) (anyOf 1)integerAlternative
position (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
position (anyOf 2)nullAlternative
pull_request_review_idJSONRequired within parent
pull_request_review_id (anyOf 1)JSONAlternative
pull_request_review_id (anyOf 1) (anyOf 1)integerAlternativeFormat: int64
pull_request_review_id (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pull_request_review_id (anyOf 2)nullAlternative
pull_request_urlstringRequired within parentFormat: uri
reactionsModelOptionalExpand Get an issue — response body — reactions
sidestringOptionalThe side of the first line of the range for a multi-line comment.
Known values: LEFT, RIGHT
Default: RIGHT
start_lineJSONOptional
start_line (anyOf 1)JSONAlternative
start_line (anyOf 1) (anyOf 1)integerAlternativeThe first line of the range for a multi-line comment.
start_line (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
start_line (anyOf 2)nullAlternative
start_sideJSONOptional
start_side (anyOf 1)stringAlternativeThe side of the first line of the range for a multi-line comment.
Known values: LEFT, RIGHT
Default: RIGHT
start_side (anyOf 2)nullAlternative
subject_typestringOptionalThe level at which the comment is targeted, can be a diff line or a file.
Known values: line, file
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri
userModelRequired within parentExpand Get an issue — response body — user

Referenced models: Get a pull request — response body — links html, Get an issue — response body — user, Get an issue — response body — reactions

List pull request stacks — response body — item

FieldTypePresenceDescription and constraints
$objectRoot
baseobjectRequired within parent
base.refstringRequired within parent
created_atstringRequired within parentFormat: date-time
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
openbooleanRequired within parentWhether the stack has any open pull request. False when all pull requests are merged or closed.
pull_requestsarrayRequired within parent
pull_requests[]objectEach item
pull_requests[].draftbooleanRequired within parent
pull_requests[].headobjectRequired within parent
pull_requests[].head.refstringRequired within parent
pull_requests[].head.shastringRequired within parent
pull_requests[].merged_atJSONRequired within parent
pull_requests[].merged_at (anyOf 1)stringAlternativeFormat: date-time
pull_requests[].merged_at (anyOf 2)nullAlternative
pull_requests[].numberJSONRequired within parent
pull_requests[].number (anyOf 1)integerAlternative
pull_requests[].number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pull_requests[].statestringRequired within parentKnown values: open, closed
urlstringRequired within parentFormat: uri

List pull requests files — response body — item

FieldTypePresenceDescription and constraints
$objectRootDiff Entry
additionsJSONRequired within parent
additions (anyOf 1)integerAlternative
additions (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
blob_urlstringRequired within parentFormat: uri
changesJSONRequired within parent
changes (anyOf 1)integerAlternative
changes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
contents_urlstringRequired within parentFormat: uri
deletionsJSONRequired within parent
deletions (anyOf 1)integerAlternative
deletions (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
filenamestringRequired within parent
patchstringOptional
previous_filenamestringOptional
raw_urlstringRequired within parentFormat: uri
shaJSONRequired within parent
sha (anyOf 1)stringAlternative
sha (anyOf 2)nullAlternative
statusstringRequired within parentKnown values: added, removed, modified, renamed, copied, changed, unchanged

Merge a pull request — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Merge Result
mergedbooleanRequired within parent
messagestringRequired within parent
shastringRequired within parent

Remove pull requests from a pull request stack — response body — base, created at, id, node id, number, open, pull requests, url

FieldTypePresenceDescription and constraints
$objectRoot
baseobjectRequired within parent
base.refstringRequired within parent
created_atstringRequired within parentFormat: date-time
idJSONRequired within parent
id (anyOf 1)integerAlternative
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
node_idstringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
openbooleanRequired within parentWhether the stack has any open pull request. False when all pull requests are merged or closed.
pull_requestsarrayRequired within parent
pull_requests[]ModelEach itemExpand Get a pull request stack — response body — pull requests item
urlstringRequired within parentFormat: uri

Referenced models: Get a pull request stack — response body — pull requests item

Request reviewers for a pull request — response body

FieldTypePresenceDescription and constraints
$objectRootPull Request Simple
_linksobjectRequired within parent
_links.commentsModelRequired within parentExpand Get a pull request — response body — links html
_links.commitsModelRequired within parentExpand Get a pull request — response body — links html
_links.htmlModelRequired within parentExpand Get a pull request — response body — links html
_links.issueModelRequired within parentExpand Get a pull request — response body — links html
_links.review_commentModelRequired within parentExpand Get a pull request — response body — links html
_links.review_commentsModelRequired within parentExpand Get a pull request — response body — links html
_links.selfModelRequired within parentExpand Get a pull request — response body — links html
_links.statusesModelRequired within parentExpand Get a pull request — response body — links html
active_lock_reasonJSONOptional
active_lock_reason (anyOf 1)stringAlternative
active_lock_reason (anyOf 2)nullAlternative
assigneesarrayOptional
assignees[]ModelEach itemExpand List users — response body — item
author_associationstringRequired within parentHow the author is associated with the repository.
Known values: COLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNER
auto_mergeModelRequired within parentExpand Get a pull request — response body — auto merge
baseobjectRequired within parent
base.labelstringRequired within parent
base.refstringRequired within parent
base.repoModelRequired within parentExpand List repositories for the authenticated user — response body — item
base.shastringRequired within parent
base.userModelRequired within parentExpand Get an issue — response body — user
bodyJSONRequired within parent
body (anyOf 1)stringAlternative
body (anyOf 2)nullAlternative
closed_atJSONRequired within parent
closed_at (anyOf 1)stringAlternativeFormat: date-time
closed_at (anyOf 2)nullAlternative
comments_urlstringRequired within parentFormat: uri
commits_urlstringRequired within parentFormat: uri
created_atstringRequired within parentFormat: date-time
diff_urlstringRequired within parentFormat: uri
draftbooleanOptionalIndicates whether or not the pull request is a draft.
headobjectRequired within parent
head.labelstringRequired within parent
head.refstringRequired within parent
head.repoModelRequired within parentExpand List repositories for the authenticated user — response body — item
head.shastringRequired within parent
head.userModelRequired within parentExpand Get an issue — response body — user
html_urlstringRequired within parentFormat: uri
idJSONRequired within parent
id (anyOf 1)integerAlternativeFormat: int64
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
issue_urlstringRequired within parentFormat: uri
labelsarrayRequired within parent
labels[]objectEach item
labels[].archived_byJSONRequired within parent
labels[].archived_by (anyOf 1)JSONAlternativeThe user who archived the label, or `null` if it has not been archived.
labels[].archived_by (anyOf 1) (allOf 1)ModelAll variants applyExpand List users — response body — item
labels[].archived_by (anyOf 2)nullAlternative
labels[].colorstringRequired within parent
labels[].defaultbooleanRequired within parent
labels[].descriptionstringRequired within parent
labels[].idJSONRequired within parent
labels[].id (anyOf 1)integerAlternativeFormat: int64
labels[].id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
labels[].namestringRequired within parent
labels[].node_idstringRequired within parent
labels[].urlstringRequired within parent
lockedbooleanRequired within parent
merged_atJSONRequired within parent
merged_at (anyOf 1)stringAlternativeFormat: date-time
merged_at (anyOf 2)nullAlternative
milestoneModelRequired within parentExpand Get an issue — response body — milestone
node_idstringRequired within parent
numberJSONRequired within parent
number (anyOf 1)integerAlternative
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
patch_urlstringRequired within parentFormat: uri
requested_reviewersarrayOptional
requested_reviewers[]ModelEach itemExpand List users — response body — item
requested_teamsarrayOptional
requested_teams[]ModelEach itemExpand List teams — response body — item
review_comment_urlstringRequired within parent
review_comments_urlstringRequired within parentFormat: uri
stackModelOptionalExpand Get a pull request — response body — stack
statestringRequired within parent
statuses_urlstringRequired within parentFormat: uri
titlestringRequired within parent
updated_atstringRequired within parentFormat: date-time
urlstringRequired within parentFormat: uri
userModelRequired within parentExpand Get an issue — response body — user

Referenced models: Get a pull request — response body — auto merge, Get a pull request — response body — links html, Get an issue — response body — milestone, Get an issue — response body — user, Get a pull request — response body — stack, List repositories for the authenticated user — response body — item, List users — response body — item, List teams — response body — item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.