Github API - Test Config

PullRequest [object]

A repository pull request.

Implements
Assignable

Assignable [interface]

An object that can have users assigned to it.

Attributes
assignees UserConnection

A list of Users assigned to this object.

API:
Github GraphQL API
Closable

Closable [interface]

An object that can be closed

Attributes
closed Boolean

Indicates if the object is closed (definition of closed may depend on type)

closedAt DateTime

Identifies the date and time when the object was closed.

viewerCanClose Boolean

Indicates if the object can be closed by the viewer.

viewerCanReopen Boolean

Indicates if the object can be reopened by the viewer.

API:
Github GraphQL API
Comment

Comment [interface]

Represents a comment.

Attributes
author Actor

The actor who authored the comment.

authorAssociation CommentAuthorAssociation

Author's association with the subject of the comment.

body String

The body as Markdown.

bodyHTML HTML

The body rendered to HTML.

bodyText String

The body rendered to text.

createdAt DateTime

Identifies the date and time when the object was created.

createdViaEmail Boolean

Check if this comment was created via an email reply.

editor Actor

The actor who edited the comment.

id ID

The Node ID of the Comment object

includesCreatedEdit Boolean

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

lastEditedAt DateTime

The moment the editor made the last edit

publishedAt DateTime

Identifies when the comment was published at.

updatedAt DateTime

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

userContentEdits UserContentEditConnection

A list of edits to this content.

viewerDidAuthor Boolean

Did the viewer author this comment.

API:
Github GraphQL API
Labelable

Labelable [interface]

An object that can have labels assigned to it.

Attributes

A list of labels associated with the object.

API:
Github GraphQL API
Lockable

Lockable [interface]

An object that can be locked.

Attributes
activeLockReason LockReason

Reason that the conversation was locked.

locked Boolean

true if the object is locked

API:
Github GraphQL API
Node

Node [interface]

An object with an ID.

Attributes
id ID

ID of the object.

API:
Github GraphQL API
ProjectV2Owner

ProjectV2Owner [interface]

Represents an owner of a project.

Attributes
id ID

The Node ID of the ProjectV2Owner object

projectV2 ProjectV2

Find a project by number.

projectsV2 ProjectV2Connection

A list of projects under the owner.

API:
Github GraphQL API
Reactable

Reactable [interface]

Represents a subject that can be reacted on.

Attributes
databaseId Int

Identifies the primary key from the database.

id ID

The Node ID of the Reactable object

reactionGroups ReactionGroup []

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

reactions ReactionConnection

A list of Reactions left on the Issue.

viewerCanReact Boolean

Can user react to this subject

API:
Github GraphQL API
RepositoryNode

RepositoryNode [interface]

Represents a object that belongs to a repository.

Attributes
repository Repository

The repository associated with this node.

API:
Github GraphQL API
Subscribable

Subscribable [interface]

Entities that can be subscribed to for web and email notifications.

Attributes
id ID

The Node ID of the Subscribable object

viewerCanSubscribe Boolean

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

viewerSubscription SubscriptionState

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

API:
Github GraphQL API
UniformResourceLocatable

UniformResourceLocatable [interface]

Represents a type that can be retrieved by a URL.

Attributes
resourcePath URI

The HTML path to this resource.

url URI

The URL to this resource.

API:
Github GraphQL API
Updatable

Updatable [interface]

Entities that can be updated.

Attributes
viewerCanUpdate Boolean

Check if the current viewer can update this object.

API:
Github GraphQL API
UpdatableComment

UpdatableComment [interface]

Comments that can be updated.

Attributes
viewerCannotUpdateReasons CommentCannotUpdateReason []

Reasons why the current viewer can not update this comment.

API:
Github GraphQL API
Attributes
activeLockReason LockReason

LockReason [enum]

The possible reasons that an issue or pull request was locked.

Possible values
OFF_TOPIC

The issue or pull request was locked because the conversation was off-topic.

RESOLVED

The issue or pull request was locked because the conversation was resolved.

SPAM

The issue or pull request was locked because the conversation was spam.

TOO_HEATED

The issue or pull request was locked because the conversation was too heated.

API:
Github GraphQL API

Reason that the conversation was locked.

additions Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

The number of additions in this pull request.

assignees UserConnection

UserConnection [object]

A list of users.

Attributes
edges UserEdge []

A list of edges.

nodes User []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of Users assigned to this object.

author Actor

Actor [interface]

Represents an object which can take actions on GitHub. Typically a User or Bot.

Attributes
avatarUrl URI

A URL pointing to the actor's public avatar.

login String

The username of the actor.

resourcePath URI

The HTTP path for this actor.

url URI

The HTTP URL for this actor.

API:
Github GraphQL API

The actor who authored the comment.

authorAssociation CommentAuthorAssociation

CommentAuthorAssociation [enum]

A comment author association with repository.

Possible values
COLLABORATOR

Author has been invited to collaborate on the repository.

CONTRIBUTOR

Author has previously committed to the repository.

FIRST_TIMER

Author has not previously committed to GitHub.

FIRST_TIME_CONTRIBUTOR

Author has not previously committed to the repository.

MANNEQUIN

Author is a placeholder for an unclaimed user.

MEMBER

Author is a member of the organization that owns the repository.

NONE

Author has no association with the repository.

OWNER

Author is the owner of the repository.

API:
Github GraphQL API

Author's association with the subject of the comment.

autoMergeRequest AutoMergeRequest

AutoMergeRequest [object]

Represents an auto-merge request for a pull request

Attributes
authorEmail String

The email address of the author of this auto-merge request.

commitBody String

The commit message of the auto-merge request. If a merge queue is required by
the base branch, this value will be set by the merge queue when merging.

commitHeadline String

The commit title of the auto-merge request. If a merge queue is required by
the base branch, this value will be set by the merge queue when merging

enabledAt DateTime

When was this auto-merge request was enabled.

enabledBy Actor

The actor who created the auto-merge request.

The merge method of the auto-merge request. If a merge queue is required by
the base branch, this value will be set by the merge queue when merging.

pullRequest PullRequest

The pull request that this auto-merge request is set against.

API:
Github GraphQL API

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

baseRef Ref

Ref [object]

Represents a Git reference.

Implements
Node
Attributes
associatedPullRequests PullRequestConnection

A list of pull requests with this ref as the head ref.

branchProtectionRule BranchProtectionRule

Branch protection rules for this ref

compare Comparison

Compares the current ref as a base ref to another head ref, if the comparison can be made.

id ID

The Node ID of the Ref object

name String

The ref name.

prefix String

The ref's prefix, such as refs/heads/ or refs/tags/.

refUpdateRule RefUpdateRule

Branch protection rules that are viewable by non-admins

repository Repository

The repository the ref belongs to.

A list of rules from active Repository and Organization rulesets that apply to this ref.

target GitObject

The object the ref points to. Returns null when object does not exist.

API:
Github GraphQL API

Identifies the base Ref associated with the pull request.

baseRefName String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

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

baseRefOid GitObjectID

GitObjectID [scalar]

A Git object ID.

API:
Github GraphQL API

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

baseRepository Repository

Repository [object]

A repository contains the content for a project.

Implements
NodePackageOwnerProjectOwnerProjectV2RecentRepositoryInfoStarrableSubscribableUniformResourceLocatable
Attributes
allowUpdateBranch Boolean

Whether or not a pull request head branch that is behind its base branch can
always be updated even if it is not required to be up to date before merging.

archivedAt DateTime

Identifies the date and time when the repository was archived.

assignableUsers UserConnection

