Github API - Test Config

CreatedPullRequestContribution [object]

Represents the contribution a user made on GitHub by opening a pull request.

Implements
Contribution

Contribution [interface]

Represents a contribution a user made on GitHub, such as opening an issue.

Attributes
isRestricted Boolean

Whether this contribution is associated with a record you do not have access to. For
example, your own 'first issue' contribution may have been made on a repository you can no
longer access.

occurredAt DateTime

When this contribution was made.

resourcePath URI

The HTTP path for this contribution.

url URI

The HTTP URL for this contribution.

user User

The user who made this contribution.

API:
Github GraphQL API
Attributes
isRestricted Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Whether this contribution is associated with a record you do not have access to. For
example, your own 'first issue' contribution may have been made on a repository you can no
longer access.

occurredAt DateTime

DateTime [scalar]

An ISO-8601 encoded UTC date string.

API:
Github GraphQL API

When this contribution was made.

pullRequest PullRequest

PullRequest [object]

A repository pull request.

Implements
AssignableClosableCommentLabelableLockableNodeProjectV2OwnerReactableRepositoryNodeSubscribableUniformResourceLocatableUpdatableUpdatableComment
Attributes
activeLockReason LockReason

Reason that the conversation was locked.

additions Int

The number of additions in this pull request.

assignees UserConnection

A list of Users assigned to this object.

author Actor

The actor who authored the comment.

authorAssociation CommentAuthorAssociation

Author's association with the subject of the comment.

autoMergeRequest AutoMergeRequest

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

baseRef Ref

Identifies the base Ref associated with the pull request.

baseRefName String

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

baseRefOid GitObjectID

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

baseRepository Repository

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

body String

The body as Markdown.

bodyHTML HTML

The body rendered to HTML.

bodyText String

The body rendered to text.

canBeRebased Boolean

Whether or not the pull request is rebaseable.

changedFiles Int

The number of changed files in this pull request.

checksResourcePath URI

The HTTP path for the checks of this pull request.

checksUrl URI

The HTTP URL for the checks of this pull request.

closed Boolean

true if the pull request is closed

closedAt DateTime

Identifies the date and time when the object was closed.

closingIssuesReferences IssueConnection

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

A list of comments associated with the pull request.

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

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.
deletions Int

The number of deletions in this pull request.

editor Actor

The actor who edited this pull request's body.

Lists the files changed within this pull request.

fullDatabaseId BigInt

Identifies the primary key from the database as a BigInt.

headRef Ref

Identifies the head Ref associated with the pull request.

headRefName String

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

headRefOid GitObjectID

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

headRepository Repository

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

headRepositoryOwner RepositoryOwner

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

hovercard Hovercard

The hovercard information for this issue

id ID

The Node ID of the PullRequest object

includesCreatedEdit Boolean

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

isCrossRepository Boolean

The head and base repositories are different.

isDraft Boolean

Identifies if the pull request is a draft.

isInMergeQueue Boolean

Indicates whether the pull request is in a merge queue

isMergeQueueEnabled Boolean

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

isReadByViewer Boolean

Is this pull request read by the viewer

A list of labels associated with the object.

lastEditedAt DateTime

The moment the editor made the last edit

latestOpinionatedReviews PullRequestReviewConnection

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

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

locked Boolean

true if the pull request is locked

maintainerCanModify Boolean

Indicates whether maintainers can modify the pull request.

mergeCommit Commit

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

mergeQueue MergeQueue

The merge queue for the pull request's base branch

mergeQueueEntry MergeQueueEntry

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

mergeStateStatus MergeStateStatus

Detailed information about the current pull request merge state status.

mergeable MergeableState

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

merged Boolean

Whether or not the pull request was merged.

mergedAt DateTime

The date and time that the pull request was merged.

mergedBy Actor

The actor who merged the pull request.

milestone Milestone

Identifies the milestone associated with the pull request.

number Int

Identifies the pull request number.

participants UserConnection

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

permalink URI

The permalink to the pull request.

potentialMergeCommit Commit

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

List of project cards associated with this pull request.

List of project items associated with this pull request.

projectV2 ProjectV2

Find a project by number.

projectsV2 ProjectV2Connection

A list of projects under the owner.

publishedAt DateTime

Identifies when the comment was published at.

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 for this pull request.

revertResourcePath URI

The HTTP path for reverting this pull request.

revertUrl URI

The HTTP URL for reverting this pull request.

reviewDecision PullRequestReviewDecision

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

reviewRequests ReviewRequestConnection

