Magidoc

PullRequest
Object

A repository pull request.

Fields

#

activeLockReason

Reason that the conversation was locked.

additions

Non-null

The number of additions in this pull request.

assignees

Non-null

A list of Users assigned to this object.

author

The actor who authored the comment.

authorAssociation

Non-null

Author's association with the subject of the comment.

autoMergeRequest

Returns the auto-merge request object if one exists for this pull request.

baseRef

Identifies the base Ref associated with the pull request.

baseRefName

Non-null

Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted.

baseRefOid

Non-null

Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted.

baseRepository

The repository associated with this pull request's base Ref.

body

Non-null

The body as Markdown.

bodyHTML

Non-null

The body rendered to HTML.

bodyText

Non-null

The body rendered to text.

canBeRebased

Non-null

Whether or not the pull request is rebaseable.

changedFiles

Non-null

The number of changed files in this pull request.

checksResourcePath

Non-null

The HTTP path for the checks of this pull request.

checksUrl

Non-null

The HTTP URL for the checks of this pull request.

closed

Non-null

true if the pull request is closed

closedAt

Identifies the date and time when the object was closed.

closingIssuesReferences

List of issues that may be closed by this pull request

comments

Non-null

A list of comments associated with the pull request.

commits

Non-null

A list of commits present in this pull request's head branch not present in the base branch.

createdAt

Non-null

Identifies the date and time when the object was created.

createdViaEmail

Non-null

Check if this comment was created via an email reply.

databaseId

Identifies the primary key from the database.

deletions

Non-null

The number of deletions in this pull request.

editor

The actor who edited this pull request's body.

files

Lists the files changed within this pull request.

fullDatabaseId

Identifies the primary key from the database as a BigInt.

headRef

Identifies the head Ref associated with the pull request.

headRefName

Non-null

Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted.

headRefOid

Non-null

Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted.

headRepository

The repository associated with this pull request's head Ref.

headRepositoryOwner

The owner of the repository associated with this pull request's head Ref.

hovercard

Non-null

The hovercard information for this issue

id

ID !
Non-null

The Node ID of the PullRequest object

includesCreatedEdit

Non-null

Check if this comment was edited and includes an edit with the creation data

isCrossRepository

Non-null

The head and base repositories are different.

isDraft

Non-null

Identifies if the pull request is a draft.

isInMergeQueue

Non-null

Indicates whether the pull request is in a merge queue

isMergeQueueEnabled

Non-null

Indicates whether the pull request's base ref has a merge queue enabled.

isReadByViewer

Is this pull request read by the viewer

labels

A list of labels associated with the object.

lastEditedAt

The moment the editor made the last edit

latestOpinionatedReviews

A list of latest reviews per user associated with the pull request.

latestReviews

A list of latest reviews per user associated with the pull request that are not also pending review.

locked

Non-null

true if the pull request is locked

maintainerCanModify

Non-null

Indicates whether maintainers can modify the pull request.

mergeCommit

The commit that was created when this pull request was merged.

mergeQueue

The merge queue for the pull request's base branch

mergeQueueEntry

The merge queue entry of the pull request in the base branch's merge queue

mergeStateStatus

Non-null

Detailed information about the current pull request merge state status.

mergeable

Non-null

Whether or not the pull request can be merged based on the existence of merge conflicts.

merged

Non-null

Whether or not the pull request was merged.

mergedAt

The date and time that the pull request was merged.

mergedBy

The actor who merged the pull request.

milestone

Identifies the milestone associated with the pull request.

number

Non-null

Identifies the pull request number.

participants

Non-null

A list of Users that are participating in the Pull Request conversation.

permalink

Non-null

The permalink to the pull request.

potentialMergeCommit

The commit that GitHub automatically generated to test if this pull request could be merged. This field will not return a value if the pull request is merged, or if the test merge commit is still being generated. See the mergeable field for more details on the mergeability of the pull request.

projectCards

Non-null

List of project cards associated with this pull request.

projectItems

Non-null

List of project items associated with this pull request.

projectV2

Find a project by number.

projectsV2

Non-null

A list of projects under the owner.

publishedAt

Identifies when the comment was published at.

reactionGroups

A list of reactions grouped by content left on the subject.

reactions

Non-null

A list of Reactions left on the Issue.

repository

Non-null

The repository associated with this node.

resourcePath

Non-null

The HTTP path for this pull request.

revertResourcePath

Non-null

The HTTP path for reverting this pull request.

revertUrl

Non-null

The HTTP URL for reverting this pull request.

reviewDecision

The current status of this pull request with respect to code review.

reviewRequests

A list of review requests associated with the pull request.

reviewThreads

Non-null

The list of all review threads for this pull request.

reviews

A list of reviews associated with the pull request.

state

Non-null

Identifies the state of the pull request.

statusCheckRollup

Check and Status rollup information for the PR's head ref.

suggestedReviewers

Non-null

A list of reviewer suggestions based on commit history and past review comments.

timeline

Non-null

A list of events, comments, commits, etc. associated with the pull request.

timelineItems

Non-null

A list of events, comments, commits, etc. associated with the pull request.

title

Non-null

Identifies the pull request title.

titleHTML

Non-null

Identifies the pull request title rendered to HTML.

totalCommentsCount

Returns a count of how many comments this pull request has received.

updatedAt

Non-null

Identifies the date and time when the object was last updated.

url

Non-null

The HTTP URL for this pull request.

userContentEdits

A list of edits to this content.

viewerCanApplySuggestion

Non-null

Whether or not the viewer can apply suggestion.

viewerCanClose

Non-null

Indicates if the object can be closed by the viewer.

viewerCanDeleteHeadRef

Non-null

Check if the viewer can restore the deleted head ref.

viewerCanDisableAutoMerge

Non-null

Whether or not the viewer can disable auto-merge

viewerCanEditFiles

Non-null

Can the viewer edit files within this pull request.

viewerCanEnableAutoMerge

Non-null

Whether or not the viewer can enable auto-merge

viewerCanLabel

Non-null

Indicates if the viewer can edit labels for this object.

viewerCanMergeAsAdmin

Non-null

Indicates whether the viewer can bypass branch protections and merge the pull request immediately

viewerCanReact

Non-null

Can user react to this subject

viewerCanReopen

Non-null

Indicates if the object can be reopened by the viewer.

viewerCanSubscribe

Non-null

Check if the viewer is able to change their subscription status for the repository.

viewerCanUpdate

Non-null

Check if the current viewer can update this object.

viewerCanUpdateBranch

Non-null

Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref. If the head ref is up to date or unable to be updated by this user, this will return false.

viewerCannotUpdateReasons

Non-null

Reasons why the current viewer can not update this comment.

viewerDidAuthor

Non-null

Did the viewer author this comment.

viewerLatestReview

The latest review given from the viewer.

viewerLatestReviewRequest

The person who has requested the viewer for review on this pull request.

viewerMergeBodyText

Non-null

The merge body text for the viewer and method.

viewerMergeHeadlineText

Non-null

The merge headline text for the viewer and method.

viewerSubscription

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

Interfaces

#

Also implements Assignable , Closable , Comment , Labelable , Lockable , Node , ProjectV2Owner , Reactable , RepositoryNode , Subscribable , UniformResourceLocatable , Updatable , UpdatableComment .

Usages

#

References

#