A list of users that can be assigned to issues in this repository.

autoMergeAllowed Boolean

Whether or not Auto-merge can be enabled on pull requests in this repository.

branchProtectionRules BranchProtectionRuleConnection

A list of branch protection rules for this repository.

codeOfConduct CodeOfConduct

Returns the code of conduct for this repository

Information extracted from the repository's CODEOWNERS file.

A list of collaborators associated with the repository.

commitComments CommitCommentConnection

A list of commit comments associated with the repository.

contactLinks RepositoryContactLink []

Returns a list of contact links associated to the repository

contributingGuidelines ContributingGuidelines

Returns the contributing guidelines for this repository.

createdAt DateTime

Identifies the date and time when the object was created.

databaseId Int

Identifies the primary key from the database.

defaultBranchRef Ref

The Ref associated with the repository's default branch.

deleteBranchOnMerge Boolean

Whether or not branches are automatically deleted when merged in this repository.

dependencyGraphManifests DependencyGraphManifestConnection

A list of dependency manifests contained in the repository

deployKeys DeployKeyConnection

A list of deploy keys that are on this repository.

deployments DeploymentConnection

Deployments associated with the repository

description String

The description of the repository.

descriptionHTML HTML

The description of the repository rendered to HTML.

discussion Discussion

Returns a single discussion from the current repository by number.

discussionCategories DiscussionCategoryConnection

A list of discussion categories that are available in the repository.

discussionCategory DiscussionCategory

A discussion category by slug.

discussions DiscussionConnection

A list of discussions that have been opened in the repository.

diskUsage Int

The number of kilobytes this repository occupies on disk.

environment Environment

Returns a single active environment from the current repository by name.

environments EnvironmentConnection

A list of environments that are in this repository.

forkCount Int

Returns how many forks there are of this repository in the whole network.

forkingAllowed Boolean

Whether this repository allows forks.

A list of direct forked repositories.

fundingLinks FundingLink []

The funding links for this repository

hasDiscussionsEnabled Boolean

Indicates if the repository has the Discussions feature enabled.

hasIssuesEnabled Boolean

Indicates if the repository has issues feature enabled.

hasProjectsEnabled Boolean

Indicates if the repository has the Projects feature enabled.

hasSponsorshipsEnabled Boolean

Indicates if the repository displays a Sponsor button for financial contributions.

hasVulnerabilityAlertsEnabled Boolean

Whether vulnerability alerts are enabled for the repository.

hasWikiEnabled Boolean

Indicates if the repository has wiki feature enabled.

homepageUrl URI

The repository's URL.

id ID

The Node ID of the Repository object

interactionAbility RepositoryInteractionAbility

The interaction ability settings for this repository.

isArchived Boolean

Indicates if the repository is unmaintained.

isBlankIssuesEnabled Boolean

Returns true if blank issue creation is allowed

isDisabled Boolean

Returns whether or not this repository disabled.

isEmpty Boolean

Returns whether or not this repository is empty.

isFork Boolean

Identifies if the repository is a fork.

isInOrganization Boolean

Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.

isLocked Boolean

Indicates if the repository has been locked or not.

isMirror Boolean

Identifies if the repository is a mirror.

isPrivate Boolean

Identifies if the repository is private or internal.

isSecurityPolicyEnabled Boolean

Returns true if this repository has a security policy

isTemplate Boolean

Identifies if the repository is a template that can be used to generate new repositories.

isUserConfigurationRepository Boolean

Is this repository a user configuration repository?

issue Issue

Returns a single issue from the current repository by number.

issueOrPullRequest IssueOrPullRequest

Returns a single issue-like object from the current repository by number.

issueTemplates IssueTemplate []

Returns a list of issue templates associated to the repository

A list of issues that have been opened in the repository.

label Label

Returns a single label by name

A list of labels associated with the repository.

languages LanguageConnection

A list containing a breakdown of the language composition of the repository.

latestRelease Release

Get the latest release for the repository if one exists.

licenseInfo License

The license associated with the repository

The reason the repository has been locked.

mentionableUsers UserConnection

A list of Users that can be mentioned in the context of the repository.

mergeCommitAllowed Boolean

Whether or not PRs are merged with a merge commit on this repository.

mergeCommitMessage MergeCommitMessage

How the default commit message will be generated when merging a pull request.

mergeCommitTitle MergeCommitTitle

How the default commit title will be generated when merging a pull request.

mergeQueue MergeQueue

The merge queue for a specified branch, otherwise the default branch if not provided.

milestone Milestone

Returns a single milestone from the current repository by number.

milestones MilestoneConnection

A list of milestones associated with the repository.

mirrorUrl URI

The repository's original mirror URL.

name String

The name of the repository.

nameWithOwner String

The repository's name with owner.

object GitObject

A Git object in the repository

openGraphImageUrl URI

The image used to represent this repository in Open Graph data.

The User owner of the repository.

A list of packages under the owner.

parent Repository

The repository parent, if this is a fork.

pinnedDiscussions PinnedDiscussionConnection

A list of discussions that have been pinned in this repository.

pinnedIssues PinnedIssueConnection

A list of pinned issues for this repository.

primaryLanguage Language

The primary language of the repository's code.

project Project

Find project by number.

projectV2 ProjectV2

Finds and returns the Project according to the provided Project number.

A list of projects under the owner.

projectsResourcePath URI

The HTTP path listing the repository's projects

projectsUrl URI

The HTTP URL listing the repository's projects

projectsV2 ProjectV2Connection

List of projects linked to this repository.

pullRequest PullRequest

Returns a single pull request from the current repository by number.

pullRequestTemplates PullRequestTemplate []

Returns a list of pull request templates associated to the repository

pullRequests PullRequestConnection

A list of pull requests that have been opened in the repository.

pushedAt DateTime

Identifies the date and time when the repository was last pushed to.

rebaseMergeAllowed Boolean

Whether or not rebase-merging is enabled on this repository.

recentProjects ProjectV2Connection

Recent projects that this user has modified in the context of the owner.

ref Ref

Fetch a given ref from the repository

Fetch a list of refs from the repository

release Release

Lookup a single release given various criteria.

List of releases which are dependent on this repository.

repositoryTopics RepositoryTopicConnection

A list of applied repository-topic associations for this repository.

resourcePath URI

The HTTP path for this repository

Returns a single ruleset from the current repository by ID.

A list of rulesets for this repository.

securityPolicyUrl URI

The security policy URL.

shortDescriptionHTML HTML

A description of the repository, rendered to HTML without any links in it.

squashMergeAllowed Boolean

Whether or not squash-merging is enabled on this repository.

squashMergeCommitMessage SquashMergeCommitMessage

How the default commit message will be generated when squash merging a pull request.

squashMergeCommitTitle SquashMergeCommitTitle

How the default commit title will be generated when squash merging a pull request.

squashPrTitleUsedAsDefault Boolean

Whether a squash merge commit can use the pull request title as default.