A list of review requests associated with the pull request.

The list of all review threads for this pull request.

A list of reviews associated with the pull request.

Identifies the state of the pull request.

suggestedReviewers SuggestedReviewer []

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

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.

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

title String

Identifies the pull request title.

titleHTML HTML

Identifies the pull request title rendered to HTML.

totalCommentsCount Int

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

updatedAt DateTime

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

url URI

The HTTP URL for this pull request.

userContentEdits UserContentEditConnection

A list of edits to this content.

viewerCanApplySuggestion Boolean

Whether or not the viewer can apply suggestion.

viewerCanClose Boolean

Indicates if the object can be closed by the viewer.

viewerCanDeleteHeadRef Boolean

Check if the viewer can restore the deleted head ref.

viewerCanDisableAutoMerge Boolean

Whether or not the viewer can disable auto-merge

viewerCanEditFiles Boolean

Can the viewer edit files within this pull request.

viewerCanEnableAutoMerge Boolean

Whether or not the viewer can enable auto-merge

viewerCanMergeAsAdmin Boolean

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

viewerCanReact Boolean

Can user react to this subject

viewerCanReopen Boolean

Indicates if the object can be reopened by the viewer.

viewerCanSubscribe Boolean

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

viewerCanUpdate Boolean

Check if the current viewer can update this object.

viewerCanUpdateBranch Boolean

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

Reasons why the current viewer can not update this comment.

viewerDidAuthor Boolean

Did the viewer author this comment.

viewerLatestReview PullRequestReview

The latest review given from the viewer.

viewerLatestReviewRequest ReviewRequest

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

viewerMergeBodyText String

The merge body text for the viewer and method.

viewerMergeHeadlineText String

The merge headline text for the viewer and method.

viewerSubscription SubscriptionState

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

API:
Github GraphQL API

The pull request that was opened.

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 contribution.

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 contribution.

user User

User [object]

A user is an individual's account on GitHub that owns repositories and can make new content.

Implements
ActorNodePackageOwnerProfileOwnerProjectOwnerProjectV2OwnerProjectV2RecentRepositoryDiscussionAuthorRepositoryDiscussionCommentAuthorRepositoryOwnerSponsorableUniformResourceLocatable
Attributes
anyPinnableItems Boolean

Determine if this repository owner has any items that can be pinned to their profile.

avatarUrl URI

A URL pointing to the user's public avatar.

bio String

The user's public profile bio.

bioHTML HTML

The user's public profile bio as HTML.

canReceiveOrganizationEmailsWhenNotificationsRestricted Boolean

Could this user receive email notifications, if the organization had notification restrictions enabled?

commitComments CommitCommentConnection

A list of commit comments made by this user.

company String

The user's public profile company.

companyHTML HTML

The user's public profile company as HTML.

contributionsCollection ContributionsCollection

The collection of contributions this user has made to different repositories.

createdAt DateTime

Identifies the date and time when the object was created.

databaseId Int

Identifies the primary key from the database.

email String

The user's publicly visible profile email.

enterprises EnterpriseConnection

A list of enterprises that the user belongs to.

estimatedNextSponsorsPayoutInCents Int

The estimated next GitHub Sponsors payout for this user/organization in cents (USD).

followers FollowerConnection

A list of users the given user is followed by.

A list of users the given user is following.

gist Gist

Find gist by repo name.

gistComments GistCommentConnection

A list of gist comments made by this user.

A list of the Gists the user has created.

hasSponsorsListing Boolean

True if this user/organization has a GitHub Sponsors listing.

hovercard Hovercard

The hovercard information for this user in a given context

id ID

The Node ID of the User object

interactionAbility RepositoryInteractionAbility

The interaction ability settings for this user.

isBountyHunter Boolean

Whether or not this user is a participant in the GitHub Security Bug Bounty.

isCampusExpert Boolean

Whether or not this user is a participant in the GitHub Campus Experts Program.

isDeveloperProgramMember Boolean

Whether or not this user is a GitHub Developer Program member.

isEmployee Boolean

Whether or not this user is a GitHub employee.

isFollowingViewer Boolean

Whether or not this user is following the viewer. Inverse of viewerIsFollowing

isGitHubStar Boolean

Whether or not this user is a member of the GitHub Stars Program.

isHireable Boolean

Whether or not the user has marked themselves as for hire.

isSiteAdmin Boolean

Whether or not this user is a site administrator.

isSponsoredBy Boolean

Whether the given account is sponsoring this user/organization.

isSponsoringViewer Boolean

