PullRequest

A repository pull request.

Implements

Connections

comments (IssueCommentConnection)
A list of comments associated with the pull request.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

commits (CommitConnection)
A list of commits present in this pull request's head branch not present in the base branch.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

reactions (ReactionConnection)
A list of Reactions left on the Issue.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

content ReactionContent

Allows filtering Reactions by emoji.

orderBy ReactionOrder

Allows specifying the order in which reactions are returned.

timeline (IssueTimelineConnection)
A list of events associated with an Issue or PullRequest.
Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

since String

Allows filtering timeline events by a since timestamp.

Fields

author (User)

The user associated with this pull request.

baseRef (Ref)

Identifies the base Ref associated with the pull request.

body (String)

Identifies the body of the pull request.

bodyHTML (HTML)

Identifies the body of the pull request rendered to HTML.

createdAt (DateTime)

Identifies the date and time when the object was created.

createdViaEmail (Boolean)

Check if this comment was created via an email reply.

databaseId (Int)
Deprecation notice

Exposed database IDs will eventually be removed in favor of global Relay IDs.

Identifies the primary key from the database.

headRef (Ref)

Identifies the head Ref associated with the pull request.

labels (LabelConnection)

A list of labels associated with the Issue or Pull Request.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

liveReactionUpdatesEnabled (Boolean)

Are reaction live updates enabled for this subject.

number (Int)

Identifies the pull request number.

path (URI)

The HTTP path for this issue

reactionGroups (ReactionGroup)

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

reactionsWebsocket (String)

The websocket channel ID for reaction live updates.

repository (Repository)

The repository associated with this pull request.

reviewRequests (ReviewRequestConnection)

A list of review requests associated with the pull request.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

reviews (PullRequestReviewConnection)

A list of reviews associated with the pull request.

Argument Type Description
first Int

Returns the first n elements from the list.

after String

Returns the elements in the list that come after the specified global ID.

last Int

Returns the last n elements from the list.

before String

Returns the elements in the list that come before the specified global ID.

states

A list of states to filter the reviews.

state (PullRequestState)

Identifies the state of the pull request.

title (String)

Identifies the pull request title.

updatedAt (DateTime)

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

url (URI)

The HTTP url for this issue

viewerCanDelete (Boolean)

Check if the current viewer can delete this issue.

viewerCanEdit (Boolean)

Check if the current viewer edit this comment.

viewerCanReact (Boolean)

Can user react to this subject

viewerCannotEditReasons (CommentCannotEditReason)

Errors why the current viewer can not edit this comment.

viewerDidAuthor (Boolean)

Did the viewer author this comment.

websocket (String)

The websocket channel ID for live updates.

Argument Type Description
channel

The channel to use.