Deprecated: `squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC.
sshUrl GitSSHRemote

The SSH URL to clone this repository

stargazerCount Int

Returns a count of how many stargazers there are on this object

stargazers StargazerConnection

A list of users who have starred this starrable.

submodules SubmoduleConnection

Returns a list of all submodules in this repository parsed from the
.gitmodules file as of the default branch's HEAD commit.

tempCloneToken String

Temporary authentication token for cloning this repository.

templateRepository Repository

The repository from which this repository was generated, if any.

updatedAt DateTime

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

url URI

The HTTP URL for this repository

usesCustomOpenGraphImage Boolean

Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.

viewerCanAdminister Boolean

Indicates whether the viewer has admin permissions on this repository.

viewerCanCreateProjects Boolean

Can the current viewer create new projects on this owner.

viewerCanSubscribe Boolean

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

viewerCanUpdateTopics Boolean

Indicates whether the viewer can update the topics of this repository.

viewerDefaultCommitEmail String

The last commit email for the viewer.

viewerDefaultMergeMethod PullRequestMergeMethod

The last used merge method by the viewer or the default for the repository.

viewerHasStarred Boolean

Returns a boolean indicating whether the viewing user has starred this starrable.

viewerPermission RepositoryPermission

The users permission level on the repository. Will return null if authenticated as an GitHub App.

viewerPossibleCommitEmails String []

A list of emails this viewer can commit with.

viewerSubscription SubscriptionState

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

Indicates the repository's visibility level.

vulnerabilityAlert RepositoryVulnerabilityAlert

Returns a single vulnerability alert from the current repository by number.

A list of vulnerability alerts that are on this repository.

watchers UserConnection

A list of users watching the repository.

webCommitSignoffRequired Boolean

Whether contributors are required to sign off on web-based commits in this repository.

API:
Github GraphQL API

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

body String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

The body as Markdown.

bodyHTML HTML

HTML [scalar]

A string containing HTML code.

API:
Github GraphQL API

The body rendered to HTML.

bodyText String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

The body rendered to text.

canBeRebased Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether or not the pull request is rebaseable.

changedFiles Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

The number of changed files in this pull request.

checksResourcePath URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP path for the checks of this pull request.

checksUrl URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP URL for the checks of this pull request.

closed Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

true if the pull request is closed

closedAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

Identifies the date and time when the object was closed.

closingIssuesReferences IssueConnection

IssueConnection [object]

The connection type for Issue.

Attributes
edges IssueEdge []

A list of edges.

nodes Issue []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

List of issues that were may be closed by this pull request

comments IssueCommentConnection

IssueCommentConnection [object]

The connection type for IssueComment.

Attributes
edges IssueCommentEdge []

A list of edges.

nodes IssueComment []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of comments associated with the pull request.

commits PullRequestCommitConnection

PullRequestCommitConnection [object]

The connection type for PullRequestCommit.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

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

createdAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

Identifies the date and time when the object was created.

createdViaEmail Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Check if this comment was created via an email reply.

databaseId Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

Identifies the primary key from the database.

Deprecated: `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2024-07-01 UTC.
deletions Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

The number of deletions in this pull request.

editor Actor

Actor [interface]

Represents an object which can take actions on GitHub. Typically a User or Bot.

Attributes
avatarUrl URI

A URL pointing to the actor's public avatar.

login String

The username of the actor.

resourcePath URI

The HTTP path for this actor.

url URI

The HTTP URL for this actor.

API:
Github GraphQL API

The actor who edited this pull request's body.

files PullRequestChangedFileConnection

PullRequestChangedFileConnection [object]

The connection type for PullRequestChangedFile.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

Lists the files changed within this pull request.

fullDatabaseId BigInt

BigInt [scalar]

Represents non-fractional signed whole numeric values. Since the value may
exceed the size of a 32-bit integer, it's encoded as a string.

API:
Github GraphQL API

Identifies the primary key from the database as a BigInt.

headRef Ref

Ref [object]

Represents a Git reference.

Implements
Node
Attributes
associatedPullRequests PullRequestConnection

A list of pull requests with this ref as the head ref.

branchProtectionRule BranchProtectionRule

Branch protection rules for this ref

compare Comparison

Compares the current ref as a base ref to another head ref, if the comparison can be made.

id ID

The Node ID of the Ref object

name String

The ref name.

prefix String

The ref's prefix, such as refs/heads/ or refs/tags/.

refUpdateRule RefUpdateRule

Branch protection rules that are viewable by non-admins

repository Repository

The repository the ref belongs to.

A list of rules from active Repository and Organization rulesets that apply to this ref.

target GitObject

The object the ref points to. Returns null when object does not exist.

API:
Github GraphQL API

Identifies the head Ref associated with the pull request.

headRefName String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

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

headRefOid GitObjectID

GitObjectID [scalar]

A Git object ID.

API:
Github GraphQL API

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

headRepository Repository

Repository [object]

A repository contains the content for a project.

Implements
NodePackageOwnerProjectOwnerProjectV2RecentRepositoryInfoStarrableSubscribableUniformResourceLocatable
Attributes
allowUpdateBranch Boolean

Whether or not a pull request head branch that is behind its base branch can
always be updated even if it is not required to be up to date before merging.

archivedAt DateTime

Identifies the date and time when the repository was archived.

assignableUsers UserConnection

A list of users that can be assigned to issues in this repository.

autoMergeAllowed Boolean

Whether or not Auto-merge can be enabled on pull requests in this repository.

branchProtectionRules BranchProtectionRuleConnection

A list of branch protection rules for this repository.

codeOfConduct CodeOfConduct

Returns the code of conduct for this repository

Information extracted from the repository's CODEOWNERS file.

A list of collaborators associated with the repository.

commitComments CommitCommentConnection

A list of commit comments associated with the repository.

contactLinks RepositoryContactLink []

Returns a list of contact links associated to the repository

contributingGuidelines ContributingGuidelines

Returns the contributing guidelines for this repository.

createdAt DateTime

Identifies the date and time when the object was created.

databaseId Int

Identifies the primary key from the database.

defaultBranchRef Ref

The Ref associated with the repository's default branch.

deleteBranchOnMerge Boolean

Whether or not branches are automatically deleted when merged in this repository.

dependencyGraphManifests DependencyGraphManifestConnection

A list of dependency manifests contained in the repository

deployKeys DeployKeyConnection

A list of deploy keys that are on this repository.

deployments DeploymentConnection

Deployments associated with the repository

description String

The description of the repository.

descriptionHTML HTML

The description of the repository rendered to HTML.

discussion Discussion

Returns a single discussion from the current repository by number.

discussionCategories DiscussionCategoryConnection

A list of discussion categories that are available in the repository.

discussionCategory DiscussionCategory

A discussion category by slug.

discussions DiscussionConnection

A list of discussions that have been opened in the repository.

diskUsage Int

The number of kilobytes this repository occupies on disk.

environment Environment

Returns a single active environment from the current repository by name.

environments EnvironmentConnection

A list of environments that are in this repository.

forkCount Int

Returns how many forks there are of this repository in the whole network.

forkingAllowed Boolean

Whether this repository allows forks.

A list of direct forked repositories.

fundingLinks FundingLink []

The funding links for this repository

hasDiscussionsEnabled Boolean

Indicates if the repository has the Discussions feature enabled.

hasIssuesEnabled Boolean

Indicates if the repository has issues feature enabled.

hasProjectsEnabled Boolean

Indicates if the repository has the Projects feature enabled.

hasSponsorshipsEnabled Boolean

Indicates if the repository displays a Sponsor button for financial contributions.

hasVulnerabilityAlertsEnabled Boolean

Whether vulnerability alerts are enabled for the repository.

hasWikiEnabled Boolean

Indicates if the repository has wiki feature enabled.

homepageUrl URI

The repository's URL.

id ID

The Node ID of the Repository object

interactionAbility RepositoryInteractionAbility

The interaction ability settings for this repository.

isArchived Boolean

Indicates if the repository is unmaintained.

isBlankIssuesEnabled Boolean

Returns true if blank issue creation is allowed

isDisabled Boolean

Returns whether or not this repository disabled.

isEmpty Boolean

Returns whether or not this repository is empty.

isFork Boolean