True if the viewer is sponsored by this user/organization.

isViewer Boolean

Whether or not this user is the viewing user.

issueComments IssueCommentConnection

A list of issue comments made by this user.

A list of issues associated with this user.

itemShowcase ProfileItemShowcase

Showcases a selection of repositories and gists that the profile owner has
either curated or that have been selected automatically based on popularity.

lifetimeReceivedSponsorshipValues SponsorAndLifetimeValueConnection

Calculate how much each sponsor has ever paid total to this maintainer via
GitHub Sponsors. Does not include sponsorships paid via Patreon.

A user-curated list of repositories

location String

The user's public profile location.

login String

The username used to login.

monthlyEstimatedSponsorsIncomeInCents Int

The estimated monthly GitHub Sponsors income for this user/organization in cents (USD).

name String

The user's public profile name.

organization Organization

Find an organization by its login that the user belongs to.

organizationVerifiedDomainEmails String []

Verified email addresses that match verified domains for a specified organization the user is a member of.

organizations OrganizationConnection

A list of organizations the user belongs to.

A list of packages under the owner.

pinnableItems PinnableItemConnection

A list of repositories and gists this profile owner can pin to their profile.

A list of repositories and gists this profile owner has pinned to their profile

pinnedItemsRemaining Int

Returns how many more items this profile owner can pin to their profile.

project Project

Find project by number.

projectV2 ProjectV2

Find a project by number.

A list of projects under the owner.

projectsResourcePath URI

The HTTP path listing user's projects

projectsUrl URI

The HTTP URL listing user's projects

projectsV2 ProjectV2Connection

A list of projects under the owner.

pronouns String

The user's profile pronouns

publicKeys PublicKeyConnection

A list of public keys associated with this user.

pullRequests PullRequestConnection

A list of pull requests associated with this user.

recentProjects ProjectV2Connection

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

repositories RepositoryConnection

A list of repositories that the user owns.

repositoriesContributedTo RepositoryConnection

A list of repositories that the user recently contributed to.

repository Repository

Find Repository.

repositoryDiscussionComments DiscussionCommentConnection

Discussion comments this user has authored.

repositoryDiscussions DiscussionConnection

Discussions this user has started.

resourcePath URI

The HTTP path for this user

savedReplies SavedReplyConnection

Replies this user has saved

socialAccounts SocialAccountConnection

The user's social media accounts, ordered as they appear on the user's profile.

sponsoring SponsorConnection

List of users and organizations this entity is sponsoring.

List of sponsors for this user or organization.

sponsorsActivities SponsorsActivityConnection

Events involving this sponsorable, such as new sponsorships.

sponsorsListing SponsorsListing

The GitHub Sponsors listing for this user or organization.

sponsorshipForViewerAsSponsor Sponsorship

The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor.

sponsorshipForViewerAsSponsorable Sponsorship

The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving.

sponsorshipNewsletters SponsorshipNewsletterConnection

List of sponsorship updates sent from this sponsorable to sponsors.

sponsorshipsAsMaintainer SponsorshipConnection

The sponsorships where this user or organization is the maintainer receiving the funds.

sponsorshipsAsSponsor SponsorshipConnection

The sponsorships where this user or organization is the funder.

starredRepositories StarredRepositoryConnection

Repositories the user has starred.

status UserStatus

The user's description of what they're currently doing.

suggestedListNames UserListSuggestion []

Suggested names for user lists

topRepositories RepositoryConnection

Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created

totalSponsorshipAmountAsSponsorInCents Int

The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has
spent on GitHub to fund sponsorships. Only returns a value when viewed by the
user themselves or by a user who can manage sponsorships for the requested organization.

twitterUsername String

The user's Twitter username.

updatedAt DateTime

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

url URI

The HTTP URL for this user

viewerCanChangePinnedItems Boolean

Can the viewer pin repositories and gists to the profile?

viewerCanCreateProjects Boolean

Can the current viewer create new projects on this owner.

viewerCanFollow Boolean

Whether or not the viewer is able to follow the user.

viewerCanSponsor Boolean

Whether or not the viewer is able to sponsor this user/organization.

viewerIsFollowing Boolean

Whether or not this user is followed by the viewer. Inverse of isFollowingViewer.

viewerIsSponsoring Boolean

True if the viewer is sponsoring this user/organization.

A list of repositories the given user is watching.

websiteUrl URI

A URL pointing to the user's public website/blog.

API:
Github GraphQL API

The user who made this contribution.

API:
Github GraphQL API