Identifies if the repository is a fork.

isInOrganization Boolean

Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.

isLocked Boolean

Indicates if the repository has been locked or not.

isMirror Boolean

Identifies if the repository is a mirror.

isPrivate Boolean

Identifies if the repository is private or internal.

isSecurityPolicyEnabled Boolean

Returns true if this repository has a security policy

isTemplate Boolean

Identifies if the repository is a template that can be used to generate new repositories.

isUserConfigurationRepository Boolean

Is this repository a user configuration repository?

issue Issue

Returns a single issue from the current repository by number.

issueOrPullRequest IssueOrPullRequest

Returns a single issue-like object from the current repository by number.

issueTemplates IssueTemplate []

Returns a list of issue templates associated to the repository

A list of issues that have been opened in the repository.

label Label

Returns a single label by name

A list of labels associated with the repository.

languages LanguageConnection

A list containing a breakdown of the language composition of the repository.

latestRelease Release

Get the latest release for the repository if one exists.

licenseInfo License

The license associated with the repository

The reason the repository has been locked.

mentionableUsers UserConnection

A list of Users that can be mentioned in the context of the repository.

mergeCommitAllowed Boolean

Whether or not PRs are merged with a merge commit on this repository.

mergeCommitMessage MergeCommitMessage

How the default commit message will be generated when merging a pull request.

mergeCommitTitle MergeCommitTitle

How the default commit title will be generated when merging a pull request.

mergeQueue MergeQueue

The merge queue for a specified branch, otherwise the default branch if not provided.

milestone Milestone

Returns a single milestone from the current repository by number.

milestones MilestoneConnection

A list of milestones associated with the repository.

mirrorUrl URI

The repository's original mirror URL.

name String

The name of the repository.

nameWithOwner String

The repository's name with owner.

object GitObject

A Git object in the repository

openGraphImageUrl URI

The image used to represent this repository in Open Graph data.

The User owner of the repository.

A list of packages under the owner.

parent Repository

The repository parent, if this is a fork.

pinnedDiscussions PinnedDiscussionConnection

A list of discussions that have been pinned in this repository.

pinnedIssues PinnedIssueConnection

A list of pinned issues for this repository.

primaryLanguage Language

The primary language of the repository's code.

project Project

Find project by number.

projectV2 ProjectV2

Finds and returns the Project according to the provided Project number.

A list of projects under the owner.

projectsResourcePath URI

The HTTP path listing the repository's projects

projectsUrl URI

The HTTP URL listing the repository's projects

projectsV2 ProjectV2Connection

List of projects linked to this repository.

pullRequest PullRequest

Returns a single pull request from the current repository by number.

pullRequestTemplates PullRequestTemplate []

Returns a list of pull request templates associated to the repository

pullRequests PullRequestConnection

A list of pull requests that have been opened in the repository.

pushedAt DateTime

Identifies the date and time when the repository was last pushed to.

rebaseMergeAllowed Boolean

Whether or not rebase-merging is enabled on this repository.

recentProjects ProjectV2Connection

Recent projects that this user has modified in the context of the owner.

ref Ref

Fetch a given ref from the repository

Fetch a list of refs from the repository

release Release

Lookup a single release given various criteria.

List of releases which are dependent on this repository.

repositoryTopics RepositoryTopicConnection

A list of applied repository-topic associations for this repository.

resourcePath URI

The HTTP path for this repository

Returns a single ruleset from the current repository by ID.

A list of rulesets for this repository.

securityPolicyUrl URI

The security policy URL.

shortDescriptionHTML HTML

A description of the repository, rendered to HTML without any links in it.

squashMergeAllowed Boolean

Whether or not squash-merging is enabled on this repository.

squashMergeCommitMessage SquashMergeCommitMessage

How the default commit message will be generated when squash merging a pull request.

squashMergeCommitTitle SquashMergeCommitTitle

How the default commit title will be generated when squash merging a pull request.

squashPrTitleUsedAsDefault Boolean

Whether a squash merge commit can use the pull request title as default.

Deprecated: `squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC.
sshUrl GitSSHRemote

The SSH URL to clone this repository

stargazerCount Int

Returns a count of how many stargazers there are on this object

stargazers StargazerConnection

A list of users who have starred this starrable.

submodules SubmoduleConnection

Returns a list of all submodules in this repository parsed from the
.gitmodules file as of the default branch's HEAD commit.

tempCloneToken String

Temporary authentication token for cloning this repository.

templateRepository Repository

The repository from which this repository was generated, if any.

updatedAt DateTime

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

url URI

The HTTP URL for this repository

usesCustomOpenGraphImage Boolean

Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.

viewerCanAdminister Boolean

Indicates whether the viewer has admin permissions on this repository.

viewerCanCreateProjects Boolean

Can the current viewer create new projects on this owner.

viewerCanSubscribe Boolean

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

viewerCanUpdateTopics Boolean

Indicates whether the viewer can update the topics of this repository.

viewerDefaultCommitEmail String

The last commit email for the viewer.

viewerDefaultMergeMethod PullRequestMergeMethod

The last used merge method by the viewer or the default for the repository.

viewerHasStarred Boolean

Returns a boolean indicating whether the viewing user has starred this starrable.

viewerPermission RepositoryPermission

The users permission level on the repository. Will return null if authenticated as an GitHub App.

viewerPossibleCommitEmails String []

A list of emails this viewer can commit with.

viewerSubscription SubscriptionState

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

Indicates the repository's visibility level.

vulnerabilityAlert RepositoryVulnerabilityAlert

Returns a single vulnerability alert from the current repository by number.

A list of vulnerability alerts that are on this repository.

watchers UserConnection

A list of users watching the repository.

webCommitSignoffRequired Boolean

Whether contributors are required to sign off on web-based commits in this repository.

API:
Github GraphQL API

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

headRepositoryOwner RepositoryOwner

RepositoryOwner [interface]

Represents an owner of a Repository.

Attributes
avatarUrl URI

A URL pointing to the owner's public avatar.

id ID

The Node ID of the RepositoryOwner object

login String

The username used to login.

repositories RepositoryConnection

A list of repositories that the user owns.

repository Repository

Find Repository.

resourcePath URI

The HTTP URL for the owner.

url URI

The HTTP URL for the owner.

API:
Github GraphQL API

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

hovercard Hovercard

Hovercard [object]

Detail needed to display a hovercard for a user

Attributes
contexts HovercardContext []

Each of the contexts for this hovercard

API:
Github GraphQL API

The hovercard information for this issue

id ID

ID [scalar]

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

API:
Github GraphQL API

The Node ID of the PullRequest object

includesCreatedEdit Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

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

isCrossRepository Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

The head and base repositories are different.

isDraft Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Identifies if the pull request is a draft.

isInMergeQueue Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates whether the pull request is in a merge queue

isMergeQueueEnabled Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

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

isReadByViewer Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Is this pull request read by the viewer

labels LabelConnection

LabelConnection [object]

The connection type for Label.

Attributes
edges LabelEdge []

A list of edges.

nodes Label []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of labels associated with the object.

lastEditedAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

The moment the editor made the last edit

latestOpinionatedReviews PullRequestReviewConnection

PullRequestReviewConnection [object]

The connection type for PullRequestReview.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

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

latestReviews PullRequestReviewConnection

PullRequestReviewConnection [object]

The connection type for PullRequestReview.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

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

locked Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

true if the pull request is locked

maintainerCanModify Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates whether maintainers can modify the pull request.

mergeCommit Commit

Commit [object]

Represents a Git commit.

Implements
GitObjectNodeSubscribableUniformResourceLocatable
Attributes
abbreviatedOid String

An abbreviated version of the Git object ID

additions Int

The number of additions in this commit.

associatedPullRequests PullRequestConnection

The merged Pull Request that introduced the commit to the repository. If the
commit is not present in the default branch, additionally returns open Pull
Requests associated with the commit

author GitActor

Authorship details of the commit.

authoredByCommitter Boolean

Check if the committer and the author match.

authoredDate DateTime

The datetime when this commit was authored.

The list of authors for this commit based on the git author and the Co-authored-by
message trailer. The git author will always be first.

blame Blame

Fetches git blame information.

changedFiles Int

We recommend using the changedFilesIfAvailable field instead of
changedFiles, as changedFiles will cause your request to return an error
if GitHub is unable to calculate the number of changed files.

Deprecated: `changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC.
changedFilesIfAvailable Int

The number of changed files in this commit. If GitHub is unable to calculate
the number of changed files (for example due to a timeout), this will return
null. We recommend using this field instead of changedFiles.

checkSuites CheckSuiteConnection

The check suites associated with a commit.

Comments made on the commit.

commitResourcePath URI

The HTTP path for this Git object

commitUrl URI

The HTTP URL for this Git object

committedDate DateTime

The datetime when this commit was committed.

committedViaWeb Boolean

Check if committed via GitHub web UI.

committer GitActor

Committer details of the commit.

deletions Int

The number of deletions in this commit.

deployments DeploymentConnection

The deployments associated with a commit.

file TreeEntry

The tree entry representing the file located at the given path.

The linear commit history starting from (and including) this commit, in the same order as git log.

id ID

The Node ID of the Commit object

message String

The Git commit message

messageBody String

The Git commit message body

messageBodyHTML HTML

The commit message body rendered to HTML.

messageHeadline String

The Git commit message headline

messageHeadlineHTML HTML

The commit message headline rendered to HTML.

The Git object ID

onBehalfOf Organization

The organization this commit was made on behalf of.

The parents of a commit.

pushedDate DateTime

The datetime when this commit was pushed.

Deprecated: `pushedDate` is no longer supported. Removal on 2023-07-01 UTC.
repository Repository

The Repository this commit belongs to

resourcePath URI

The HTTP path for this commit

signature GitSignature

Commit signing information, if present.

status Status

Status information for this commit

statusCheckRollup StatusCheckRollup

Check and Status rollup information for this commit.

submodules SubmoduleConnection

Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file.

tarballUrl URI

Returns a URL to download a tarball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.

tree Tree

Commit's root Tree

treeResourcePath URI

The HTTP path for the tree of this commit

treeUrl URI

The HTTP URL for the tree of this commit

url URI

The HTTP URL for this commit

viewerCanSubscribe Boolean

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

viewerSubscription SubscriptionState

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

zipballUrl URI

Returns a URL to download a zipball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.

API:
Github GraphQL API

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

mergeQueue MergeQueue

MergeQueue [object]

The queue of pull request entries to be merged into a protected branch in a repository.

Implements
Node
Attributes
configuration MergeQueueConfiguration

The configuration for this merge queue

The entries in the queue

id ID

The Node ID of the MergeQueue object

nextEntryEstimatedTimeToMerge Int

The estimated time in seconds until a newly added entry would be merged

repository Repository

The repository this merge queue belongs to

resourcePath URI

The HTTP path for this merge queue

url URI

The HTTP URL for this merge queue

API:
Github GraphQL API

The merge queue for the pull request's base branch

mergeQueueEntry MergeQueueEntry

MergeQueueEntry [object]

Entries in a MergeQueue

Implements
Node
Attributes
baseCommit Commit

The base commit for this entry

enqueuedAt DateTime

The date and time this entry was added to the merge queue

enqueuer Actor

The actor that enqueued this entry

estimatedTimeToMerge Int

The estimated time in seconds until this entry will be merged

headCommit Commit

The head commit for this entry

id ID

The Node ID of the MergeQueueEntry object

jump Boolean

Whether this pull request should jump the queue

mergeQueue MergeQueue

The merge queue that this entry belongs to

position Int

The position of this entry in the queue

pullRequest PullRequest

The pull request that will be added to a merge group

solo Boolean

Does this pull request need to be deployed on its own

The state of this entry in the queue

API:
Github GraphQL API

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

mergeStateStatus MergeStateStatus

MergeStateStatus [enum]

Detailed status information about a pull request merge.

Possible values
BEHIND

The head ref is out of date.

BLOCKED

The merge is blocked.

CLEAN

Mergeable and passing commit status.

DIRTY

The merge commit cannot be cleanly created.

DRAFT

The merge is blocked due to the pull request being a draft.

Deprecated: DRAFT state will be removed from this enum and `isDraft` should be used instead Use PullRequest.isDraft instead. Removal on 2021-01-01 UTC.
HAS_HOOKS

Mergeable with passing commit status and pre-receive hooks.

UNKNOWN

The state cannot currently be determined.

UNSTABLE

Mergeable with non-passing commit status.

API:
Github GraphQL API

Detailed information about the current pull request merge state status.

mergeable MergeableState

MergeableState [enum]

Whether or not a PullRequest can be merged.

Possible values
CONFLICTING

The pull request cannot be merged due to merge conflicts.

MERGEABLE

The pull request can be merged.

UNKNOWN

The mergeability of the pull request is still being calculated.

API:
Github GraphQL API

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

merged Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether or not the pull request was merged.

mergedAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

The date and time that the pull request was merged.

mergedBy Actor

Actor [interface]

Represents an object which can take actions on GitHub. Typically a User or Bot.

Attributes
avatarUrl URI

A URL pointing to the actor's public avatar.

login String

The username of the actor.

resourcePath URI

The HTTP path for this actor.

url URI

The HTTP URL for this actor.

API:
Github GraphQL API

The actor who merged the pull request.

milestone Milestone

Milestone [object]

Represents a Milestone object on a given repository.

Implements
ClosableNodeUniformResourceLocatable
Attributes
closed Boolean

Indicates if the object is closed (definition of closed may depend on type)

closedAt DateTime

Identifies the date and time when the object was closed.

createdAt DateTime

Identifies the date and time when the object was created.

creator Actor

Identifies the actor who created the milestone.

description String

Identifies the description of the milestone.

dueOn DateTime

Identifies the due date of the milestone.

id ID

The Node ID of the Milestone object

A list of issues associated with the milestone.

number Int

Identifies the number of the milestone.

progressPercentage Float

Identifies the percentage complete for the milestone

pullRequests PullRequestConnection

A list of pull requests associated with the milestone.

repository Repository

The repository associated with this milestone.

resourcePath URI

The HTTP path for this milestone

Identifies the state of the milestone.

title String

Identifies the title of the milestone.

updatedAt DateTime

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

url URI

The HTTP URL for this milestone

viewerCanClose Boolean

Indicates if the object can be closed by the viewer.

viewerCanReopen Boolean

Indicates if the object can be reopened by the viewer.

API:
Github GraphQL API

Identifies the milestone associated with the pull request.

number Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

Identifies the pull request number.

participants UserConnection

UserConnection [object]

A list of users.

Attributes
edges UserEdge []

A list of edges.

nodes User []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

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

permalink URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The permalink to the pull request.

potentialMergeCommit Commit

Commit [object]

Represents a Git commit.

Implements
GitObjectNodeSubscribableUniformResourceLocatable
Attributes
abbreviatedOid String

An abbreviated version of the Git object ID

additions Int

The number of additions in this commit.

associatedPullRequests PullRequestConnection

The merged Pull Request that introduced the commit to the repository. If the
commit is not present in the default branch, additionally returns open Pull
Requests associated with the commit

author GitActor

Authorship details of the commit.

authoredByCommitter Boolean

Check if the committer and the author match.

authoredDate DateTime

The datetime when this commit was authored.

The list of authors for this commit based on the git author and the Co-authored-by
message trailer. The git author will always be first.

blame Blame

Fetches git blame information.

changedFiles Int

We recommend using the changedFilesIfAvailable field instead of
changedFiles, as changedFiles will cause your request to return an error
if GitHub is unable to calculate the number of changed files.

Deprecated: `changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC.
changedFilesIfAvailable Int

The number of changed files in this commit. If GitHub is unable to calculate
the number of changed files (for example due to a timeout), this will return
null. We recommend using this field instead of changedFiles.

checkSuites CheckSuiteConnection

The check suites associated with a commit.

Comments made on the commit.

commitResourcePath URI

The HTTP path for this Git object

commitUrl URI

The HTTP URL for this Git object

committedDate DateTime

The datetime when this commit was committed.

committedViaWeb Boolean

Check if committed via GitHub web UI.

committer GitActor

Committer details of the commit.

deletions Int

The number of deletions in this commit.

deployments DeploymentConnection

The deployments associated with a commit.

file TreeEntry

The tree entry representing the file located at the given path.

The linear commit history starting from (and including) this commit, in the same order as git log.

id ID

The Node ID of the Commit object

message String

The Git commit message

messageBody String

The Git commit message body

messageBodyHTML HTML

The commit message body rendered to HTML.

messageHeadline String

The Git commit message headline

messageHeadlineHTML HTML

The commit message headline rendered to HTML.

The Git object ID

onBehalfOf Organization

The organization this commit was made on behalf of.

The parents of a commit.

pushedDate DateTime

The datetime when this commit was pushed.

Deprecated: `pushedDate` is no longer supported. Removal on 2023-07-01 UTC.
repository Repository

The Repository this commit belongs to

resourcePath URI

The HTTP path for this commit

signature GitSignature

Commit signing information, if present.

status Status

Status information for this commit

statusCheckRollup StatusCheckRollup

Check and Status rollup information for this commit.

submodules SubmoduleConnection

Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file.

tarballUrl URI

Returns a URL to download a tarball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.

tree Tree

Commit's root Tree

treeResourcePath URI

The HTTP path for the tree of this commit

treeUrl URI

The HTTP URL for the tree of this commit

url URI

The HTTP URL for this commit

viewerCanSubscribe Boolean

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

viewerSubscription SubscriptionState

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

zipballUrl URI

Returns a URL to download a zipball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.

API:
Github GraphQL API

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 ProjectCardConnection

ProjectCardConnection [object]

The connection type for ProjectCard.

Attributes
edges ProjectCardEdge []

A list of edges.

nodes ProjectCard []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

List of project cards associated with this pull request.

projectItems ProjectV2ItemConnection

ProjectV2ItemConnection [object]

The connection type for ProjectV2Item.

Attributes

A list of edges.

nodes ProjectV2Item []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

List of project items associated with this pull request.

projectV2 ProjectV2

ProjectV2 [object]

New projects that manage issues, pull requests and drafts using tables and boards.

Implements
ClosableNodeUpdatable
Attributes
closed Boolean

Returns true if the project is closed.

closedAt DateTime

Identifies the date and time when the object was closed.

createdAt DateTime

Identifies the date and time when the object was created.

creator Actor

The actor who originally created the project.

databaseId Int

Identifies the primary key from the database.

A field of the project

List of fields and their constraints in the project

id ID

The Node ID of the ProjectV2 object

List of items in the project

number Int

The project's number.

The project's owner. Currently limited to organizations and users.

public Boolean

Returns true if the project is public.

readme String

The project's readme.

repositories RepositoryConnection

The repositories the project is linked to.

resourcePath URI

The HTTP path for this project

shortDescription String

The project's short description.

The teams the project is linked to.

template Boolean

Returns true if this project is a template.

title String

The project's name.

updatedAt DateTime

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

url URI

The HTTP URL for this project

A view of the project

viewerCanClose Boolean

Indicates if the object can be closed by the viewer.

viewerCanReopen Boolean

Indicates if the object can be reopened by the viewer.

viewerCanUpdate Boolean

Check if the current viewer can update this object.

List of views in the project

A workflow of the project

List of the workflows in the project

API:
Github GraphQL API

Find a project by number.

projectsV2 ProjectV2Connection

ProjectV2Connection [object]

The connection type for ProjectV2.

Attributes
edges ProjectV2Edge []

A list of edges.

nodes ProjectV2 []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of projects under the owner.

publishedAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

Identifies when the comment was published at.

reactionGroups ReactionGroup []

ReactionGroup [object]

A group of emoji reactions to a particular piece of content.

Attributes
content ReactionContent

Identifies the emoji reaction.

createdAt DateTime

Identifies when the reaction was created.

Reactors to the reaction subject with the emotion represented by this reaction group.

subject Reactable

The subject that was reacted to.

Users who have reacted to the reaction subject with the emotion represented by this reaction group

Deprecated: Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC.
viewerHasReacted Boolean

Whether or not the authenticated user has left a reaction on the subject.

API:
Github GraphQL API

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

reactions ReactionConnection

ReactionConnection [object]

A list of reactions that have been left on the subject.

Attributes
edges ReactionEdge []

A list of edges.

nodes Reaction []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

viewerHasReacted Boolean

Whether or not the authenticated user has left a reaction on the subject.

API:
Github GraphQL API

A list of Reactions left on the Issue.

repository Repository

Repository [object]

A repository contains the content for a project.

Implements
NodePackageOwnerProjectOwnerProjectV2RecentRepositoryInfoStarrableSubscribableUniformResourceLocatable
Attributes
allowUpdateBranch Boolean

Whether or not a pull request head branch that is behind its base branch can
always be updated even if it is not required to be up to date before merging.

archivedAt DateTime

Identifies the date and time when the repository was archived.

assignableUsers UserConnection

A list of users that can be assigned to issues in this repository.

autoMergeAllowed Boolean

Whether or not Auto-merge can be enabled on pull requests in this repository.

branchProtectionRules BranchProtectionRuleConnection

A list of branch protection rules for this repository.

codeOfConduct CodeOfConduct

Returns the code of conduct for this repository

Information extracted from the repository's CODEOWNERS file.

A list of collaborators associated with the repository.

commitComments CommitCommentConnection

A list of commit comments associated with the repository.

contactLinks RepositoryContactLink []

Returns a list of contact links associated to the repository

contributingGuidelines ContributingGuidelines

Returns the contributing guidelines for this repository.

createdAt DateTime

Identifies the date and time when the object was created.

databaseId Int

Identifies the primary key from the database.

defaultBranchRef Ref

The Ref associated with the repository's default branch.

deleteBranchOnMerge Boolean

Whether or not branches are automatically deleted when merged in this repository.

dependencyGraphManifests DependencyGraphManifestConnection

A list of dependency manifests contained in the repository

deployKeys DeployKeyConnection

A list of deploy keys that are on this repository.

deployments DeploymentConnection

Deployments associated with the repository

description String

The description of the repository.

descriptionHTML HTML

The description of the repository rendered to HTML.

discussion Discussion

Returns a single discussion from the current repository by number.

discussionCategories DiscussionCategoryConnection

A list of discussion categories that are available in the repository.

discussionCategory DiscussionCategory

A discussion category by slug.

discussions DiscussionConnection

A list of discussions that have been opened in the repository.

diskUsage Int

The number of kilobytes this repository occupies on disk.

environment Environment

Returns a single active environment from the current repository by name.

environments EnvironmentConnection

A list of environments that are in this repository.

forkCount Int

Returns how many forks there are of this repository in the whole network.

forkingAllowed Boolean

Whether this repository allows forks.

A list of direct forked repositories.

fundingLinks FundingLink []

The funding links for this repository

hasDiscussionsEnabled Boolean

Indicates if the repository has the Discussions feature enabled.

hasIssuesEnabled Boolean

Indicates if the repository has issues feature enabled.

hasProjectsEnabled Boolean

Indicates if the repository has the Projects feature enabled.

hasSponsorshipsEnabled Boolean

Indicates if the repository displays a Sponsor button for financial contributions.

hasVulnerabilityAlertsEnabled Boolean

Whether vulnerability alerts are enabled for the repository.

hasWikiEnabled Boolean

Indicates if the repository has wiki feature enabled.

homepageUrl URI

The repository's URL.

id ID

The Node ID of the Repository object

interactionAbility RepositoryInteractionAbility

The interaction ability settings for this repository.

isArchived Boolean

Indicates if the repository is unmaintained.

isBlankIssuesEnabled Boolean

Returns true if blank issue creation is allowed

isDisabled Boolean

Returns whether or not this repository disabled.

isEmpty Boolean

Returns whether or not this repository is empty.

isFork Boolean

Identifies if the repository is a fork.

isInOrganization Boolean

Indicates if a repository is either owned by an organization, or is a private fork of an organization repository.

isLocked Boolean

Indicates if the repository has been locked or not.

isMirror Boolean

Identifies if the repository is a mirror.

isPrivate Boolean

Identifies if the repository is private or internal.

isSecurityPolicyEnabled Boolean

Returns true if this repository has a security policy

isTemplate Boolean

Identifies if the repository is a template that can be used to generate new repositories.

isUserConfigurationRepository Boolean

Is this repository a user configuration repository?

issue Issue

Returns a single issue from the current repository by number.

issueOrPullRequest IssueOrPullRequest

Returns a single issue-like object from the current repository by number.

issueTemplates IssueTemplate []

Returns a list of issue templates associated to the repository

A list of issues that have been opened in the repository.

label Label

Returns a single label by name

A list of labels associated with the repository.

languages LanguageConnection

A list containing a breakdown of the language composition of the repository.

latestRelease Release

Get the latest release for the repository if one exists.

licenseInfo License

The license associated with the repository

The reason the repository has been locked.

mentionableUsers UserConnection

A list of Users that can be mentioned in the context of the repository.

mergeCommitAllowed Boolean

Whether or not PRs are merged with a merge commit on this repository.

mergeCommitMessage MergeCommitMessage

How the default commit message will be generated when merging a pull request.

mergeCommitTitle MergeCommitTitle

How the default commit title will be generated when merging a pull request.

mergeQueue MergeQueue

The merge queue for a specified branch, otherwise the default branch if not provided.

milestone Milestone

Returns a single milestone from the current repository by number.

milestones MilestoneConnection

A list of milestones associated with the repository.

mirrorUrl URI

The repository's original mirror URL.

name String

The name of the repository.

nameWithOwner String

The repository's name with owner.

object GitObject

A Git object in the repository

openGraphImageUrl URI

The image used to represent this repository in Open Graph data.

The User owner of the repository.

A list of packages under the owner.

parent Repository

The repository parent, if this is a fork.

pinnedDiscussions PinnedDiscussionConnection

A list of discussions that have been pinned in this repository.

pinnedIssues PinnedIssueConnection

A list of pinned issues for this repository.

primaryLanguage Language

The primary language of the repository's code.

project Project

Find project by number.

projectV2 ProjectV2

Finds and returns the Project according to the provided Project number.

A list of projects under the owner.

projectsResourcePath URI

The HTTP path listing the repository's projects

projectsUrl URI

The HTTP URL listing the repository's projects

projectsV2 ProjectV2Connection

List of projects linked to this repository.

pullRequest PullRequest

Returns a single pull request from the current repository by number.

pullRequestTemplates PullRequestTemplate []

Returns a list of pull request templates associated to the repository

pullRequests PullRequestConnection

A list of pull requests that have been opened in the repository.

pushedAt DateTime

Identifies the date and time when the repository was last pushed to.

rebaseMergeAllowed Boolean

Whether or not rebase-merging is enabled on this repository.

recentProjects ProjectV2Connection

Recent projects that this user has modified in the context of the owner.

ref Ref

Fetch a given ref from the repository

Fetch a list of refs from the repository

release Release

Lookup a single release given various criteria.

List of releases which are dependent on this repository.

repositoryTopics RepositoryTopicConnection

A list of applied repository-topic associations for this repository.

resourcePath URI

The HTTP path for this repository

Returns a single ruleset from the current repository by ID.

A list of rulesets for this repository.

securityPolicyUrl URI

The security policy URL.

shortDescriptionHTML HTML

A description of the repository, rendered to HTML without any links in it.

squashMergeAllowed Boolean

Whether or not squash-merging is enabled on this repository.

squashMergeCommitMessage SquashMergeCommitMessage

How the default commit message will be generated when squash merging a pull request.

squashMergeCommitTitle SquashMergeCommitTitle

How the default commit title will be generated when squash merging a pull request.

squashPrTitleUsedAsDefault Boolean

Whether a squash merge commit can use the pull request title as default.

Deprecated: `squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC.
sshUrl GitSSHRemote

The SSH URL to clone this repository

stargazerCount Int

Returns a count of how many stargazers there are on this object

stargazers StargazerConnection

A list of users who have starred this starrable.

submodules SubmoduleConnection

Returns a list of all submodules in this repository parsed from the
.gitmodules file as of the default branch's HEAD commit.

tempCloneToken String

Temporary authentication token for cloning this repository.

templateRepository Repository

The repository from which this repository was generated, if any.

updatedAt DateTime

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

url URI

The HTTP URL for this repository

usesCustomOpenGraphImage Boolean

Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar.

viewerCanAdminister Boolean

Indicates whether the viewer has admin permissions on this repository.

viewerCanCreateProjects Boolean

Can the current viewer create new projects on this owner.

viewerCanSubscribe Boolean

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

viewerCanUpdateTopics Boolean

Indicates whether the viewer can update the topics of this repository.

viewerDefaultCommitEmail String

The last commit email for the viewer.

viewerDefaultMergeMethod PullRequestMergeMethod

The last used merge method by the viewer or the default for the repository.

viewerHasStarred Boolean

Returns a boolean indicating whether the viewing user has starred this starrable.

viewerPermission RepositoryPermission

The users permission level on the repository. Will return null if authenticated as an GitHub App.

viewerPossibleCommitEmails String []

A list of emails this viewer can commit with.

viewerSubscription SubscriptionState

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

Indicates the repository's visibility level.

vulnerabilityAlert RepositoryVulnerabilityAlert

Returns a single vulnerability alert from the current repository by number.

A list of vulnerability alerts that are on this repository.

watchers UserConnection

A list of users watching the repository.

webCommitSignoffRequired Boolean

Whether contributors are required to sign off on web-based commits in this repository.

API:
Github GraphQL API

The repository associated with this node.

resourcePath URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP path for this pull request.

revertResourcePath URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP path for reverting this pull request.

revertUrl URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP URL for reverting this pull request.

reviewDecision PullRequestReviewDecision

PullRequestReviewDecision [enum]

The review status of a pull request.

Possible values
APPROVED

The pull request has received an approving review.

CHANGES_REQUESTED

Changes have been requested on the pull request.

REVIEW_REQUIRED

A review is required before the pull request can be merged.

API:
Github GraphQL API

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

reviewRequests ReviewRequestConnection

ReviewRequestConnection [object]

The connection type for ReviewRequest.

Attributes

A list of edges.

nodes ReviewRequest []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of review requests associated with the pull request.

reviewThreads PullRequestReviewThreadConnection

PullRequestReviewThreadConnection [object]

Review comment threads for a pull request review.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

The list of all review threads for this pull request.

reviews PullRequestReviewConnection

PullRequestReviewConnection [object]

The connection type for PullRequestReview.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of reviews associated with the pull request.

state PullRequestState

PullRequestState [enum]

The possible states of a pull request.

Possible values
CLOSED

A pull request that has been closed without being merged.

MERGED

A pull request that has been closed by being merged.

OPEN

A pull request that is still open.

API:
Github GraphQL API

Identifies the state of the pull request.

suggestedReviewers SuggestedReviewer []

SuggestedReviewer [object]

A suggestion to review a pull request based on a user's commit history and review comments.

Attributes
isAuthor Boolean

Is this suggestion based on past commits?

isCommenter Boolean

Is this suggestion based on past review comments?

reviewer User

Identifies the user suggested to review the pull request.

API:
Github GraphQL API

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

timeline PullRequestTimelineConnection

PullRequestTimelineConnection [object]

The connection type for PullRequestTimelineItem.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

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

Deprecated: `timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.
timelineItems PullRequestTimelineItemsConnection

PullRequestTimelineItemsConnection [object]

The connection type for PullRequestTimelineItems.

Attributes

A list of edges.

filteredCount Int

Identifies the count of items after applying before and after filters.

A list of nodes.

pageCount Int

Identifies the count of items after applying before/after filters and first/last/skip slicing.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

updatedAt DateTime

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

API:
Github GraphQL API

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

title String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

Identifies the pull request title.

titleHTML HTML

HTML [scalar]

A string containing HTML code.

API:
Github GraphQL API

Identifies the pull request title rendered to HTML.

totalCommentsCount Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

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

updatedAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

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

url URI

URI [scalar]

An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.

API:
Github GraphQL API

The HTTP URL for this pull request.

userContentEdits UserContentEditConnection

UserContentEditConnection [object]

A list of edits to content.

Attributes

A list of edges.

nodes UserContentEdit []

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

A list of edits to this content.

viewerCanApplySuggestion Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether or not the viewer can apply suggestion.

viewerCanClose Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates if the object can be closed by the viewer.

viewerCanDeleteHeadRef Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Check if the viewer can restore the deleted head ref.

viewerCanDisableAutoMerge Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether or not the viewer can disable auto-merge

viewerCanEditFiles Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Can the viewer edit files within this pull request.

viewerCanEnableAutoMerge Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether or not the viewer can enable auto-merge

viewerCanMergeAsAdmin Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

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

viewerCanReact Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Can user react to this subject

viewerCanReopen Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates if the object can be reopened by the viewer.

viewerCanSubscribe Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

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

viewerCanUpdate Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Check if the current viewer can update this object.

viewerCanUpdateBranch Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

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 CommentCannotUpdateReason []

CommentCannotUpdateReason [enum]

The possible errors that will prevent a user from updating a comment.

Possible values
ARCHIVED

Unable to create comment because repository is archived.

DENIED

You cannot update this comment

INSUFFICIENT_ACCESS

You must be the author or have write access to this repository to update this comment.

LOCKED

Unable to create comment because issue is locked.

LOGIN_REQUIRED

You must be logged in to update this comment.

MAINTENANCE

Repository is under maintenance.

VERIFIED_EMAIL_REQUIRED

At least one email address must be verified to update this comment.

API:
Github GraphQL API

Reasons why the current viewer can not update this comment.

viewerDidAuthor Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Did the viewer author this comment.

viewerLatestReview PullRequestReview

PullRequestReview [object]

A review object for a given pull request.

Implements
CommentDeletableMinimizableNodeReactableRepositoryNodeUpdatableUpdatableComment
Attributes
author Actor

The actor who authored the comment.

authorAssociation CommentAuthorAssociation

Author's association with the subject of the comment.

authorCanPushToRepository Boolean

Indicates whether the author of this review has push access to the repository.

body String

Identifies the pull request review body.

bodyHTML HTML

The body rendered to HTML.

bodyText String

The body of this review rendered as plain text.

A list of review comments for the current pull request review.

commit Commit

Identifies the commit associated with this pull request review.

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

Identifies the primary key from the database.

Deprecated: `databaseId` will be removed because it does not support 64-bit signed integer identifiers. Use `fullDatabaseId` instead. Removal on 2024-07-01 UTC.
editor Actor

The actor who edited the comment.

fullDatabaseId BigInt

Identifies the primary key from the database as a BigInt.

id ID

The Node ID of the PullRequestReview object

includesCreatedEdit Boolean

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

isMinimized Boolean

Returns whether or not a comment has been minimized.

lastEditedAt DateTime

The moment the editor made the last edit

minimizedReason String

Returns why the comment was minimized. One of abuse, off-topic,
outdated, resolved, duplicate and spam. Note that the case and
formatting of these values differs from the inputs to the MinimizeComment mutation.

onBehalfOf TeamConnection

A list of teams that this review was made on behalf of.

publishedAt DateTime

Identifies when the comment was published at.

pullRequest PullRequest

Identifies the pull request associated with this pull request review.

reactionGroups ReactionGroup []

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

reactions ReactionConnection

A list of Reactions left on the Issue.

repository Repository

The repository associated with this node.

resourcePath URI

The HTTP path permalink for this PullRequestReview.

Identifies the current state of the pull request review.

submittedAt DateTime

Identifies when the Pull Request Review was submitted

updatedAt DateTime

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

url URI

The HTTP URL permalink for this PullRequestReview.

userContentEdits UserContentEditConnection

A list of edits to this content.

viewerCanDelete Boolean

Check if the current viewer can delete this object.

viewerCanMinimize Boolean

Check if the current viewer can minimize this object.

viewerCanReact Boolean

Can user react to this subject

viewerCanUpdate Boolean

Check if the current viewer can update this object.

viewerCannotUpdateReasons CommentCannotUpdateReason []

Reasons why the current viewer can not update this comment.

viewerDidAuthor Boolean

Did the viewer author this comment.

API:
Github GraphQL API

The latest review given from the viewer.

viewerLatestReviewRequest ReviewRequest

ReviewRequest [object]

A request for a user to review a pull request.

Implements
Node
Attributes
asCodeOwner Boolean

Whether this request was created for a code owner

databaseId Int

Identifies the primary key from the database.

id ID

The Node ID of the ReviewRequest object

pullRequest PullRequest

Identifies the pull request associated with this review request.

requestedReviewer RequestedReviewer

The reviewer that is requested.

API:
Github GraphQL API

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

viewerMergeBodyText String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

The merge body text for the viewer and method.

viewerMergeHeadlineText String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

The merge headline text for the viewer and method.

viewerSubscription SubscriptionState

SubscriptionState [enum]

The possible states of a subscription.

Possible values
IGNORED

The User is never notified.

SUBSCRIBED

The User is notified of all conversations.

UNSUBSCRIBED

The User is only notified when participating or @mentioned.

API:
Github GraphQL API

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

API:
Github GraphQL API