Commit 35de1ff
Changed files (30)
.github
workflows
src
all-badges
abc-commit
dead-commit
fuck-commit
mass-delete-commit
my-badges-contributor
revert-revert-commit
star-gazer
stars
time-of-commit
yeti
.github/workflows/check.yml
@@ -0,0 +1,11 @@
+name: Check
+
+on: [push, pull_request]
+
+jobs:
+ code-style:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - run: npm i
+ - run: npm run fmt:check
.github/workflows/release.yml
@@ -1,9 +1,9 @@
-name: release
+name: Release
on:
workflow_run:
- workflows: [ "test" ]
- branches: [ "master" ]
+ workflows: ['test']
+ branches: ['master']
types:
- completed
.github/workflows/test.yml
@@ -1,9 +1,9 @@
-name: test
+name: Test
on: [push, pull_request]
jobs:
- build:
+ test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
.github/schema.graphql
@@ -5,15 +5,14 @@ schema {
mutation: Mutation
}
-directive @requiredCapabilities(requiredCapabilities: [String!]) on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
+directive @requiredCapabilities(
+ requiredCapabilities: [String!]
+) on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
"Represents an object which can take actions on GitHub. Typically a User or Bot."
interface Actor {
"A URL pointing to the actor's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"The username of the actor."
login: String!
"The HTTP path for this actor."
@@ -37,11 +36,11 @@ interface Assignable {
"A list of Users assigned to this object."
assignees(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -119,11 +118,11 @@ interface Comment {
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -134,7 +133,6 @@ interface Comment {
"Represents a contribution a user made on GitHub, such as opening an issue."
interface Contribution {
"""
-
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.
@@ -147,7 +145,6 @@ interface Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -215,15 +212,15 @@ interface Labelable {
"A list of labels associated with the object."
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
): LabelConnection
}
@@ -240,15 +237,15 @@ interface MemberStatusable {
"Get the status messages members of this entity have set that are either public or visible only to the organization."
memberStatuses(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for user statuses returned from the connection."
- orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}
+ orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC }
): UserStatusConnection!
}
@@ -321,19 +318,19 @@ interface PackageOwner {
"A list of packages under the owner."
packages(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Find packages by their names."
- names: [String],
+ names: [String]
"Ordering of the returned packages."
- orderBy: PackageOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: PackageOrder = { field: CREATED_AT, direction: DESC }
"Filter registry package by type."
- packageType: PackageType,
+ packageType: PackageType
"Find packages in a repository by ID."
repositoryId: ID
): PackageConnection!
@@ -360,26 +357,26 @@ interface ProfileOwner {
"A list of repositories and gists this profile owner can pin to their profile."
pinnableItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinnable items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
"A list of repositories and gists this profile owner has pinned to their profile"
pinnedItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinned items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
@@ -395,24 +392,21 @@ interface ProfileOwner {
interface ProjectOwner {
id: ID!
"Find project by number."
- project(
- "The project number to find."
- number: Int!
- ): Project
+ project("The project number to find." number: Int!): Project
"A list of projects under the owner."
projects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for projects returned from the connection"
- orderBy: ProjectOrder,
+ orderBy: ProjectOrder
"Query to search projects by, currently only searching by name."
- search: String,
+ search: String
"A list of states to filter the projects by."
states: [ProjectState!]
): ProjectConnection!
@@ -462,22 +456,19 @@ interface ProjectV2ItemFieldValueCommon {
interface ProjectV2Owner {
id: ID!
"Find a project by number."
- projectV2(
- "The project number."
- number: Int!
- ): ProjectV2
+ projectV2("The project number." number: Int!): ProjectV2
"A list of projects under the owner."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for under the the owner."
query: String
): ProjectV2Connection!
@@ -488,11 +479,11 @@ interface ProjectV2Recent {
"Recent projects that this user has modified in the context of the owner."
recentProjects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2Connection!
@@ -508,15 +499,15 @@ interface Reactable {
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -541,19 +532,19 @@ interface RepositoryDiscussionAuthor {
"Discussions this user has started."
repositoryDiscussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions."
- answered: Boolean,
+ answered: Boolean
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for discussions returned from the connection."
- orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC }
"Filter discussions to only those in a specific repository."
- repositoryId: ID,
+ repositoryId: ID
"A list of states to filter the discussions by."
states: [DiscussionState!] = []
): DiscussionConnection!
@@ -564,15 +555,15 @@ interface RepositoryDiscussionCommentAuthor {
"Discussion comments this user has authored."
repositoryDiscussionComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter discussion comments to only those that were marked as the answer"
- onlyAnswers: Boolean = false,
+ onlyAnswers: Boolean = false
"Filter discussion comments to only those in a specific repository."
repositoryId: ID
): DiscussionCommentConnection!
@@ -633,10 +624,7 @@ interface RepositoryInfo {
"The HTTP path for this repository"
resourcePath: URI!
"A description of the repository, rendered to HTML without any links in it."
- shortDescriptionHTML(
- "How many characters to return."
- limit: Int = 200
- ): HTML!
+ shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML!
"Identifies the date and time when the object was last updated."
updatedAt: DateTime!
"The HTTP URL for this repository"
@@ -656,44 +644,41 @@ interface RepositoryNode {
"Represents an owner of a Repository."
interface RepositoryOwner {
"A URL pointing to the owner's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
id: ID!
"The username used to login."
login: String!
"A list of repositories that the user owns."
repositories(
"Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they are archived and not maintained"
- isArchived: Boolean,
+ isArchived: Boolean
"If non-null, filters repositories according to whether they are forks of another repository"
- isFork: Boolean,
+ isFork: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
"Find Repository."
repository(
"Follow repository renames. If disabled, a repository referenced by its old name will return an error."
- followRenames: Boolean = true,
+ followRenames: Boolean = true
"Name of Repository to find."
name: String!
): Repository
@@ -708,7 +693,7 @@ interface RequirableByPullRequest {
"Whether this is required to pass before merging for a specific pull request."
isRequired(
"The id of the pull request this is required for"
- pullRequestId: ID,
+ pullRequestId: ID
"The number of the pull request this is required for"
pullRequestNumber: Int
): Boolean!
@@ -721,10 +706,7 @@ interface Sponsorable {
"True if this user/organization has a GitHub Sponsors listing."
hasSponsorsListing: Boolean!
"Whether the given account is sponsoring this user/organization."
- isSponsoredBy(
- "The target account's login."
- accountLogin: String!
- ): Boolean!
+ isSponsoredBy("The target account's login." accountLogin: String!): Boolean!
"True if the viewer is sponsored by this user/organization."
isSponsoringViewer: Boolean!
"The estimated monthly GitHub Sponsors income for this user/organization in cents (USD)."
@@ -732,53 +714,53 @@ interface Sponsorable {
"List of users and organizations this entity is sponsoring."
sponsoring(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the users and organizations returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
): SponsorConnection!
"List of sponsors for this user or organization."
sponsors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsors returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC},
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
"If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see."
tierId: ID
): SponsorConnection!
"Events involving this sponsorable, such as new sponsorships."
sponsorsActivities(
"Filter activities to only the specified actions."
- actions: [SponsorsActivityAction!] = [],
+ actions: [SponsorsActivityAction!] = []
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship."
- includeAsSponsor: Boolean = false,
+ includeAsSponsor: Boolean = false
"Whether or not to include private activities in the result set. Defaults to including public and private activities."
- includePrivate: Boolean = true,
+ includePrivate: Boolean = true
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for activity returned from the connection."
- orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC},
+ orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC }
"Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given."
- period: SponsorsActivityPeriod = MONTH,
+ period: SponsorsActivityPeriod = MONTH
"Filter activities to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter activities to those that occurred before this time."
until: DateTime
): SponsorsActivityConnection!
@@ -797,56 +779,56 @@ interface Sponsorable {
"List of sponsorship updates sent from this sponsorable to sponsors."
sponsorshipNewsletters(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorship updates returned from the connection."
- orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC }
): SponsorshipNewsletterConnection!
"The sponsorships where this user or organization is the maintainer receiving the funds."
sponsorshipsAsMaintainer(
"Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether or not to include private sponsorships in the result set"
- includePrivate: Boolean = false,
+ includePrivate: Boolean = false
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"The sponsorships where this user or organization is the funder."
sponsorshipsAsSponsor(
"Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins."
- maintainerLogins: [String!],
+ maintainerLogins: [String!]
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"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."
totalSponsorshipAmountAsSponsorInCents(
"Filter payments to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter payments to those made to the users or organizations with the specified usernames."
- sponsorableLogins: [String!] = [],
+ sponsorableLogins: [String!] = []
"Filter payments to those that occurred before this time."
until: DateTime
): Int
@@ -860,20 +842,19 @@ interface Sponsorable {
interface Starrable {
id: ID!
"""
-
Returns a count of how many stargazers there are on this object
"""
stargazerCount: Int!
"A list of users who have starred this starrable."
stargazers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: StarOrder
): StargazerConnection!
@@ -968,13 +949,19 @@ union Claimable = Mannequin | User
union Closer = Commit | PullRequest
"Represents either a issue the viewer can access or a restricted contribution."
-union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution
+union CreatedIssueOrRestrictedContribution =
+ CreatedIssueContribution
+ | RestrictedContribution
"Represents either a pull request the viewer can access or a restricted contribution."
-union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution
+union CreatedPullRequestOrRestrictedContribution =
+ CreatedPullRequestContribution
+ | RestrictedContribution
"Represents either a repository the viewer can access or a restricted contribution."
-union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution
+union CreatedRepositoryOrRestrictedContribution =
+ CreatedRepositoryContribution
+ | RestrictedContribution
"Users and teams."
union DeploymentReviewer = Team | User
@@ -989,19 +976,132 @@ union IpAllowListOwner = App | Enterprise | Organization
union IssueOrPullRequest = Issue | PullRequest
"An item in an issue timeline"
-union IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent | DemilestonedEvent | IssueComment | LabeledEvent | LockedEvent | MilestonedEvent | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent
+union IssueTimelineItem =
+ AssignedEvent
+ | ClosedEvent
+ | Commit
+ | CrossReferencedEvent
+ | DemilestonedEvent
+ | IssueComment
+ | LabeledEvent
+ | LockedEvent
+ | MilestonedEvent
+ | ReferencedEvent
+ | RenamedTitleEvent
+ | ReopenedEvent
+ | SubscribedEvent
+ | TransferredEvent
+ | UnassignedEvent
+ | UnlabeledEvent
+ | UnlockedEvent
+ | UnsubscribedEvent
+ | UserBlockedEvent
"An item in an issue timeline"
-union IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DisconnectedEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent
+union IssueTimelineItems =
+ AddedToProjectEvent
+ | AssignedEvent
+ | ClosedEvent
+ | CommentDeletedEvent
+ | ConnectedEvent
+ | ConvertedNoteToIssueEvent
+ | ConvertedToDiscussionEvent
+ | CrossReferencedEvent
+ | DemilestonedEvent
+ | DisconnectedEvent
+ | IssueComment
+ | LabeledEvent
+ | LockedEvent
+ | MarkedAsDuplicateEvent
+ | MentionedEvent
+ | MilestonedEvent
+ | MovedColumnsInProjectEvent
+ | PinnedEvent
+ | ReferencedEvent
+ | RemovedFromProjectEvent
+ | RenamedTitleEvent
+ | ReopenedEvent
+ | SubscribedEvent
+ | TransferredEvent
+ | UnassignedEvent
+ | UnlabeledEvent
+ | UnlockedEvent
+ | UnmarkedAsDuplicateEvent
+ | UnpinnedEvent
+ | UnsubscribedEvent
+ | UserBlockedEvent
"Types that can be inside a Milestone."
union MilestoneItem = Issue | PullRequest
"Types of memberships that can be restored for an Organization member."
-union OrgRestoreMemberAuditEntryMembership = OrgRestoreMemberMembershipOrganizationAuditEntryData | OrgRestoreMemberMembershipRepositoryAuditEntryData | OrgRestoreMemberMembershipTeamAuditEntryData
+union OrgRestoreMemberAuditEntryMembership =
+ OrgRestoreMemberMembershipOrganizationAuditEntryData
+ | OrgRestoreMemberMembershipRepositoryAuditEntryData
+ | OrgRestoreMemberMembershipTeamAuditEntryData
"An audit entry in an organization audit log."
-union OrganizationAuditEntry = MembersCanDeleteReposClearAuditEntry | MembersCanDeleteReposDisableAuditEntry | MembersCanDeleteReposEnableAuditEntry | OauthApplicationCreateAuditEntry | OrgAddBillingManagerAuditEntry | OrgAddMemberAuditEntry | OrgBlockUserAuditEntry | OrgConfigDisableCollaboratorsOnlyAuditEntry | OrgConfigEnableCollaboratorsOnlyAuditEntry | OrgCreateAuditEntry | OrgDisableOauthAppRestrictionsAuditEntry | OrgDisableSamlAuditEntry | OrgDisableTwoFactorRequirementAuditEntry | OrgEnableOauthAppRestrictionsAuditEntry | OrgEnableSamlAuditEntry | OrgEnableTwoFactorRequirementAuditEntry | OrgInviteMemberAuditEntry | OrgInviteToBusinessAuditEntry | OrgOauthAppAccessApprovedAuditEntry | OrgOauthAppAccessBlockedAuditEntry | OrgOauthAppAccessDeniedAuditEntry | OrgOauthAppAccessRequestedAuditEntry | OrgOauthAppAccessUnblockedAuditEntry | OrgRemoveBillingManagerAuditEntry | OrgRemoveMemberAuditEntry | OrgRemoveOutsideCollaboratorAuditEntry | OrgRestoreMemberAuditEntry | OrgUnblockUserAuditEntry | OrgUpdateDefaultRepositoryPermissionAuditEntry | OrgUpdateMemberAuditEntry | OrgUpdateMemberRepositoryCreationPermissionAuditEntry | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry | PrivateRepositoryForkingDisableAuditEntry | PrivateRepositoryForkingEnableAuditEntry | RepoAccessAuditEntry | RepoAddMemberAuditEntry | RepoAddTopicAuditEntry | RepoArchivedAuditEntry | RepoChangeMergeSettingAuditEntry | RepoConfigDisableAnonymousGitAccessAuditEntry | RepoConfigDisableCollaboratorsOnlyAuditEntry | RepoConfigDisableContributorsOnlyAuditEntry | RepoConfigDisableSockpuppetDisallowedAuditEntry | RepoConfigEnableAnonymousGitAccessAuditEntry | RepoConfigEnableCollaboratorsOnlyAuditEntry | RepoConfigEnableContributorsOnlyAuditEntry | RepoConfigEnableSockpuppetDisallowedAuditEntry | RepoConfigLockAnonymousGitAccessAuditEntry | RepoConfigUnlockAnonymousGitAccessAuditEntry | RepoCreateAuditEntry | RepoDestroyAuditEntry | RepoRemoveMemberAuditEntry | RepoRemoveTopicAuditEntry | RepositoryVisibilityChangeDisableAuditEntry | RepositoryVisibilityChangeEnableAuditEntry | TeamAddMemberAuditEntry | TeamAddRepositoryAuditEntry | TeamChangeParentTeamAuditEntry | TeamRemoveMemberAuditEntry | TeamRemoveRepositoryAuditEntry
+union OrganizationAuditEntry =
+ MembersCanDeleteReposClearAuditEntry
+ | MembersCanDeleteReposDisableAuditEntry
+ | MembersCanDeleteReposEnableAuditEntry
+ | OauthApplicationCreateAuditEntry
+ | OrgAddBillingManagerAuditEntry
+ | OrgAddMemberAuditEntry
+ | OrgBlockUserAuditEntry
+ | OrgConfigDisableCollaboratorsOnlyAuditEntry
+ | OrgConfigEnableCollaboratorsOnlyAuditEntry
+ | OrgCreateAuditEntry
+ | OrgDisableOauthAppRestrictionsAuditEntry
+ | OrgDisableSamlAuditEntry
+ | OrgDisableTwoFactorRequirementAuditEntry
+ | OrgEnableOauthAppRestrictionsAuditEntry
+ | OrgEnableSamlAuditEntry
+ | OrgEnableTwoFactorRequirementAuditEntry
+ | OrgInviteMemberAuditEntry
+ | OrgInviteToBusinessAuditEntry
+ | OrgOauthAppAccessApprovedAuditEntry
+ | OrgOauthAppAccessBlockedAuditEntry
+ | OrgOauthAppAccessDeniedAuditEntry
+ | OrgOauthAppAccessRequestedAuditEntry
+ | OrgOauthAppAccessUnblockedAuditEntry
+ | OrgRemoveBillingManagerAuditEntry
+ | OrgRemoveMemberAuditEntry
+ | OrgRemoveOutsideCollaboratorAuditEntry
+ | OrgRestoreMemberAuditEntry
+ | OrgUnblockUserAuditEntry
+ | OrgUpdateDefaultRepositoryPermissionAuditEntry
+ | OrgUpdateMemberAuditEntry
+ | OrgUpdateMemberRepositoryCreationPermissionAuditEntry
+ | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry
+ | PrivateRepositoryForkingDisableAuditEntry
+ | PrivateRepositoryForkingEnableAuditEntry
+ | RepoAccessAuditEntry
+ | RepoAddMemberAuditEntry
+ | RepoAddTopicAuditEntry
+ | RepoArchivedAuditEntry
+ | RepoChangeMergeSettingAuditEntry
+ | RepoConfigDisableAnonymousGitAccessAuditEntry
+ | RepoConfigDisableCollaboratorsOnlyAuditEntry
+ | RepoConfigDisableContributorsOnlyAuditEntry
+ | RepoConfigDisableSockpuppetDisallowedAuditEntry
+ | RepoConfigEnableAnonymousGitAccessAuditEntry
+ | RepoConfigEnableCollaboratorsOnlyAuditEntry
+ | RepoConfigEnableContributorsOnlyAuditEntry
+ | RepoConfigEnableSockpuppetDisallowedAuditEntry
+ | RepoConfigLockAnonymousGitAccessAuditEntry
+ | RepoConfigUnlockAnonymousGitAccessAuditEntry
+ | RepoCreateAuditEntry
+ | RepoDestroyAuditEntry
+ | RepoRemoveMemberAuditEntry
+ | RepoRemoveTopicAuditEntry
+ | RepositoryVisibilityChangeDisableAuditEntry
+ | RepositoryVisibilityChangeEnableAuditEntry
+ | TeamAddMemberAuditEntry
+ | TeamAddRepositoryAuditEntry
+ | TeamChangeParentTeamAuditEntry
+ | TeamRemoveMemberAuditEntry
+ | TeamRemoveRepositoryAuditEntry
"Used for argument of CreateProjectV2 mutation."
union OrganizationOrUser = Organization | User
@@ -1019,19 +1119,124 @@ union ProjectCardItem = Issue | PullRequest
union ProjectV2Actor = Team | User
"Configurations for project fields."
-union ProjectV2FieldConfiguration = ProjectV2Field | ProjectV2IterationField | ProjectV2SingleSelectField
+union ProjectV2FieldConfiguration =
+ ProjectV2Field
+ | ProjectV2IterationField
+ | ProjectV2SingleSelectField
"Types that can be inside Project Items."
union ProjectV2ItemContent = DraftIssue | Issue | PullRequest
"Project field values"
-union ProjectV2ItemFieldValue = ProjectV2ItemFieldDateValue | ProjectV2ItemFieldIterationValue | ProjectV2ItemFieldLabelValue | ProjectV2ItemFieldMilestoneValue | ProjectV2ItemFieldNumberValue | ProjectV2ItemFieldPullRequestValue | ProjectV2ItemFieldRepositoryValue | ProjectV2ItemFieldReviewerValue | ProjectV2ItemFieldSingleSelectValue | ProjectV2ItemFieldTextValue | ProjectV2ItemFieldUserValue
+union ProjectV2ItemFieldValue =
+ ProjectV2ItemFieldDateValue
+ | ProjectV2ItemFieldIterationValue
+ | ProjectV2ItemFieldLabelValue
+ | ProjectV2ItemFieldMilestoneValue
+ | ProjectV2ItemFieldNumberValue
+ | ProjectV2ItemFieldPullRequestValue
+ | ProjectV2ItemFieldRepositoryValue
+ | ProjectV2ItemFieldReviewerValue
+ | ProjectV2ItemFieldSingleSelectValue
+ | ProjectV2ItemFieldTextValue
+ | ProjectV2ItemFieldUserValue
"An item in a pull request timeline"
-union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent
+union PullRequestTimelineItem =
+ AssignedEvent
+ | BaseRefDeletedEvent
+ | BaseRefForcePushedEvent
+ | ClosedEvent
+ | Commit
+ | CommitCommentThread
+ | CrossReferencedEvent
+ | DemilestonedEvent
+ | DeployedEvent
+ | DeploymentEnvironmentChangedEvent
+ | HeadRefDeletedEvent
+ | HeadRefForcePushedEvent
+ | HeadRefRestoredEvent
+ | IssueComment
+ | LabeledEvent
+ | LockedEvent
+ | MergedEvent
+ | MilestonedEvent
+ | PullRequestReview
+ | PullRequestReviewComment
+ | PullRequestReviewThread
+ | ReferencedEvent
+ | RenamedTitleEvent
+ | ReopenedEvent
+ | ReviewDismissedEvent
+ | ReviewRequestRemovedEvent
+ | ReviewRequestedEvent
+ | SubscribedEvent
+ | UnassignedEvent
+ | UnlabeledEvent
+ | UnlockedEvent
+ | UnsubscribedEvent
+ | UserBlockedEvent
"An item in a pull request timeline"
-union PullRequestTimelineItems = AddedToMergeQueueEvent | AddedToProjectEvent | AssignedEvent | AutoMergeDisabledEvent | AutoMergeEnabledEvent | AutoRebaseEnabledEvent | AutoSquashEnabledEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | ConvertedToDiscussionEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromMergeQueueEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent
+union PullRequestTimelineItems =
+ AddedToMergeQueueEvent
+ | AddedToProjectEvent
+ | AssignedEvent
+ | AutoMergeDisabledEvent
+ | AutoMergeEnabledEvent
+ | AutoRebaseEnabledEvent
+ | AutoSquashEnabledEvent
+ | AutomaticBaseChangeFailedEvent
+ | AutomaticBaseChangeSucceededEvent
+ | BaseRefChangedEvent
+ | BaseRefDeletedEvent
+ | BaseRefForcePushedEvent
+ | ClosedEvent
+ | CommentDeletedEvent
+ | ConnectedEvent
+ | ConvertToDraftEvent
+ | ConvertedNoteToIssueEvent
+ | ConvertedToDiscussionEvent
+ | CrossReferencedEvent
+ | DemilestonedEvent
+ | DeployedEvent
+ | DeploymentEnvironmentChangedEvent
+ | DisconnectedEvent
+ | HeadRefDeletedEvent
+ | HeadRefForcePushedEvent
+ | HeadRefRestoredEvent
+ | IssueComment
+ | LabeledEvent
+ | LockedEvent
+ | MarkedAsDuplicateEvent
+ | MentionedEvent
+ | MergedEvent
+ | MilestonedEvent
+ | MovedColumnsInProjectEvent
+ | PinnedEvent
+ | PullRequestCommit
+ | PullRequestCommitCommentThread
+ | PullRequestReview
+ | PullRequestReviewThread
+ | PullRequestRevisionMarker
+ | ReadyForReviewEvent
+ | ReferencedEvent
+ | RemovedFromMergeQueueEvent
+ | RemovedFromProjectEvent
+ | RenamedTitleEvent
+ | ReopenedEvent
+ | ReviewDismissedEvent
+ | ReviewRequestRemovedEvent
+ | ReviewRequestedEvent
+ | SubscribedEvent
+ | TransferredEvent
+ | UnassignedEvent
+ | UnlabeledEvent
+ | UnlockedEvent
+ | UnmarkedAsDuplicateEvent
+ | UnpinnedEvent
+ | UnsubscribedEvent
+ | UserBlockedEvent
"Types that can be an actor."
union PushAllowanceActor = App | Team | User
@@ -1052,13 +1257,30 @@ union RequestedReviewer = Bot | Mannequin | Team | User
union ReviewDismissalAllowanceActor = App | Team | User
"Types which can be parameters for `RepositoryRule` objects."
-union RuleParameters = BranchNamePatternParameters | CommitAuthorEmailPatternParameters | CommitMessagePatternParameters | CommitterEmailPatternParameters | PullRequestParameters | RequiredDeploymentsParameters | RequiredStatusChecksParameters | TagNamePatternParameters | UpdateParameters
+union RuleParameters =
+ BranchNamePatternParameters
+ | CommitAuthorEmailPatternParameters
+ | CommitMessagePatternParameters
+ | CommitterEmailPatternParameters
+ | PullRequestParameters
+ | RequiredDeploymentsParameters
+ | RequiredStatusChecksParameters
+ | TagNamePatternParameters
+ | UpdateParameters
"Types which can have `RepositoryRule` objects."
union RuleSource = Organization | Repository
"The results of a search."
-union SearchResultItem = App | Discussion | Issue | MarketplaceListing | Organization | PullRequest | Repository | User
+union SearchResultItem =
+ App
+ | Discussion
+ | Issue
+ | MarketplaceListing
+ | Organization
+ | PullRequest
+ | Repository
+ | User
"Entities that can sponsor others via GitHub Sponsors"
union Sponsor = Organization | User
@@ -1321,23 +1543,20 @@ type App implements Node {
"The IP addresses of the app."
ipAllowListEntries(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for IP allow list entries returned."
- orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}
+ orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC }
): IpAllowListEntryConnection!
"The hex color code, without the leading '#', for the logo background."
logoBackgroundColor: String!
"A URL pointing to the app's logo."
- logoUrl(
- "The size of the resulting image."
- size: Int
- ): URI!
+ logoUrl("The size of the resulting image." size: Int): URI!
"The name of the app."
name: String!
"A slug based on the name of the app for use in URLs."
@@ -1392,7 +1611,10 @@ type AssignedEvent implements Node {
createdAt: DateTime!
id: ID!
"Identifies the user who was assigned."
- user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")
+ user: User
+ @deprecated(
+ reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC."
+ )
}
"Represents a 'auto_merge_disabled' event on a given pull request."
@@ -1590,10 +1812,7 @@ type Blob implements GitObject & Node {
"A special type of user which takes actions on behalf of GitHub Apps."
type Bot implements Actor & Node & UniformResourceLocatable {
"A URL pointing to the GitHub App's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"Identifies the date and time when the object was created."
createdAt: DateTime!
"Identifies the primary key from the database."
@@ -1632,33 +1851,33 @@ type BranchProtectionRule implements Node {
"A list of conflicts matching branches protection rule and other branch protection rules"
branchProtectionRuleConflicts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): BranchProtectionRuleConflictConnection!
"A list of actors able to force push for this branch protection rule."
bypassForcePushAllowances(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): BypassForcePushAllowanceConnection!
"A list of actors able to bypass PRs for this branch protection rule."
bypassPullRequestAllowances(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): BypassPullRequestAllowanceConnection!
@@ -1678,13 +1897,13 @@ type BranchProtectionRule implements Node {
"Repository refs that are protected by this rule"
matchingRefs(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filters refs with query on name"
query: String
): RefConnection!
@@ -1693,11 +1912,11 @@ type BranchProtectionRule implements Node {
"A list push allowances for this branch protection rule."
pushAllowances(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PushAllowanceConnection!
@@ -1736,11 +1955,11 @@ type BranchProtectionRule implements Node {
"A list review dismissal allowances for this branch protection rule."
reviewDismissalAllowances(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ReviewDismissalAllowanceConnection!
@@ -1980,11 +2199,11 @@ type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatab
"The check run's annotations"
annotations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CheckAnnotationConnection
@@ -2006,7 +2225,7 @@ type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatab
"Whether this is required to pass before merging for a specific pull request."
isRequired(
"The id of the pull request this is required for"
- pullRequestId: ID,
+ pullRequestId: ID
"The number of the pull request this is required for"
pullRequestNumber: Int
): Boolean!
@@ -2027,13 +2246,13 @@ type CheckRun implements Node & RequirableByPullRequest & UniformResourceLocatab
"The check run's steps"
steps(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Step number"
number: Int
): CheckStepConnection
@@ -2124,13 +2343,13 @@ type CheckSuite implements Node {
"The check runs associated with a check suite."
checkRuns(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filters the check runs by this type."
- filterBy: CheckRunFilter,
+ filterBy: CheckRunFilter
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CheckRunConnection
@@ -2148,21 +2367,21 @@ type CheckSuite implements Node {
"A list of open pull requests matching the check suite."
matchingPullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection
@@ -2316,15 +2535,15 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"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"
associatedPullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests."
- orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC }
): PullRequestConnection
"Authorship details of the commit."
author: GitActor
@@ -2333,50 +2552,49 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"The datetime when this commit was authored."
authoredDate: DateTime!
"""
-
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.
"""
authors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): GitActorConnection!
"Fetches `git blame` information."
- blame(
- "The file whose Git blame information you want."
- path: String!
- ): Blame!
+ blame("The file whose Git blame information you want." path: String!): Blame!
"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."
- changedFiles: Int! @deprecated(reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC.")
+ changedFiles: Int!
+ @deprecated(
+ reason: "`changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC."
+ )
"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`."
changedFilesIfAvailable: Int
"The check suites associated with a commit."
checkSuites(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filters the check suites by this type."
- filterBy: CheckSuiteFilter,
+ filterBy: CheckSuiteFilter
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CheckSuiteConnection
"Comments made on the commit."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitCommentConnection!
@@ -2395,39 +2613,36 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"The deployments associated with a commit."
deployments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Environments to list deployments for"
- environments: [String!],
+ environments: [String!]
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for deployments returned from the connection."
- orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC }
): DeploymentConnection
"The tree entry representing the file located at the given path."
- file(
- "The path for the file"
- path: String!
- ): TreeEntry
+ file("The path for the file" path: String!): TreeEntry
"The linear commit history starting from (and including) this commit, in the same order as `git log`."
history(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"If non-null, filters history to only show commits with matching authorship."
- author: CommitAuthor,
+ author: CommitAuthor
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"If non-null, filters history to only show commits touching files under this path."
- path: String,
+ path: String
"Allows specifying a beginning time or date for fetching commits."
- since: GitTimestamp,
+ since: GitTimestamp
"Allows specifying an ending time or date for fetching commits."
until: GitTimestamp
): CommitHistoryConnection!
@@ -2449,16 +2664,19 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"The parents of a commit."
parents(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitConnection!
"The datetime when this commit was pushed."
- pushedDate: DateTime @deprecated(reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC.")
+ pushedDate: DateTime
+ @deprecated(
+ reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC."
+ )
"The Repository this commit belongs to"
repository: Repository!
"The HTTP path for this commit"
@@ -2472,16 +2690,15 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file."
submodules(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): SubmoduleConnection!
"""
-
Returns a URL to download a tarball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.
"""
@@ -2499,7 +2716,6 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl
"Identifies if the viewer is watching, not watching, or ignoring the subscribable entity."
viewerSubscription: SubscriptionState
"""
-
Returns a URL to download a zipball archive for a repository.
Note: For private repositories, these links are temporary and expire after five minutes.
"""
@@ -2560,15 +2776,15 @@ type CommitComment implements Comment & Deletable & Minimizable & Node & Reactab
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -2583,11 +2799,11 @@ type CommitComment implements Comment & Deletable & Minimizable & Node & Reactab
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -2630,11 +2846,11 @@ type CommitCommentThread implements Node & RepositoryNode {
"The comments that exist in this thread."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitCommentConnection!
@@ -2666,15 +2882,15 @@ type CommitContributionsByRepository {
"The commit contributions, each representing a day."
contributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for commit contributions returned from the connection."
- orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC}
+ orderBy: CommitContributionOrder = { field: OCCURRED_AT, direction: DESC }
): CreatedCommitContributionConnection!
"The repository in which the commits were made."
repository: Repository!
@@ -2739,11 +2955,11 @@ type Comparison implements Node {
"The commits which compose this comparison."
commits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ComparisonCommitConnection!
@@ -2853,7 +3069,6 @@ type ContributionsCollection {
"The years the user has been making contributions with the most recent year first."
contributionYears: [Int!]!
"""
-
Determine if this collection's time span ends in the current month.
"""
doesEndInCurrentMonth: Boolean!
@@ -2878,26 +3093,26 @@ type ContributionsCollection {
"A list of issues the user opened."
issueContributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Should the user's first issue ever be excluded from the result."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented issue be excluded from the result."
- excludePopular: Boolean = false,
+ excludePopular: Boolean = false
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedIssueContributionConnection!
"Issue contributions made by the user, grouped by repository."
issueContributionsByRepository(
"Should the user's first issue ever be excluded from the result."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented issue be excluded from the result."
- excludePopular: Boolean = false,
+ excludePopular: Boolean = false
"How many repositories should be included."
maxRepositories: Int = 25
): [IssueContributionsByRepository!]!
@@ -2906,25 +3121,21 @@ type ContributionsCollection {
"The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts."
latestRestrictedContributionDate: Date
"""
-
When this collection's time range does not include any activity from the user, use this
to get a different collection from an earlier time range that does have activity.
"""
mostRecentCollectionWithActivity: ContributionsCollection
"""
-
Returns a different contributions collection from an earlier time range than this one
that does not have any contributions.
"""
mostRecentCollectionWithoutActivity: ContributionsCollection
"""
-
The issue the user opened on GitHub that received the most comments in the specified
time frame.
"""
popularIssueContribution: CreatedIssueContribution
"""
-
The pull request the user opened on GitHub that received the most comments in the
specified time frame.
"""
@@ -2932,45 +3143,44 @@ type ContributionsCollection {
"Pull request contributions made by the user."
pullRequestContributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Should the user's first pull request ever be excluded from the result."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented pull request be excluded from the result."
- excludePopular: Boolean = false,
+ excludePopular: Boolean = false
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedPullRequestContributionConnection!
"Pull request contributions made by the user, grouped by repository."
pullRequestContributionsByRepository(
"Should the user's first pull request ever be excluded from the result."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented pull request be excluded from the result."
- excludePopular: Boolean = false,
+ excludePopular: Boolean = false
"How many repositories should be included."
maxRepositories: Int = 25
): [PullRequestContributionsByRepository!]!
"""
-
Pull request review contributions made by the user. Returns the most recently
submitted review for each PR reviewed by the user.
"""
pullRequestReviewContributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedPullRequestReviewContributionConnection!
"Pull request review contributions made by the user, grouped by repository."
pullRequestReviewContributionsByRepository(
@@ -2980,17 +3190,17 @@ type ContributionsCollection {
"A list of repositories owned by the user that the user created in this time range."
repositoryContributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Should the user's first repository ever be excluded from the result."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedRepositoryContributionConnection!
"A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts."
restrictedContributionsCount: Int!
@@ -3001,14 +3211,14 @@ type ContributionsCollection {
"How many issues the user opened."
totalIssueContributions(
"Should the user's first issue ever be excluded from this count."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented issue be excluded from this count."
excludePopular: Boolean = false
): Int!
"How many pull requests the user opened."
totalPullRequestContributions(
"Should the user's first pull request ever be excluded from this count."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented pull request be excluded from this count."
excludePopular: Boolean = false
): Int!
@@ -3019,7 +3229,7 @@ type ContributionsCollection {
"How many different repositories the user opened issues in."
totalRepositoriesWithContributedIssues(
"Should the user's first issue ever be excluded from this count."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented issue be excluded from this count."
excludePopular: Boolean = false
): Int!
@@ -3028,7 +3238,7 @@ type ContributionsCollection {
"How many different repositories the user opened pull requests in."
totalRepositoriesWithContributedPullRequests(
"Should the user's first pull request ever be excluded from this count."
- excludeFirst: Boolean = false,
+ excludeFirst: Boolean = false
"Should the user's most commented pull request be excluded from this count."
excludePopular: Boolean = false
): Int!
@@ -3299,7 +3509,10 @@ type CreateTeamDiscussionCommentPayload {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"The new comment."
- teamDiscussionComment: TeamDiscussionComment @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ teamDiscussionComment: TeamDiscussionComment
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
}
"Autogenerated return type of CreateTeamDiscussion"
@@ -3307,7 +3520,10 @@ type CreateTeamDiscussionPayload {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"The new discussion."
- teamDiscussion: TeamDiscussion @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ teamDiscussion: TeamDiscussion
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
}
"Represents the contribution a user made by committing to a repository."
@@ -3315,7 +3531,6 @@ type CreatedCommitContribution implements Contribution {
"How many commits were made on this day to this repository by the user."
commitCount: Int!
"""
-
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.
@@ -3330,7 +3545,6 @@ type CreatedCommitContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -3345,7 +3559,6 @@ type CreatedCommitContributionConnection {
"Information to aid in pagination."
pageInfo: PageInfo!
"""
-
Identifies the total count of commits across days and repositories in the connection.
"""
totalCount: Int!
@@ -3362,7 +3575,6 @@ type CreatedCommitContributionEdge {
"Represents the contribution a user made on GitHub by opening an issue."
type CreatedIssueContribution implements Contribution {
"""
-
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.
@@ -3377,7 +3589,6 @@ type CreatedIssueContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -3406,7 +3617,6 @@ type CreatedIssueContributionEdge {
"Represents the contribution a user made on GitHub by opening a pull request."
type CreatedPullRequestContribution implements Contribution {
"""
-
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.
@@ -3421,7 +3631,6 @@ type CreatedPullRequestContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -3450,7 +3659,6 @@ type CreatedPullRequestContributionEdge {
"Represents the contribution a user made by leaving a review on a pull request."
type CreatedPullRequestReviewContribution implements Contribution {
"""
-
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.
@@ -3469,7 +3677,6 @@ type CreatedPullRequestReviewContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -3498,7 +3705,6 @@ type CreatedPullRequestReviewContributionEdge {
"Represents the contribution a user made on GitHub by creating a repository."
type CreatedRepositoryContribution implements Contribution {
"""
-
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.
@@ -3513,7 +3719,6 @@ type CreatedRepositoryContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -3865,11 +4070,11 @@ type Deployment implements Node {
"A list of statuses associated with the deployment."
statuses(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentStatusConnection
@@ -3919,11 +4124,11 @@ type DeploymentProtectionRule {
"The teams or users that can review the deployment"
reviewers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentReviewerConnection!
@@ -3962,11 +4167,11 @@ type DeploymentRequest {
"The teams or users that can review the deployment"
reviewers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentReviewerConnection!
@@ -4005,11 +4210,11 @@ type DeploymentReview implements Node {
"The environments approved or rejected"
environments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): EnvironmentConnection!
@@ -4163,11 +4368,11 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable
"The replies to the discussion."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DiscussionCommentConnection!
@@ -4187,15 +4392,15 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable
"A list of labels associated with the object."
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
): LabelConnection
"The moment the editor made the last edit"
lastEditedAt: DateTime
@@ -4212,15 +4417,15 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -4241,11 +4446,11 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -4356,26 +4561,26 @@ type DiscussionComment implements Comment & Deletable & Minimizable & Node & Rea
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
"The threaded replies to this comment."
replies(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DiscussionCommentConnection!
@@ -4392,11 +4597,11 @@ type DiscussionComment implements Comment & Deletable & Minimizable & Node & Rea
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -4470,15 +4675,18 @@ type DiscussionPoll implements Node {
"The options for this poll."
options(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the options for the discussion poll."
- orderBy: DiscussionPollOptionOrder = {field: AUTHORED_ORDER, direction: ASC}
+ orderBy: DiscussionPollOptionOrder = {
+ field: AUTHORED_ORDER
+ direction: ASC
+ }
): DiscussionPollOptionConnection
"The question that is being asked by this poll."
question: String!
@@ -4544,11 +4752,11 @@ type DraftIssue implements Node {
"A list of users to assigned to this draft issue."
assignees(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -4566,22 +4774,22 @@ type DraftIssue implements Node {
"List of items linked with the draft issue (currently draft issue can be linked to only one item)."
projectV2Items(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2ItemConnection!
"Projects that link to this draft issue (currently draft issue can be linked to only one project)."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2Connection!
@@ -4618,10 +4826,7 @@ type Enterprise implements AnnouncementBanner & Node {
"Whether the announcement can be dismissed by the user"
announcementUserDismissible: Boolean
"A URL pointing to the enterprise's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"Enterprise billing informationย visible to enterprise billing managers."
billingInfo: EnterpriseBillingInfo
"Identifies the date and time when the object was created."
@@ -4638,23 +4843,23 @@ type Enterprise implements AnnouncementBanner & Node {
"A list of users who are members of this enterprise."
members(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Only return members within the selected GitHub Enterprise deployment"
- deployment: EnterpriseUserDeployment,
+ deployment: EnterpriseUserDeployment
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Only return members with this two-factor authentication status. Does not include members who only have an account on a GitHub Enterprise Server instance."
- hasTwoFactorEnabled: Boolean,
+ hasTwoFactorEnabled: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for members returned from the connection."
- orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC},
+ orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC }
"Only return members within the organizations with these logins"
- organizationLogins: [String!],
+ organizationLogins: [String!]
"The search string to look for."
- query: String,
+ query: String
"The role of the user in the enterprise organization or server."
role: EnterpriseUserAccountMembershipRole
): EnterpriseMemberConnection!
@@ -4663,17 +4868,17 @@ type Enterprise implements AnnouncementBanner & Node {
"A list of organizations that belong to this enterprise."
organizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations returned from the connection."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The search string to look for."
- query: String,
+ query: String
"The viewer's role in an organization."
viewerOrganizationRole: RoleInOrganization
): OrganizationConnection!
@@ -4825,17 +5030,17 @@ type EnterpriseIdentityProvider implements Node {
"ExternalIdentities provisioned by this identity provider."
externalIdentities(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter to external identities with the users login"
- login: String,
+ login: String
"Filter to external identities with valid org membership only"
- membersOnly: Boolean,
+ membersOnly: Boolean
"Filter to external identities with the users userName/NameID attribute"
userName: String
): ExternalIdentityConnection!
@@ -4915,15 +5120,15 @@ type EnterpriseOutsideCollaboratorEdge {
"The enterprise organization repositories this user is a member of."
repositories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories."
- orderBy: RepositoryOrder = {field: NAME, direction: ASC}
+ orderBy: RepositoryOrder = { field: NAME, direction: ASC }
): EnterpriseRepositoryInfoConnection!
}
@@ -4932,32 +5137,32 @@ type EnterpriseOwnerInfo {
"A list of all of the administrators for this enterprise."
admins(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Only return administrators with this two-factor authentication status."
- hasTwoFactorEnabled: Boolean,
+ hasTwoFactorEnabled: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for administrators returned from the connection."
- orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC},
+ orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC }
"Only return members within the organizations with these logins"
- organizationLogins: [String!],
+ organizationLogins: [String!]
"The search string to look for."
- query: String,
+ query: String
"The role to filter by."
role: EnterpriseAdministratorRole
): EnterpriseAdministratorConnection!
"A list of users in the enterprise who currently have two-factor authentication disabled."
affiliatedUsersWithTwoFactorDisabled(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -4968,15 +5173,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided private repository forking setting value."
allowPrivateRepositoryForkingSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -4987,60 +5192,63 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided base repository permission."
defaultRepositoryPermissionSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The permission to find organizations for."
value: DefaultRepositoryPermissionField!
): OrganizationConnection!
"A list of domains owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope."
domains(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Filter whether or not the domain is approved."
- isApproved: Boolean,
+ isApproved: Boolean
"Filter whether or not the domain is verified."
- isVerified: Boolean,
+ isVerified: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for verifiable domains returned."
- orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC}
+ orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC }
): VerifiableDomainConnection!
"Enterprise Server installations owned by the enterprise."
enterpriseServerInstallations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Whether or not to only return installations discovered via GitHub Connect."
- connectedOnly: Boolean = false,
+ connectedOnly: Boolean = false
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for Enterprise Server installations returned."
- orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC}
+ orderBy: EnterpriseServerInstallationOrder = {
+ field: HOST_NAME
+ direction: ASC
+ }
): EnterpriseServerInstallationConnection!
"A list of failed invitations in the enterprise."
failedInvitations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The search string to look for."
query: String
): EnterpriseFailedInvitationConnection!
@@ -5049,15 +5257,15 @@ type EnterpriseOwnerInfo {
"The IP addresses that are allowed to access resources owned by the enterprise. Visible to enterprise owners or enterprise owners' personal access tokens (classic) with admin:enterprise scope."
ipAllowListEntries(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for IP allow list entries returned."
- orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}
+ orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC }
): IpAllowListEntryConnection!
"The setting value for whether the enterprise has IP allow list configuration for installed GitHub Apps enabled."
ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue!
@@ -5070,15 +5278,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided can change repository visibility setting value."
membersCanChangeRepositoryVisibilitySettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5093,15 +5301,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided repository creation setting value."
membersCanCreateRepositoriesSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting to find organizations for."
value: OrganizationMembersCanCreateRepositoriesSettingValue!
): OrganizationConnection!
@@ -5110,15 +5318,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided members can delete issues setting value."
membersCanDeleteIssuesSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5127,15 +5335,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided members can delete repositories setting value."
membersCanDeleteRepositoriesSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5144,15 +5352,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided members can invite collaborators setting value."
membersCanInviteCollaboratorsSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5163,15 +5371,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided members can update protected branches setting value."
membersCanUpdateProtectedBranchesSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5180,15 +5388,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided members can view dependency insights setting value."
membersCanViewDependencyInsightsSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5201,87 +5409,90 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided organization projects setting value."
organizationProjectsSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
"A list of outside collaborators across the repositories in the enterprise."
outsideCollaborators(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Only return outside collaborators with this two-factor authentication status."
- hasTwoFactorEnabled: Boolean,
+ hasTwoFactorEnabled: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The login of one specific outside collaborator."
- login: String,
+ login: String
"Ordering options for outside collaborators returned from the connection."
- orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC},
+ orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC }
"Only return outside collaborators within the organizations with these logins"
- organizationLogins: [String!],
+ organizationLogins: [String!]
"The search string to look for."
- query: String,
+ query: String
"Only return outside collaborators on repositories with this visibility."
visibility: RepositoryVisibility
): EnterpriseOutsideCollaboratorConnection!
"A list of pending administrator invitations for the enterprise."
pendingAdminInvitations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pending enterprise administrator invitations returned from the connection."
- orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: EnterpriseAdministratorInvitationOrder = {
+ field: CREATED_AT
+ direction: DESC
+ }
"The search string to look for."
- query: String,
+ query: String
"The role to filter by."
role: EnterpriseAdministratorRole
): EnterpriseAdministratorInvitationConnection!
"A list of pending collaborator invitations across the repositories in the enterprise."
pendingCollaboratorInvitations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pending repository collaborator invitations returned from the connection."
- orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: RepositoryInvitationOrder = { field: CREATED_AT, direction: DESC }
"The search string to look for."
query: String
): RepositoryInvitationConnection!
"A list of pending member invitations for organizations in the enterprise."
pendingMemberInvitations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Only return invitations matching this invitation source"
- invitationSource: OrganizationInvitationSource,
+ invitationSource: OrganizationInvitationSource
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Only return invitations within the organizations with these logins"
- organizationLogins: [String!],
+ organizationLogins: [String!]
"The search string to look for."
query: String
): EnterprisePendingMemberInvitationConnection!
@@ -5290,15 +5501,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the provided repository projects setting value."
repositoryProjectsSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5307,45 +5518,45 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the SAML single sign-on setting value."
samlIdentityProviderSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: IdentityProviderConfigurationState!
): OrganizationConnection!
"A list of members with a support entitlement."
supportEntitlements(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for support entitlement users returned from the connection."
- orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC}
+ orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC }
): EnterpriseMemberConnection!
"The setting value for whether team discussions are enabled for organizations in this enterprise."
teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue!
"A list of enterprise organizations configured with the provided team discussions setting value."
teamDiscussionsSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5354,15 +5565,15 @@ type EnterpriseOwnerInfo {
"A list of enterprise organizations configured with the two-factor authentication setting value."
twoFactorRequiredSettingOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations with this setting."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The setting value to find organizations for."
value: Boolean!
): OrganizationConnection!
@@ -5437,28 +5648,31 @@ type EnterpriseServerInstallation implements Node {
"User accounts on this Enterprise Server installation."
userAccounts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for Enterprise Server user accounts returned from the connection."
- orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC}
+ orderBy: EnterpriseServerUserAccountOrder = { field: LOGIN, direction: ASC }
): EnterpriseServerUserAccountConnection!
"User accounts uploads for the Enterprise Server installation."
userAccountsUploads(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for Enterprise Server user accounts uploads returned from the connection."
- orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: EnterpriseServerUserAccountsUploadOrder = {
+ field: CREATED_AT
+ direction: DESC
+ }
): EnterpriseServerUserAccountsUploadConnection!
}
@@ -5511,15 +5725,18 @@ type EnterpriseServerUserAccount implements Node {
"User emails belonging to this user account."
emails(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for Enterprise Server user account emails returned from the connection."
- orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC}
+ orderBy: EnterpriseServerUserAccountEmailOrder = {
+ field: EMAIL
+ direction: ASC
+ }
): EnterpriseServerUserAccountEmailConnection!
"The Enterprise Server installation on which this user account exists."
enterpriseServerInstallation: EnterpriseServerInstallation!
@@ -5633,10 +5850,7 @@ type EnterpriseServerUserAccountsUploadEdge {
"An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations."
type EnterpriseUserAccount implements Actor & Node {
"A URL pointing to the enterprise user account's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"Identifies the date and time when the object was created."
createdAt: DateTime!
"The enterprise in which this user account exists."
@@ -5644,17 +5858,20 @@ type EnterpriseUserAccount implements Actor & Node {
"A list of Enterprise Server installations this user is a member of."
enterpriseInstallations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for installations returned from the connection."
- orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC},
+ orderBy: EnterpriseServerInstallationOrder = {
+ field: HOST_NAME
+ direction: ASC
+ }
"The search string to look for."
- query: String,
+ query: String
"The role of the user in the installation."
role: EnterpriseUserAccountMembershipRole
): EnterpriseServerInstallationMembershipConnection!
@@ -5666,17 +5883,17 @@ type EnterpriseUserAccount implements Actor & Node {
"A list of enterprise organizations this user is a member of."
organizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for organizations returned from the connection."
- orderBy: OrganizationOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrganizationOrder = { field: LOGIN, direction: ASC }
"The search string to look for."
- query: String,
+ query: String
"The role of the user in the enterprise organization."
role: EnterpriseUserAccountMembershipRole
): EnterpriseOrganizationMembershipConnection!
@@ -5700,11 +5917,11 @@ type Environment implements Node {
"The protection rules defined for this environment"
protectionRules(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentProtectionRuleConnection!
@@ -5868,11 +6085,11 @@ type Gist implements Node & Starrable & UniformResourceLocatable {
"A list of comments associated with the gist"
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): GistCommentConnection!
@@ -5883,20 +6100,20 @@ type Gist implements Node & Starrable & UniformResourceLocatable {
"The files in this gist."
files(
"The maximum number of files to return."
- limit: Int = 10,
+ limit: Int = 10
"The oid of the files to return"
oid: GitObjectID
): [GistFile]
"A list of forks associated with the gist"
forks(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for gists returned from the connection"
orderBy: GistOrder
): GistConnection!
@@ -5914,20 +6131,19 @@ type Gist implements Node & Starrable & UniformResourceLocatable {
"The HTML path to this resource."
resourcePath: URI!
"""
-
Returns a count of how many stargazers there are on this object
"""
stargazerCount: Int!
"A list of users who have starred this starrable."
stargazers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: StarOrder
): StargazerConnection!
@@ -5977,11 +6193,11 @@ type GistComment implements Comment & Deletable & Minimizable & Node & Updatable
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -6065,10 +6281,7 @@ type GistFile {
"Represents an actor in a Git commit (ie. an author or committer)."
type GitActor {
"A URL pointing to the author's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"The timestamp of the Git action (authoring or committing)."
date: GitTimestamp
"The email in the Git commit."
@@ -6144,11 +6357,11 @@ type GrantEnterpriseOrganizationsMigratorRolePayload {
"The organizations that had the migrator role applied to for the given user."
organizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): OrganizationConnection
@@ -6263,11 +6476,11 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of Users assigned to this object."
assignees(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -6292,13 +6505,13 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of comments associated with the Issue."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issue comments returned from the connection."
orderBy: IssueCommentOrder
): IssueCommentConnection!
@@ -6327,26 +6540,26 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of labels associated with the object."
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
): LabelConnection
"The moment the editor made the last edit"
lastEditedAt: DateTime
"Branches linked to this issue."
linkedBranches(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): LinkedBranchConnection!
@@ -6359,57 +6572,54 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of Users that are participating in the Issue conversation."
participants(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
"List of project cards associated with this issue."
projectCards(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"A list of archived states to filter the cards by"
- archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED],
+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectCardConnection!
"List of project items associated with this issue."
projectItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Include archived items."
- includeArchived: Boolean = true,
+ includeArchived: Boolean = true
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2ItemConnection!
"Find a project by number."
- projectV2(
- "The project number."
- number: Int!
- ): ProjectV2
+ projectV2("The project number." number: Int!): ProjectV2
"A list of projects under the owner."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for under the the owner."
query: String
): ProjectV2Connection!
@@ -6420,15 +6630,15 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -6443,30 +6653,33 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of events, comments, commits, etc. associated with the issue."
timeline(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows filtering timeline events by a `since` timestamp."
since: DateTime
- ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.")
+ ): IssueTimelineConnection!
+ @deprecated(
+ reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC."
+ )
"A list of events, comments, commits, etc. associated with the issue."
timelineItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Filter timeline items by type."
- itemTypes: [IssueTimelineItemsItemType!],
+ itemTypes: [IssueTimelineItemsItemType!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter timeline items by a `since` timestamp."
- since: DateTime,
+ since: DateTime
"Skips the first _n_ elements in the list."
skip: Int
): IssueTimelineItemsConnection!
@@ -6477,22 +6690,22 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of issues that track this issue"
trackedInIssues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): IssueConnection!
"A list of issues tracked inside the current issue"
trackedIssues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): IssueConnection!
@@ -6508,11 +6721,11 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable &
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -6576,7 +6789,6 @@ type IssueComment implements Comment & Deletable & Minimizable & Node & Reactabl
"Identifies when the comment was published at."
publishedAt: DateTime
"""
-
Returns the pull request associated with the comment, if this comment was made on a
pull request.
"""
@@ -6586,15 +6798,15 @@ type IssueComment implements Comment & Deletable & Minimizable & Node & Reactabl
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -6609,11 +6821,11 @@ type IssueComment implements Comment & Deletable & Minimizable & Node & Reactabl
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -6668,15 +6880,15 @@ type IssueContributionsByRepository {
"The issue contributions."
contributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedIssueContributionConnection!
"The repository in which the issues were opened."
repository: Repository!
@@ -6697,11 +6909,11 @@ type IssueTemplate {
"The suggested assignees."
assignees(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -6712,15 +6924,15 @@ type IssueTemplate {
"The suggested issue labels"
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
): LabelConnection
"The template name."
name: String!
@@ -6777,7 +6989,6 @@ type IssueTimelineItemsEdge {
"Represents a user signing up for a GitHub account."
type JoinedGitHubContribution implements Contribution {
"""
-
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.
@@ -6790,7 +7001,6 @@ type JoinedGitHubContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -6810,19 +7020,19 @@ type Label implements Node {
"A list of issues associated with this label."
issues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filtering options for issues returned from the connection."
- filterBy: IssueFilters,
+ filterBy: IssueFilters
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issues returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the issues by."
states: [IssueState!]
): IssueConnection!
@@ -6831,21 +7041,21 @@ type Label implements Node {
"A list of pull requests associated with this label."
pullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection!
@@ -7045,10 +7255,7 @@ type LockedEvent implements Node {
"A placeholder user for attribution of imported data on GitHub."
type Mannequin implements Actor & Node & UniformResourceLocatable {
"A URL pointing to the GitHub App's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"The user that has claimed the data attributed to this mannequin."
claimant: User
"Identifies the date and time when the object was created."
@@ -7257,7 +7464,6 @@ type MarketplaceListing implements Node {
"Can the current viewer edit this Marketplace listing."
viewerCanEdit: Boolean!
"""
-
Can the current viewer edit the primary and secondary category of this
Marketplace listing.
"""
@@ -7265,36 +7471,30 @@ type MarketplaceListing implements Node {
"Can the current viewer edit the plans for this Marketplace listing."
viewerCanEditPlans: Boolean!
"""
-
Can the current viewer return this Marketplace listing to draft state
so it becomes editable again.
"""
viewerCanRedraft: Boolean!
"""
-
Can the current viewer reject this Marketplace listing by returning it to
an editable draft state or rejecting it entirely.
"""
viewerCanReject: Boolean!
"""
-
Can the current viewer request this listing be reviewed for display in
the Marketplace as verified.
"""
viewerCanRequestApproval: Boolean!
"""
-
Indicates whether the current user has an active subscription to this Marketplace listing.
"""
viewerHasPurchased: Boolean!
"""
-
Indicates if the current user has purchased a subscription to this Marketplace listing
for all of the organizations the user owns.
"""
viewerHasPurchasedForAllOrganizations: Boolean!
"""
-
Does the current viewer role allow them to administer this Marketplace listing.
"""
viewerIsListingAdmin: Boolean!
@@ -7491,11 +7691,11 @@ type MergeQueue implements Node {
"The entries in the queue"
entries(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): MergeQueueEntryConnection
@@ -7625,19 +7825,19 @@ type Milestone implements Closable & Node & UniformResourceLocatable {
"A list of issues associated with the milestone."
issues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filtering options for issues returned from the connection."
- filterBy: IssueFilters,
+ filterBy: IssueFilters
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issues returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the issues by."
states: [IssueState!]
): IssueConnection!
@@ -7648,21 +7848,21 @@ type Milestone implements Closable & Node & UniformResourceLocatable {
"A list of pull requests associated with the milestone."
pullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection!
@@ -7850,15 +8050,9 @@ type Mutation {
input: AddReactionInput!
): AddReactionPayload
"Adds a star to a Starrable."
- addStar(
- "Parameters for AddStar"
- input: AddStarInput!
- ): AddStarPayload
+ addStar("Parameters for AddStar" input: AddStarInput!): AddStarPayload
"Add an upvote to a discussion or discussion comment."
- addUpvote(
- "Parameters for AddUpvote"
- input: AddUpvoteInput!
- ): AddUpvotePayload
+ addUpvote("Parameters for AddUpvote" input: AddUpvoteInput!): AddUpvotePayload
"Adds a verifiable domain to an owning account."
addVerifiableDomain(
"Parameters for AddVerifiableDomain"
@@ -7970,7 +8164,6 @@ type Mutation {
input: CreateCheckSuiteInput!
): CreateCheckSuitePayload
"""
-
Appends a commit to the given branch as the authenticated user.
This mutation creates a commit whose parent is the HEAD of the provided
@@ -8074,10 +8267,7 @@ type Mutation {
input: CreatePullRequestInput!
): CreatePullRequestPayload
"Create a new Git Ref."
- createRef(
- "Parameters for CreateRef"
- input: CreateRefInput!
- ): CreateRefPayload
+ createRef("Parameters for CreateRef" input: CreateRefInput!): CreateRefPayload
"Create a new repository."
createRepository(
"Parameters for CreateRepository"
@@ -8214,10 +8404,7 @@ type Mutation {
input: DeletePullRequestReviewCommentInput!
): DeletePullRequestReviewCommentPayload
"Delete a Git Ref."
- deleteRef(
- "Parameters for DeleteRef"
- input: DeleteRefInput!
- ): DeleteRefPayload
+ deleteRef("Parameters for DeleteRef" input: DeleteRefInput!): DeleteRefPayload
"Delete a repository ruleset"
deleteRepositoryRuleset(
"Parameters for DeleteRepositoryRuleset"
@@ -8359,10 +8546,7 @@ type Mutation {
input: MoveProjectColumnInput!
): MoveProjectColumnPayload
"Pin an issue to a repository"
- pinIssue(
- "Parameters for PinIssue"
- input: PinIssueInput!
- ): PinIssuePayload
+ pinIssue("Parameters for PinIssue" input: PinIssueInput!): PinIssuePayload
"Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile."
publishSponsorsTier(
"Parameters for PublishSponsorsTier"
@@ -8824,10 +9008,7 @@ type Mutation {
input: UpdatePullRequestReviewCommentInput!
): UpdatePullRequestReviewCommentPayload
"Update a Git Ref."
- updateRef(
- "Parameters for UpdateRef"
- input: UpdateRefInput!
- ): UpdateRefPayload
+ updateRef("Parameters for UpdateRef" input: UpdateRefInput!): UpdateRefPayload
"Update information about a repository."
updateRepository(
"Parameters for UpdateRepository"
@@ -8887,17 +9068,17 @@ type OIDCProvider implements Node {
"ExternalIdentities provisioned by this identity provider."
externalIdentities(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter to external identities with the users login"
- login: String,
+ login: String
"Filter to external identities with valid org membership only"
- membersOnly: Boolean,
+ membersOnly: Boolean
"Filter to external identities with the users userName/NameID attribute"
userName: String
): ExternalIdentityConnection!
@@ -10223,23 +10404,20 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"Audit log entries of the organization"
auditLog(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the returned audit log entries."
- orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: AuditLogOrder = { field: CREATED_AT, direction: DESC }
"The query string to filter audit entries"
query: String
): OrganizationAuditEntryConnection!
"A URL pointing to the organization's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"Identifies the date and time when the object was created."
createdAt: DateTime!
"Identifies the primary key from the database."
@@ -10251,36 +10429,36 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"A list of domains owned by the organization."
domains(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Filter by if the domain is approved."
- isApproved: Boolean,
+ isApproved: Boolean
"Filter by if the domain is verified."
- isVerified: Boolean,
+ isVerified: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for verifiable domains returned."
- orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC}
+ orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC }
): VerifiableDomainConnection
"The organization's public email."
email: String
"A list of owners of the organization's enterprise account."
enterpriseOwners(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for enterprise owners returned from the connection."
- orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC},
+ orderBy: OrgEnterpriseOwnerOrder = { field: LOGIN, direction: ASC }
"The organization role to filter by."
- organizationRole: RoleInOrganization,
+ organizationRole: RoleInOrganization
"The search string to look for."
query: String
): OrganizationEnterpriseOwnerConnection!
@@ -10296,23 +10474,20 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"The IP addresses that are allowed to access resources owned by the organization."
ipAllowListEntries(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for IP allow list entries returned."
- orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC}
+ orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC }
): IpAllowListEntryConnection!
"The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled."
ipAllowListForInstalledAppsEnabledSetting: IpAllowListForInstalledAppsEnabledSettingValue!
"Whether the given account is sponsoring this user/organization."
- isSponsoredBy(
- "The target account's login."
- accountLogin: String!
- ): Boolean!
+ isSponsoredBy("The target account's login." accountLogin: String!): Boolean!
"True if the viewer is sponsored by this user/organization."
isSponsoringViewer: Boolean!
"Whether the organization has verified its profile email and website."
@@ -10326,41 +10501,41 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"A list of all mannequins for this organization."
mannequins(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter mannequins by login."
- login: String,
+ login: String
"Ordering options for mannequins returned from the connection."
- orderBy: MannequinOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: MannequinOrder = { field: CREATED_AT, direction: ASC }
): MannequinConnection!
"Get the status messages members of this entity have set that are either public or visible only to the organization."
memberStatuses(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for user statuses returned from the connection."
- orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}
+ orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC }
): UserStatusConnection!
"Members can fork private repositories in this organization"
membersCanForkPrivateRepositories: Boolean!
"A list of users who are members of this organization."
membersWithRole(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): OrganizationMemberConnection!
@@ -10379,85 +10554,79 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"A list of packages under the owner."
packages(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Find packages by their names."
- names: [String],
+ names: [String]
"Ordering of the returned packages."
- orderBy: PackageOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: PackageOrder = { field: CREATED_AT, direction: DESC }
"Filter registry package by type."
- packageType: PackageType,
+ packageType: PackageType
"Find packages in a repository by ID."
repositoryId: ID
): PackageConnection!
"A list of users who have been invited to join this organization."
pendingMembers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
"A list of repositories and gists this profile owner can pin to their profile."
pinnableItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinnable items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
"A list of repositories and gists this profile owner has pinned to their profile"
pinnedItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinned items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
"Returns how many more items this profile owner can pin to their profile."
pinnedItemsRemaining: Int!
"Find project by number."
- project(
- "The project number to find."
- number: Int!
- ): Project
+ project("The project number to find." number: Int!): Project
"Find a project by number."
- projectV2(
- "The project number."
- number: Int!
- ): ProjectV2
+ projectV2("The project number." number: Int!): ProjectV2
"A list of projects under the owner."
projects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for projects returned from the connection"
- orderBy: ProjectOrder,
+ orderBy: ProjectOrder
"Query to search projects by, currently only searching by name."
- search: String,
+ search: String
"A list of states to filter the projects by."
states: [ProjectState!]
): ProjectConnection!
@@ -10468,111 +10637,111 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"A list of projects under the owner."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for under the the owner."
query: String
): ProjectV2Connection!
"Recent projects that this user has modified in the context of the owner."
recentProjects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2Connection!
"A list of repositories that the user owns."
repositories(
"Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they are archived and not maintained"
- isArchived: Boolean,
+ isArchived: Boolean
"If non-null, filters repositories according to whether they are forks of another repository"
- isFork: Boolean,
+ isFork: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
"Find Repository."
repository(
"Follow repository renames. If disabled, a repository referenced by its old name will return an error."
- followRenames: Boolean = true,
+ followRenames: Boolean = true
"Name of Repository to find."
name: String!
): Repository
"Discussion comments this user has authored."
repositoryDiscussionComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter discussion comments to only those that were marked as the answer"
- onlyAnswers: Boolean = false,
+ onlyAnswers: Boolean = false
"Filter discussion comments to only those in a specific repository."
repositoryId: ID
): DiscussionCommentConnection!
"Discussions this user has started."
repositoryDiscussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions."
- answered: Boolean,
+ answered: Boolean
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for discussions returned from the connection."
- orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC }
"Filter discussions to only those in a specific repository."
- repositoryId: ID,
+ repositoryId: ID
"A list of states to filter the discussions by."
states: [DiscussionState!] = []
): DiscussionConnection!
"A list of all repository migrations for this organization."
repositoryMigrations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repository migrations returned."
- orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC},
+ orderBy: RepositoryMigrationOrder = { field: CREATED_AT, direction: ASC }
"Filter repository migrations by repository name."
- repositoryName: String,
+ repositoryName: String
"Filter repository migrations by state."
state: MigrationState
): RepositoryMigrationConnection!
@@ -10588,13 +10757,13 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"A list of rulesets for this organization."
rulesets(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Return rulesets configured at higher levels that apply to this organization"
- includeParents: Boolean = true,
+ includeParents: Boolean = true
"Returns the last _n_ elements from the list."
last: Int
): RepositoryRulesetConnection
@@ -10603,53 +10772,53 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"List of users and organizations this entity is sponsoring."
sponsoring(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the users and organizations returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
): SponsorConnection!
"List of sponsors for this user or organization."
sponsors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsors returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC},
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
"If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see."
tierId: ID
): SponsorConnection!
"Events involving this sponsorable, such as new sponsorships."
sponsorsActivities(
"Filter activities to only the specified actions."
- actions: [SponsorsActivityAction!] = [],
+ actions: [SponsorsActivityAction!] = []
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship."
- includeAsSponsor: Boolean = false,
+ includeAsSponsor: Boolean = false
"Whether or not to include private activities in the result set. Defaults to including public and private activities."
- includePrivate: Boolean = true,
+ includePrivate: Boolean = true
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for activity returned from the connection."
- orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC},
+ orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC }
"Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given."
- period: SponsorsActivityPeriod = MONTH,
+ period: SponsorsActivityPeriod = MONTH
"Filter activities to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter activities to those that occurred before this time."
until: DateTime
): SponsorsActivityConnection!
@@ -10668,79 +10837,76 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"List of sponsorship updates sent from this sponsorable to sponsors."
sponsorshipNewsletters(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorship updates returned from the connection."
- orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC }
): SponsorshipNewsletterConnection!
"The sponsorships where this user or organization is the maintainer receiving the funds."
sponsorshipsAsMaintainer(
"Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether or not to include private sponsorships in the result set"
- includePrivate: Boolean = false,
+ includePrivate: Boolean = false
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"The sponsorships where this user or organization is the funder."
sponsorshipsAsSponsor(
"Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins."
- maintainerLogins: [String!],
+ maintainerLogins: [String!]
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"Find an organization's team by its slug."
- team(
- "The name or slug of the team to find."
- slug: String!
- ): Team
+ team("The name or slug of the team to find." slug: String!): Team
"A list of teams in this organization."
teams(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"If true, filters teams that are mapped to an LDAP Group (Enterprise only)"
- ldapMapped: Boolean,
+ ldapMapped: Boolean
"If non-null, filters teams according to notification setting"
- notificationSetting: TeamNotificationSetting,
+ notificationSetting: TeamNotificationSetting
"Ordering options for teams returned from the connection"
- orderBy: TeamOrder,
+ orderBy: TeamOrder
"If non-null, filters teams according to privacy"
- privacy: TeamPrivacy,
+ privacy: TeamPrivacy
"If non-null, filters teams with query on team name and team slug"
- query: String,
+ query: String
"If non-null, filters teams according to whether the viewer is an admin or member on team"
- role: TeamRole,
+ role: TeamRole
"If true, restrict to only root teams"
- rootTeamsOnly: Boolean = false,
+ rootTeamsOnly: Boolean = false
"User logins to filter by"
userLogins: [String!]
): TeamConnection!
@@ -10751,9 +10917,9 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod
"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."
totalSponsorshipAmountAsSponsorInCents(
"Filter payments to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter payments to those made to the users or organizations with the specified usernames."
- sponsorableLogins: [String!] = [],
+ sponsorableLogins: [String!] = []
"Filter payments to those that occurred before this time."
until: DateTime
): Int
@@ -10856,17 +11022,17 @@ type OrganizationIdentityProvider implements Node {
"External Identities provisioned by this Identity Provider"
externalIdentities(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter to external identities with the users login"
- login: String,
+ login: String
"Filter to external identities with valid org membership only"
- membersOnly: Boolean,
+ membersOnly: Boolean
"Filter to external identities with the users userName/NameID attribute"
userName: String
): ExternalIdentityConnection!
@@ -10980,11 +11146,11 @@ type OrganizationTeamsHovercardContext implements HovercardContext {
"Teams in this organization the user is a member of that are relevant"
relevantTeams(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): TeamConnection!
@@ -11005,13 +11171,13 @@ type OrganizationsHovercardContext implements HovercardContext {
"Organizations this user is a member of that are relevant"
relevantOrganizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the User's organizations."
orderBy: OrganizationOrder
): OrganizationConnection!
@@ -11033,22 +11199,19 @@ type Package implements Node {
"Statistics about package activity."
statistics: PackageStatistics
"Find package version by version string."
- version(
- "The package version."
- version: String!
- ): PackageVersion
+ version("The package version." version: String!): PackageVersion
"list of versions for this package"
versions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering of the returned packages."
- orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: PackageVersionOrder = { field: CREATED_AT, direction: DESC }
): PackageVersionConnection!
}
@@ -11133,15 +11296,15 @@ type PackageVersion implements Node {
"List of files associated with this package version"
files(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering of the returned package files."
- orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: PackageFileOrder = { field: CREATED_AT, direction: ASC }
): PackageFileConnection!
id: ID!
"The package associated with this version."
@@ -11440,11 +11603,11 @@ type ProfileItemShowcase {
"The repositories and gists in the showcase. If the profile owner has any pinned items, those will be returned. Otherwise, the profile owner's popular repositories will be returned."
items(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PinnableItemConnection!
@@ -11463,11 +11626,11 @@ type Project implements Closable & Node & Updatable {
"List of columns in the project"
columns(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectColumnConnection!
@@ -11487,13 +11650,13 @@ type Project implements Closable & Node & Updatable {
"List of pending cards in this project"
pendingCards(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"A list of archived states to filter the cards by"
- archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED],
+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectCardConnection!
@@ -11518,7 +11681,6 @@ type Project implements Closable & Node & Updatable {
"A card in a project."
type ProjectCard implements Node {
"""
-
The project column this card is associated under. A card may only belong to one
project column at a time. The column field will be null if the card is created
in a pending state and has yet to be associated with a column. Once cards are
@@ -11575,13 +11737,13 @@ type ProjectColumn implements Node {
"List of cards in the column"
cards(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"A list of archived states to filter the cards by"
- archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED],
+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectCardConnection!
@@ -11675,36 +11837,33 @@ type ProjectV2 implements Closable & Node & Updatable {
"Identifies the primary key from the database."
databaseId: Int
"A field of the project"
- field(
- "The name of the field"
- name: String!
- ): ProjectV2FieldConfiguration
+ field("The name of the field" name: String!): ProjectV2FieldConfiguration
"List of fields and their constraints in the project"
fields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for project v2 fields returned from the connection"
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
): ProjectV2FieldConfigurationConnection!
id: ID!
"List of items in the project"
items(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for project v2 items returned from the connection"
- orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2ItemOrder = { field: POSITION, direction: ASC }
): ProjectV2ItemConnection!
"The project's number."
number: Int!
@@ -11717,15 +11876,15 @@ type ProjectV2 implements Closable & Node & Updatable {
"The repositories the project is linked to."
repositories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: RepositoryOrder = { field: CREATED_AT, direction: DESC }
): RepositoryConnection!
"The HTTP path for this project"
resourcePath: URI!
@@ -11734,15 +11893,15 @@ type ProjectV2 implements Closable & Node & Updatable {
"The teams the project is linked to."
teams(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for teams returned from this connection."
- orderBy: TeamOrder = {field: NAME, direction: ASC}
+ orderBy: TeamOrder = { field: NAME, direction: ASC }
): TeamConnection!
"Returns true if this project is a template."
template: Boolean!
@@ -11766,15 +11925,15 @@ type ProjectV2 implements Closable & Node & Updatable {
"List of views in the project"
views(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for project v2 views returned from the connection"
- orderBy: ProjectV2ViewOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2ViewOrder = { field: POSITION, direction: ASC }
): ProjectV2ViewConnection!
"A workflow of the project"
workflow(
@@ -11784,15 +11943,15 @@ type ProjectV2 implements Closable & Node & Updatable {
"List of the workflows in the project"
workflows(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for project v2 workflows returned from the connection"
- orderBy: ProjectV2WorkflowOrder = {field: NAME, direction: ASC}
+ orderBy: ProjectV2WorkflowOrder = { field: NAME, direction: ASC }
): ProjectV2WorkflowConnection!
}
@@ -11911,15 +12070,15 @@ type ProjectV2Item implements Node {
"The field values that are set on the item."
fieldValues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for project v2 item field values returned from the connection"
- orderBy: ProjectV2ItemFieldValueOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2ItemFieldValueOrder = { field: POSITION, direction: ASC }
): ProjectV2ItemFieldValueConnection!
id: ID!
"Whether the item is archived."
@@ -12005,11 +12164,11 @@ type ProjectV2ItemFieldLabelValue {
"Labels value of a field"
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): LabelConnection
@@ -12049,15 +12208,15 @@ type ProjectV2ItemFieldPullRequestValue {
"The pull requests for this field"
pullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests."
- orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC }
): PullRequestConnection
}
@@ -12076,11 +12235,11 @@ type ProjectV2ItemFieldReviewerValue {
"The reviewers for this field."
reviewers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): RequestedReviewerConnection
@@ -12141,11 +12300,11 @@ type ProjectV2ItemFieldUserValue {
"The users for this field"
users(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection
@@ -12319,43 +12478,46 @@ type ProjectV2View implements Node {
"The view's visible fields."
fields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
): ProjectV2FieldConfigurationConnection
"The project view's filter."
filter: String
"The view's group-by field."
groupBy(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
- ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.")
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
+ ): ProjectV2FieldConnection
+ @deprecated(
+ reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."
+ )
"The view's group-by field."
groupByFields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
): ProjectV2FieldConfigurationConnection
id: ID!
"The project view's layout."
@@ -12369,22 +12531,25 @@ type ProjectV2View implements Node {
"The view's sort-by config."
sortBy(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
- ): ProjectV2SortByConnection @deprecated(reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.")
+ ): ProjectV2SortByConnection
+ @deprecated(
+ reason: "The `ProjectV2View#sort_by` API is deprecated in favour of the more capable `ProjectV2View#sort_by_fields` API. Check out the `ProjectV2View#sort_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."
+ )
"The view's sort-by config."
sortByFields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2SortByFieldConnection
@@ -12393,42 +12558,48 @@ type ProjectV2View implements Node {
"The view's vertical-group-by field."
verticalGroupBy(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
- ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC.")
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
+ ): ProjectV2FieldConnection
+ @deprecated(
+ reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC."
+ )
"The view's vertical-group-by field."
verticalGroupByFields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
): ProjectV2FieldConfigurationConnection
"The view's visible fields."
visibleFields(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the project v2 fields returned from the connection."
- orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC}
- ): ProjectV2FieldConnection @deprecated(reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC.")
+ orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC }
+ ): ProjectV2FieldConnection
+ @deprecated(
+ reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC."
+ )
}
"The connection type for ProjectV2View."
@@ -12544,11 +12715,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of Users assigned to this object."
assignees(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -12585,39 +12756,39 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"List of issues that were may be closed by this pull request"
closingIssuesReferences(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issues returned from the connection"
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"Return only manually linked Issues"
userLinkedOnly: Boolean = false
): IssueConnection
"A list of comments associated with the pull request."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issue comments returned from the connection."
orderBy: IssueCommentOrder
): IssueCommentConnection!
"A list of commits present in this pull request's head branch not present in the base branch."
commits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PullRequestCommitConnection!
@@ -12634,11 +12805,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"Lists the files changed within this pull request."
files(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PullRequestChangedFileConnection
@@ -12669,39 +12840,39 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of labels associated with the object."
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
): LabelConnection
"The moment the editor made the last edit"
lastEditedAt: DateTime
"A list of latest reviews per user associated with the pull request."
latestOpinionatedReviews(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Only return reviews from user who have write access to the repository"
writersOnly: Boolean = false
): PullRequestReviewConnection
"A list of latest reviews per user associated with the pull request that are not also pending review."
latestReviews(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PullRequestReviewConnection
@@ -12728,11 +12899,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of Users that are participating in the Pull Request conversation."
participants(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -12743,46 +12914,43 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"List of project cards associated with this pull request."
projectCards(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"A list of archived states to filter the cards by"
- archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED],
+ archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED]
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectCardConnection!
"List of project items associated with this pull request."
projectItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Include archived items."
- includeArchived: Boolean = true,
+ includeArchived: Boolean = true
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2ItemConnection!
"Find a project by number."
- projectV2(
- "The project number."
- number: Int!
- ): ProjectV2
+ projectV2("The project number." number: Int!): ProjectV2
"A list of projects under the owner."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for under the the owner."
query: String
): ProjectV2Connection!
@@ -12793,15 +12961,15 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -12818,37 +12986,37 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of review requests associated with the pull request."
reviewRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ReviewRequestConnection
"The list of all review threads for this pull request."
reviewThreads(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PullRequestReviewThreadConnection!
"A list of reviews associated with the pull request."
reviews(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Filter by author of the review."
- author: String,
+ author: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"A list of states to filter the reviews."
states: [PullRequestReviewState!]
): PullRequestReviewConnection
@@ -12859,30 +13027,33 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of events, comments, commits, etc. associated with the pull request."
timeline(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows filtering timeline events by a `since` timestamp."
since: DateTime
- ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.")
+ ): PullRequestTimelineConnection!
+ @deprecated(
+ reason: "`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."
timelineItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Filter timeline items by type."
- itemTypes: [PullRequestTimelineItemsItemType!],
+ itemTypes: [PullRequestTimelineItemsItemType!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter timeline items by a `since` timestamp."
- since: DateTime,
+ since: DateTime
"Skips the first _n_ elements in the list."
skip: Int
): PullRequestTimelineItemsConnection!
@@ -12899,11 +13070,11 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -12930,7 +13101,6 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab
"Check if the current viewer can update this object."
viewerCanUpdate: 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.
"""
@@ -13009,11 +13179,11 @@ type PullRequestCommitCommentThread implements Node & RepositoryNode {
"The comments that exist in this thread."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitCommentConnection!
@@ -13067,15 +13237,15 @@ type PullRequestContributionsByRepository {
"The pull request contributions."
contributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedPullRequestContributionConnection!
"The repository in which the pull requests were opened."
repository: Repository!
@@ -13120,11 +13290,11 @@ type PullRequestReview implements Comment & Deletable & Node & Reactable & Repos
"A list of review comments for the current pull request review."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PullRequestReviewCommentConnection!
@@ -13146,11 +13316,11 @@ type PullRequestReview implements Comment & Deletable & Node & Reactable & Repos
"A list of teams that this review was made on behalf of."
onBehalfOf(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): TeamConnection!
@@ -13163,15 +13333,15 @@ type PullRequestReview implements Comment & Deletable & Node & Reactable & Repos
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -13190,11 +13360,11 @@ type PullRequestReview implements Comment & Deletable & Node & Reactable & Repos
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -13252,7 +13422,10 @@ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Nod
"The end line number on the file to which the comment applied when it was first created"
originalLine: Int
"The original line index in the diff to which the comment applies."
- originalPosition: Int! @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC.")
+ originalPosition: Int!
+ @deprecated(
+ reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC."
+ )
"The start line number on the file to which the comment applied when it was first created"
originalStartLine: Int
"Identifies when the comment body is outdated"
@@ -13260,7 +13433,10 @@ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Nod
"The path to which the comment applies."
path: String!
"The line index in the diff to which the comment applies."
- position: Int @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC.")
+ position: Int
+ @deprecated(
+ reason: "We are phasing out diff-relative positioning for PR comments Use the `line` and `startLine` fields instead, which are file line numbers instead of diff line numbers Removal on 2023-10-01 UTC."
+ )
"Identifies when the comment was published at."
publishedAt: DateTime
"The pull request associated with this review comment."
@@ -13272,15 +13448,15 @@ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Nod
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
@@ -13303,11 +13479,11 @@ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Nod
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -13362,15 +13538,15 @@ type PullRequestReviewContributionsByRepository {
"The pull request review contributions."
contributions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for contributions returned from the connection."
- orderBy: ContributionOrder = {direction: DESC}
+ orderBy: ContributionOrder = { direction: DESC }
): CreatedPullRequestReviewContributionConnection!
"The repository in which the pull request reviews were made."
repository: Repository!
@@ -13389,13 +13565,13 @@ type PullRequestReviewThread implements Node {
"A list of pull request comments associated with the thread."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Skips the first _n_ elements in the list."
skip: Int
): PullRequestReviewCommentConnection!
@@ -13481,13 +13657,13 @@ type PullRequestThread implements Node {
"A list of pull request comments associated with the thread."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Skips the first _n_ elements in the list."
skip: Int
): PullRequestReviewCommentConnection!
@@ -13617,25 +13793,22 @@ type PushAllowanceEdge {
"The query root of GitHub's GraphQL interface."
type Query {
"Look up a code of conduct by its key"
- codeOfConduct(
- "The code of conduct's key"
- key: String!
- ): CodeOfConduct
+ codeOfConduct("The code of conduct's key" key: String!): CodeOfConduct
"Look up a code of conduct by its key"
codesOfConduct: [CodeOfConduct]
"Look up an enterprise by URL slug."
enterprise(
"The enterprise invitation token."
- invitationToken: String,
+ invitationToken: String
"The enterprise URL slug."
slug: String!
): Enterprise
"Look up a pending enterprise administrator invitation by invitee, enterprise and role."
enterpriseAdministratorInvitation(
"The slug of the enterprise the user was invited to join."
- enterpriseSlug: String!,
+ enterpriseSlug: String!
"The role for the business member invitation."
- role: EnterpriseAdministratorRole!,
+ role: EnterpriseAdministratorRole!
"The login of the user invited to join the business."
userLogin: String!
): EnterpriseAdministratorInvitation
@@ -13645,25 +13818,22 @@ type Query {
invitationToken: String!
): EnterpriseAdministratorInvitation
"Look up an open source license by its key"
- license(
- "The license's downcased SPDX ID"
- key: String!
- ): License
+ license("The license's downcased SPDX ID" key: String!): License
"Return a list of known open source licenses"
licenses: [License]!
"Get alphabetically sorted list of Marketplace categories"
marketplaceCategories(
"Exclude categories with no listings."
- excludeEmpty: Boolean,
+ excludeEmpty: Boolean
"Returns top level categories only, excluding any subcategories."
- excludeSubcategories: Boolean,
+ excludeSubcategories: Boolean
"Return only the specified categories."
includeCategories: [String!]
): [MarketplaceCategory!]!
"Look up a Marketplace category by its slug."
marketplaceCategory(
"The URL slug of the category."
- slug: String!,
+ slug: String!
"Also check topic aliases for the category slug"
useTopicAliases: Boolean
): MarketplaceCategory
@@ -13675,57 +13845,46 @@ type Query {
"Look up Marketplace listings"
marketplaceListings(
"Select listings that can be administered by the specified user."
- adminId: ID,
+ adminId: ID
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"""
-
Select listings visible to the viewer even if they are not approved. If omitted or
false, only approved listings will be returned.
"""
- allStates: Boolean,
+ allStates: Boolean
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Select only listings with the given category."
- categorySlug: String,
+ categorySlug: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Select listings for products owned by the specified organization."
- organizationId: ID,
+ organizationId: ID
"Select only listings where the primary category matches the given category slug."
- primaryCategoryOnly: Boolean = false,
+ primaryCategoryOnly: Boolean = false
"Select the listings with these slugs, if they are visible to the viewer."
- slugs: [String],
+ slugs: [String]
"Also check topic aliases for the category slug"
- useTopicAliases: Boolean,
+ useTopicAliases: Boolean
"""
-
Select listings to which user has admin access. If omitted, listings visible to the
viewer are returned.
"""
- viewerCanAdmin: Boolean,
+ viewerCanAdmin: Boolean
"Select only listings that offer a free trial."
withFreeTrialsOnly: Boolean = false
): MarketplaceListingConnection!
"Return information about the GitHub instance"
meta: GitHubMetadata!
"Fetches an object given its ID."
- node(
- "ID of the object."
- id: ID!
- ): Node
+ node("ID of the object." id: ID!): Node
"Lookup nodes by a list of IDs."
- nodes(
- "The list of node IDs."
- ids: [ID!]!
- ): [Node]!
+ nodes("The list of node IDs." ids: [ID!]!): [Node]!
"Lookup a organization by login."
- organization(
- "The organization's login."
- login: String!
- ): Organization
+ organization("The organization's login." login: String!): Organization
"The client's rate limit information."
rateLimit(
"If true, calculate the cost for the query without evaluating it"
@@ -13736,9 +13895,9 @@ type Query {
"Lookup a given repository by the owner and repository name."
repository(
"Follow repository renames. If disabled, a repository referenced by its old name will return an error."
- followRenames: Boolean = true,
+ followRenames: Boolean = true
"The name of the repository"
- name: String!,
+ name: String!
"The login field of a user or organization"
owner: String!
): Repository
@@ -13748,43 +13907,40 @@ type Query {
login: String!
): RepositoryOwner
"Lookup resource by a URL."
- resource(
- "The URL."
- url: URI!
- ): UniformResourceLocatable
+ resource("The URL." url: URI!): UniformResourceLocatable
"Perform a search across resources, returning a maximum of 1,000 results."
search(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The search string to look for."
- query: String!,
+ query: String!
"The types of search items to search within."
type: SearchType!
): SearchResultItemConnection!
"GitHub Security Advisories"
securityAdvisories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"A list of classifications to filter advisories by."
- classifications: [SecurityAdvisoryClassification!],
+ classifications: [SecurityAdvisoryClassification!]
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Filter advisories by identifier, e.g. GHSA or CVE."
- identifier: SecurityAdvisoryIdentifierFilter,
+ identifier: SecurityAdvisoryIdentifierFilter
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the returned topics."
- orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC},
+ orderBy: SecurityAdvisoryOrder = { field: UPDATED_AT, direction: DESC }
"Filter advisories to those published since a time in the past."
- publishedSince: DateTime,
+ publishedSince: DateTime
"Filter advisories to those updated since a time in the past."
updatedSince: DateTime
): SecurityAdvisoryConnection!
@@ -13796,62 +13952,55 @@ type Query {
"Software Vulnerabilities documented by GitHub Security Advisories"
securityVulnerabilities(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"A list of advisory classifications to filter vulnerabilities by."
- classifications: [SecurityAdvisoryClassification!],
+ classifications: [SecurityAdvisoryClassification!]
"An ecosystem to filter vulnerabilities by."
- ecosystem: SecurityAdvisoryEcosystem,
+ ecosystem: SecurityAdvisoryEcosystem
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the returned topics."
- orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC},
+ orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC }
"A package name to filter vulnerabilities by."
- package: String,
+ package: String
"A list of severities to filter vulnerabilities by."
severities: [SecurityAdvisorySeverity!]
): SecurityVulnerabilityConnection!
"Users and organizations who can be sponsored via GitHub Sponsors."
sponsorables(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"""
-
Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true.
**Upcoming Change on 2022-07-01 UTC**
**Description:** `dependencyEcosystem` will be removed. Use the ecosystem argument instead.
**Reason:** The type is switching from SecurityAdvisoryEcosystem to DependencyGraphEcosystem.
"""
- dependencyEcosystem: SecurityAdvisoryEcosystem,
+ dependencyEcosystem: SecurityAdvisoryEcosystem
"Optional filter for which dependencies should be checked for sponsorable owners. Only sponsorable owners of dependencies in this ecosystem will be included. Used when onlyDependencies = true."
- ecosystem: DependencyGraphEcosystem,
+ ecosystem: DependencyGraphEcosystem
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Whether only sponsorables who own the viewer's dependencies will be returned. Must be authenticated to use. Can check an organization instead for their dependencies owned by sponsorables by passing orgLoginForDependencies."
- onlyDependencies: Boolean = false,
+ onlyDependencies: Boolean = false
"Ordering options for users and organizations returned from the connection."
- orderBy: SponsorableOrder = {field: LOGIN, direction: ASC},
+ orderBy: SponsorableOrder = { field: LOGIN, direction: ASC }
"Optional organization username for whose dependencies should be checked. Used when onlyDependencies = true. Omit to check your own dependencies. If you are not an administrator of the organization, only dependencies from its public repositories will be considered."
orgLoginForDependencies: String
): SponsorableItemConnection!
"Look up a topic by name."
- topic(
- "The topic's name."
- name: String!
- ): Topic
+ topic("The topic's name." name: String!): Topic
"Lookup a user by login."
- user(
- "The user's login."
- login: String!
- ): User
+ user("The user's login." login: String!): User
"The currently authenticated user."
viewer: User!
}
@@ -13939,11 +14088,11 @@ type ReactionGroup {
"Reactors to the reaction subject with the emotion represented by this reaction group."
reactors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ReactorConnection!
@@ -13952,14 +14101,17 @@ type ReactionGroup {
"Users who have reacted to the reaction subject with the emotion represented by this reaction group"
users(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
- ): ReactingUserConnection! @deprecated(reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC.")
+ ): ReactingUserConnection!
+ @deprecated(
+ reason: "Reactors can now be mannequins, bots, and organizations. Use the `reactors` field instead. Removal on 2021-10-01 UTC."
+ )
"Whether or not the authenticated user has left a reaction on the subject."
viewerHasReacted: Boolean!
}
@@ -14006,31 +14158,28 @@ type Ref implements Node {
"A list of pull requests with this ref as the head ref."
associatedPullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection!
"Branch protection rules for this ref"
branchProtectionRule: BranchProtectionRule
"Compares the current ref as a base ref to another head ref, if the comparison can be made."
- compare(
- "The head ref to compare against."
- headRef: String!
- ): Comparison
+ compare("The head ref to compare against." headRef: String!): Comparison
id: ID!
"The ref name."
name: String!
@@ -14165,11 +14314,11 @@ type Release implements Node & Reactable & UniformResourceLocatable {
"A list of users mentioned in the release description"
mentions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection
@@ -14182,28 +14331,28 @@ type Release implements Node & Reactable & UniformResourceLocatable {
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
"List of releases assets which are dependent on this release."
releaseAssets(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"A list of names to filter the assets by."
name: String
): ReleaseAssetConnection!
@@ -14212,10 +14361,7 @@ type Release implements Node & Reactable & UniformResourceLocatable {
"The HTTP path for this issue"
resourcePath: URI!
"A description of the release, rendered to HTML without any links in it."
- shortDescriptionHTML(
- "How many characters to return."
- limit: Int = 200
- ): HTML
+ shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML
"The Git tag the release points to"
tag: Ref
"The tag commit for this release."
@@ -15413,13 +15559,13 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of users that can be assigned to issues in this repository."
assignableUsers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filters users with query on user name and login."
query: String
): UserConnection!
@@ -15428,11 +15574,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of branch protection rules for this repository."
branchProtectionRules(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): BranchProtectionRuleConnection!
@@ -15446,28 +15592,28 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of collaborators associated with the repository."
collaborators(
"Collaborators affiliation level with a repository."
- affiliation: CollaboratorAffiliation,
+ affiliation: CollaboratorAffiliation
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The login of one specific collaborator."
- login: String,
+ login: String
"Filters users with query on user name and login"
query: String
): RepositoryCollaboratorConnection
"A list of commit comments associated with the repository."
commitComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitCommentConnection!
@@ -15486,28 +15632,28 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of deploy keys that are on this repository."
deployKeys(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeployKeyConnection!
"Deployments associated with the repository"
deployments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Environments to list deployments for"
- environments: [String!],
+ environments: [String!]
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for deployments returned from the connection."
- orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC}
+ orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC }
): DeploymentConnection!
"The description of the repository."
description: String
@@ -15521,13 +15667,13 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of discussion categories that are available in the repository."
discussionCategories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filter by categories that are assignable by the viewer."
- filterByAssignable: Boolean = false,
+ filterByAssignable: Boolean = false
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DiscussionCategoryConnection!
@@ -15539,19 +15685,19 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of discussions that have been opened in the repository."
discussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Only show answered or unanswered discussions"
- answered: Boolean,
+ answered: Boolean
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Only include discussions that belong to the category with this ID."
- categoryId: ID,
+ categoryId: ID
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for discussions returned from the connection."
- orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC},
+ orderBy: DiscussionOrder = { field: UPDATED_AT, direction: DESC }
"A list of states to filter the discussions by."
states: [DiscussionState!] = []
): DiscussionConnection!
@@ -15565,15 +15711,15 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of environments that are in this repository."
environments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the environments"
- orderBy: Environments = {field: NAME, direction: ASC}
+ orderBy: Environments = { field: NAME, direction: ASC }
): EnvironmentConnection!
"Returns how many forks there are of this repository in the whole network."
forkCount: Int!
@@ -15582,23 +15728,23 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of direct forked repositories."
forks(
"Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
@@ -15644,10 +15790,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"Is this repository a user configuration repository?"
isUserConfigurationRepository: Boolean!
"Returns a single issue from the current repository by number."
- issue(
- "The number for the issue to be returned."
- number: Int!
- ): Issue
+ issue("The number for the issue to be returned." number: Int!): Issue
"Returns a single issue-like object from the current repository by number."
issueOrPullRequest(
"The number for the issue to be returned."
@@ -15658,52 +15801,49 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of issues that have been opened in the repository."
issues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filtering options for issues returned from the connection."
- filterBy: IssueFilters,
+ filterBy: IssueFilters
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issues returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the issues by."
states: [IssueState!]
): IssueConnection!
"Returns a single label by name"
- label(
- "Label name"
- name: String!
- ): Label
+ label("Label name" name: String!): Label
"A list of labels associated with the repository."
labels(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for labels returned from the connection."
- orderBy: LabelOrder = {field: CREATED_AT, direction: ASC},
+ orderBy: LabelOrder = { field: CREATED_AT, direction: ASC }
"If provided, searches labels by name and description."
query: String
): LabelConnection
"A list containing a breakdown of the language composition of the repository."
languages(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: LanguageOrder
): LanguageConnection
@@ -15716,13 +15856,13 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of Users that can be mentioned in the context of the repository."
mentionableUsers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filters users with query on user name and login"
query: String
): UserConnection!
@@ -15745,17 +15885,17 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of milestones associated with the repository."
milestones(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for milestones."
- orderBy: MilestoneOrder,
+ orderBy: MilestoneOrder
"Filters milestones with a query on the title"
- query: String,
+ query: String
"Filter by the state of the milestones."
states: [MilestoneState!]
): MilestoneConnection
@@ -15768,7 +15908,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A Git object in the repository"
object(
"A Git revision expression suitable for rev-parse"
- expression: String,
+ expression: String
"The Git object ID"
oid: GitObjectID
): GitObject
@@ -15779,19 +15919,19 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of packages under the owner."
packages(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Find packages by their names."
- names: [String],
+ names: [String]
"Ordering of the returned packages."
- orderBy: PackageOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: PackageOrder = { field: CREATED_AT, direction: DESC }
"Filter registry package by type."
- packageType: PackageType,
+ packageType: PackageType
"Find packages in a repository by ID."
repositoryId: ID
): PackageConnection!
@@ -15800,51 +15940,45 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of discussions that have been pinned in this repository."
pinnedDiscussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PinnedDiscussionConnection!
"A list of pinned issues for this repository."
pinnedIssues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PinnedIssueConnection
"The primary language of the repository's code."
primaryLanguage: Language
"Find project by number."
- project(
- "The project number to find."
- number: Int!
- ): Project
+ project("The project number to find." number: Int!): Project
"Finds and returns the Project according to the provided Project number."
- projectV2(
- "The Project number."
- number: Int!
- ): ProjectV2
+ projectV2("The Project number." number: Int!): ProjectV2
"A list of projects under the owner."
projects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for projects returned from the connection"
- orderBy: ProjectOrder,
+ orderBy: ProjectOrder
"Query to search projects by, currently only searching by name."
- search: String,
+ search: String
"A list of states to filter the projects by."
states: [ProjectState!]
): ProjectConnection!
@@ -15855,15 +15989,15 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"List of projects linked to this repository."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for linked to the repo."
query: String
): ProjectV2Connection!
@@ -15877,21 +16011,21 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of pull requests that have been opened in the repository."
pullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection!
@@ -15902,11 +16036,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"Recent projects that this user has modified in the context of the owner."
recentProjects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2Connection!
@@ -15918,19 +16052,19 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"Fetch a list of refs from the repository"
refs(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"DEPRECATED: use orderBy. The ordering direction."
- direction: OrderDirection,
+ direction: OrderDirection
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for refs returned from the connection."
- orderBy: RefOrder,
+ orderBy: RefOrder
"Filters refs with query on name"
- query: String,
+ query: String
"A ref name prefix like `refs/heads/`, `refs/tags/`, etc."
refPrefix: String!
): RefConnection
@@ -15942,24 +16076,24 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"List of releases which are dependent on this repository."
releases(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: ReleaseOrder
): ReleaseConnection!
"A list of applied repository-topic associations for this repository."
repositoryTopics(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): RepositoryTopicConnection!
@@ -15968,30 +16102,27 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"Returns a single ruleset from the current repository by ID."
ruleset(
"The ID of the ruleset to be returned."
- databaseId: Int!,
+ databaseId: Int!
"Include rulesets configured at higher levels that apply to this repository"
includeParents: Boolean = true
): RepositoryRuleset
"A list of rulesets for this repository."
rulesets(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Return rulesets configured at higher levels that apply to this repository"
- includeParents: Boolean = true,
+ includeParents: Boolean = true
"Returns the last _n_ elements from the list."
last: Int
): RepositoryRulesetConnection
"The security policy URL."
securityPolicyUrl: URI
"A description of the repository, rendered to HTML without any links in it."
- shortDescriptionHTML(
- "How many characters to return."
- limit: Int = 200
- ): HTML!
+ shortDescriptionHTML("How many characters to return." limit: Int = 200): HTML!
"Whether or not squash-merging is enabled on this repository."
squashMergeAllowed: Boolean!
"How the default commit message will be generated when squash merging a pull request."
@@ -15999,35 +16130,37 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"How the default commit title will be generated when squash merging a pull request."
squashMergeCommitTitle: SquashMergeCommitTitle!
"Whether a squash merge commit can use the pull request title as default."
- squashPrTitleUsedAsDefault: Boolean! @deprecated(reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC.")
+ squashPrTitleUsedAsDefault: Boolean!
+ @deprecated(
+ reason: "`squashPrTitleUsedAsDefault` will be removed. Use `Repository.squashMergeCommitTitle` instead. Removal on 2023-04-01 UTC."
+ )
"The SSH URL to clone this repository"
sshUrl: GitSSHRemote!
"""
-
Returns a count of how many stargazers there are on this object
"""
stargazerCount: Int!
"A list of users who have starred this starrable."
stargazers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: StarOrder
): StargazerConnection!
"Returns a list of all submodules in this repository parsed from the .gitmodules file as of the default branch's HEAD commit."
submodules(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): SubmoduleConnection!
@@ -16071,26 +16204,26 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent
"A list of vulnerability alerts that are on this repository."
vulnerabilityAlerts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filter by the scope of the alert's dependency"
- dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!],
+ dependencyScopes: [RepositoryVulnerabilityAlertDependencyScope!]
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter by the state of the alert"
states: [RepositoryVulnerabilityAlertState!]
): RepositoryVulnerabilityAlertConnection
"A list of users watching the repository."
watchers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserConnection!
@@ -16331,11 +16464,11 @@ type RepositoryRuleset implements Node {
"The actors that can bypass this ruleset"
bypassActors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): RepositoryRulesetBypassActorConnection
@@ -16353,13 +16486,13 @@ type RepositoryRuleset implements Node {
"List of rules."
rules(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The type of rule."
type: RepositoryRuleType
): RepositoryRuleConnection
@@ -16681,7 +16814,6 @@ type ResolveReviewThreadPayload {
"Represents a private contribution a user made on GitHub."
type RestrictedContribution implements Contribution {
"""
-
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.
@@ -16694,7 +16826,6 @@ type RestrictedContribution implements Contribution {
"The HTTP URL for this contribution."
url: URI!
"""
-
The user who made this contribution.
"""
user: User!
@@ -16834,7 +16965,6 @@ type ReviewRequestedEvent implements Node {
}
"""
-
A hovercard context with a message describing the current code review state of the pull
request.
"""
@@ -16854,11 +16984,11 @@ type RevokeEnterpriseOrganizationsMigratorRolePayload {
"The organizations that had the migrator role revoked for the given user."
organizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): OrganizationConnection
@@ -16948,11 +17078,11 @@ type SecurityAdvisory implements Node {
"CWEs associated with this Advisory"
cwes(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CWEConnection!
@@ -16984,21 +17114,21 @@ type SecurityAdvisory implements Node {
"Vulnerabilities associated with this Advisory"
vulnerabilities(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"A list of advisory classifications to filter vulnerabilities by."
- classifications: [SecurityAdvisoryClassification!],
+ classifications: [SecurityAdvisoryClassification!]
"An ecosystem to filter vulnerabilities by."
- ecosystem: SecurityAdvisoryEcosystem,
+ ecosystem: SecurityAdvisoryEcosystem
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the returned topics."
- orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC},
+ orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC }
"A package name to filter vulnerabilities by."
- package: String,
+ package: String
"A list of severities to filter vulnerabilities by."
severities: [SecurityAdvisorySeverity!]
): SecurityVulnerabilityConnection!
@@ -17067,7 +17197,6 @@ type SecurityVulnerability {
"When the vulnerability was last updated"
updatedAt: DateTime!
"""
-
A string that describes the vulnerable package versions.
This string follows a basic syntax with a few forms.
+ `= 0.2.0` denotes a single vulnerable version.
@@ -17293,7 +17422,10 @@ type SponsorsListing implements Node {
"The records featured on the GitHub Sponsors profile."
featuredItems(
"The types of featured items to return."
- featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [REPOSITORY, USER]
+ featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [
+ REPOSITORY
+ USER
+ ]
): [SponsorsListingFeaturedItem!]!
"The fiscal host used for payments, if any. Will only return a value when queried by the maintainer themselves, or by an admin of the sponsorable organization."
fiscalHost: Organization
@@ -17321,17 +17453,20 @@ type SponsorsListing implements Node {
"The tiers for this GitHub Sponsors profile."
tiers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether to include tiers that aren't published. Only admins of the Sponsors listing can see draft tiers. Only admins of the Sponsors listing and viewers who are currently sponsoring on a retired tier can see those retired tiers. Defaults to including only published tiers, which are visible to anyone who can see the GitHub Sponsors profile."
- includeUnpublished: Boolean = false,
+ includeUnpublished: Boolean = false
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for Sponsors tiers returned from the connection."
- orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC}
+ orderBy: SponsorsTierOrder = {
+ field: MONTHLY_PRICE_IN_CENTS
+ direction: ASC
+ }
): SponsorsTierConnection
"The HTTP URL for this Sponsors listing."
url: URI!
@@ -17394,15 +17529,15 @@ type SponsorsTierAdminInfo {
"The sponsorships using this tier."
sponsorships(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether or not to return private sponsorships using this tier. Defaults to only returning public sponsorships on this tier."
- includePrivate: Boolean = false,
+ includePrivate: Boolean = false
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
@@ -17440,11 +17575,17 @@ type Sponsorship implements Node {
"Whether the sponsor has chosen to receive sponsorship update emails sent from the sponsorable. Only returns a non-null value when the viewer has permission to know this."
isSponsorOptedIntoEmail: Boolean
"The entity that is being sponsored"
- maintainer: User! @deprecated(reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC.")
+ maintainer: User!
+ @deprecated(
+ reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC."
+ )
"The privacy level for this sponsorship."
privacyLevel: SponsorshipPrivacy!
"The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user."
- sponsor: User @deprecated(reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC.")
+ sponsor: User
+ @deprecated(
+ reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC."
+ )
"The user or organization that is sponsoring, if you have permission to view them."
sponsorEntity: Sponsor
"The entity that is being sponsored"
@@ -17603,21 +17744,18 @@ type Status implements Node {
"A list of status contexts and check runs for this commit."
combinedContexts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): StatusCheckRollupContextConnection!
"The commit this status is attached to."
commit: Commit
"Looks up an individual status context by context name."
- context(
- "The context name."
- name: String!
- ): StatusContext
+ context("The context name." name: String!): StatusContext
"The individual status contexts for this commit."
contexts: [StatusContext!]!
id: ID!
@@ -17640,11 +17778,11 @@ type StatusCheckRollup implements Node {
"A list of status contexts and check runs for this commit."
contexts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): StatusCheckRollupContextConnection!
@@ -17684,10 +17822,7 @@ type StatusCheckRollupContextEdge {
"Represents an individual commit status context"
type StatusContext implements Node & RequirableByPullRequest {
"The avatar of the OAuth application or the user that created the status"
- avatarUrl(
- "The size of the resulting square image."
- size: Int = 40
- ): URI
+ avatarUrl("The size of the resulting square image." size: Int = 40): URI
"This commit this status context is attached to."
commit: Commit
"The name of this status context."
@@ -17702,7 +17837,7 @@ type StatusContext implements Node & RequirableByPullRequest {
"Whether this is required to pass before merging for a specific pull request."
isRequired(
"The id of the pull request this is required for"
- pullRequestId: ID,
+ pullRequestId: ID
"The number of the pull request this is required for"
pullRequestNumber: Int
): Boolean!
@@ -17843,11 +17978,11 @@ type Team implements MemberStatusable & Node & Subscribable {
"A list of teams that are ancestors of this team."
ancestors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): TeamConnection!
@@ -17859,17 +17994,17 @@ type Team implements MemberStatusable & Node & Subscribable {
"List of child teams belonging to this team"
childTeams(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether to list immediate child teams or all descendant child teams."
- immediateOnly: Boolean = true,
+ immediateOnly: Boolean = true
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
- orderBy: TeamOrder,
+ orderBy: TeamOrder
"User logins to filter by"
userLogins: [String!]
): TeamConnection!
@@ -17889,15 +18024,15 @@ type Team implements MemberStatusable & Node & Subscribable {
"A list of team discussions."
discussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If provided, filters discussions according to whether or not they are pinned."
- isPinned: Boolean,
+ isPinned: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: TeamDiscussionOrder
): TeamDiscussionConnection!
@@ -17913,43 +18048,43 @@ type Team implements MemberStatusable & Node & Subscribable {
"A list of pending invitations for users to this team"
invitations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): OrganizationInvitationConnection
"Get the status messages members of this entity have set that are either public or visible only to the organization."
memberStatuses(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for user statuses returned from the connection."
- orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC}
+ orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC }
): UserStatusConnection!
"A list of users who are members of this team."
members(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter by membership type"
- membership: TeamMembershipType = ALL,
+ membership: TeamMembershipType = ALL
"Order for the connection."
- orderBy: TeamMemberOrder,
+ orderBy: TeamMemberOrder
"The search string to look for."
- query: String,
+ query: String
"Filter by team member role"
role: TeamMemberRole
): TeamMemberConnection!
@@ -17972,39 +18107,36 @@ type Team implements MemberStatusable & Node & Subscribable {
"The level of privacy the team has."
privacy: TeamPrivacy!
"Finds and returns the project according to the provided project number."
- projectV2(
- "The Project number."
- number: Int!
- ): ProjectV2
+ projectV2("The Project number." number: Int!): ProjectV2
"List of projects this team has collaborator access to."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filtering options for projects returned from this connection"
- filterBy: ProjectV2Filters = {},
+ filterBy: ProjectV2Filters = {}
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"The query to search projects by."
query: String = ""
): ProjectV2Connection!
"A list of repositories this team has access to."
repositories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for the connection."
- orderBy: TeamRepositoryOrder,
+ orderBy: TeamRepositoryOrder
"The search string to look for. Repositories will be returned where the name contains your search string."
query: String
): TeamRepositoryConnection!
@@ -18220,7 +18352,10 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
"The actor who authored the comment."
author: Actor
"Author's association with the discussion's team."
- authorAssociation: CommentAuthorAssociation! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ authorAssociation: CommentAuthorAssociation!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The body as Markdown."
body: String!
"The body rendered to HTML."
@@ -18228,26 +18363,38 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
"The body rendered to text."
bodyText: String!
"Identifies the discussion body hash."
- bodyVersion: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ bodyVersion: String!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"A list of comments on this discussion."
comments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"When provided, filters the connection such that results begin with the comment with this number."
- fromComment: Int,
+ fromComment: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: TeamDiscussionCommentOrder
- ): TeamDiscussionCommentConnection! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ ): TeamDiscussionCommentConnection!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The HTTP path for discussion comments"
- commentsResourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ commentsResourcePath: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The HTTP URL for discussion comments"
- commentsUrl: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ commentsUrl: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies the date and time when the object was created."
createdAt: DateTime!
"Check if this comment was created via an email reply."
@@ -18260,13 +18407,22 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
"Check if this comment was edited and includes an edit with the creation data"
includesCreatedEdit: Boolean!
"Whether or not the discussion is pinned."
- isPinned: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ isPinned: Boolean!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Whether or not the discussion is only visible to team members and org admins."
- isPrivate: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ isPrivate: Boolean!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The moment the editor made the last edit"
lastEditedAt: DateTime
"Identifies the discussion within its team."
- number: Int! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ number: Int!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies when the comment was published at."
publishedAt: DateTime
"A list of reactions grouped by content left on the subject."
@@ -18274,43 +18430,58 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
"The HTTP path for this discussion"
- resourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ resourcePath: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The team that defines the context of this discussion."
- team: Team! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ team: Team!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The title of the discussion"
- title: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ title: String!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies the date and time when the object was last updated."
updatedAt: DateTime!
"The HTTP URL for this discussion"
- url: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ url: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
"Check if the current viewer can delete this object."
viewerCanDelete: Boolean!
"Whether or not the current viewer can pin this discussion."
- viewerCanPin: Boolean! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ viewerCanPin: Boolean!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Can user react to this subject"
viewerCanReact: Boolean!
"Check if the viewer is able to change their subscription status for the repository."
@@ -18330,7 +18501,10 @@ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & U
"The actor who authored the comment."
author: Actor
"Author's association with the comment's team."
- authorAssociation: CommentAuthorAssociation! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ authorAssociation: CommentAuthorAssociation!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The body as Markdown."
body: String!
"The body rendered to HTML."
@@ -18338,7 +18512,10 @@ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & U
"The body rendered to text."
bodyText: String!
"The current version of the body content."
- bodyVersion: String! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ bodyVersion: String!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies the date and time when the object was created."
createdAt: DateTime!
"Check if this comment was created via an email reply."
@@ -18346,7 +18523,10 @@ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & U
"Identifies the primary key from the database."
databaseId: Int
"The discussion this comment is about."
- discussion: TeamDiscussion! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ discussion: TeamDiscussion!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"The actor who edited the comment."
editor: Actor
id: ID!
@@ -18355,7 +18535,10 @@ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & U
"The moment the editor made the last edit"
lastEditedAt: DateTime
"Identifies the comment number."
- number: Int! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ number: Int!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies when the comment was published at."
publishedAt: DateTime
"A list of reactions grouped by content left on the subject."
@@ -18363,32 +18546,38 @@ type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & U
"A list of Reactions left on the Issue."
reactions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Allows filtering Reactions by emoji."
- content: ReactionContent,
+ content: ReactionContent
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Allows specifying the order in which reactions are returned."
orderBy: ReactionOrder
): ReactionConnection!
"The HTTP path for this comment"
- resourcePath: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ resourcePath: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"Identifies the date and time when the object was last updated."
updatedAt: DateTime!
"The HTTP URL for this comment"
- url: URI! @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
+ url: URI!
+ @deprecated(
+ reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC."
+ )
"A list of edits to this content."
userContentEdits(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): UserContentEditConnection
@@ -18630,54 +18819,49 @@ type Topic implements Node & Starrable {
"The topic's name."
name: String!
"""
-
A list of related topics, including aliases of this topic, sorted with the most relevant
first. Returns up to 10 Topics.
"""
- relatedTopics(
- "How many topics to return."
- first: Int = 3
- ): [Topic!]!
+ relatedTopics("How many topics to return." first: Int = 3): [Topic!]!
"A list of repositories."
repositories(
"Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
- privacy: RepositoryPrivacy,
+ privacy: RepositoryPrivacy
"If true, only repositories whose owner can be sponsored via GitHub Sponsors will be returned."
sponsorableOnly: Boolean = false
): RepositoryConnection!
"""
-
Returns a count of how many stargazers there are on this object
"""
stargazerCount: Int!
"A list of users who have starred this starrable."
stargazers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
orderBy: StarOrder
): StargazerConnection!
@@ -18793,7 +18977,10 @@ type UnassignedEvent implements Node {
createdAt: DateTime!
id: ID!
"Identifies the subject (user) who was unassigned."
- user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.")
+ user: User
+ @deprecated(
+ reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC."
+ )
}
"Autogenerated return type of UnfollowOrganization"
@@ -19302,11 +19489,11 @@ type UpdateProjectV2CollaboratorsPayload {
"The collaborators granted a role"
collaborators(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2ActorConnection
@@ -19335,11 +19522,11 @@ type UpdateProjectV2ItemPositionPayload {
"The items in the new order"
items(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2ItemConnection
@@ -19481,10 +19668,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
type: PinnableItemType
): Boolean!
"A URL pointing to the user's public avatar."
- avatarUrl(
- "The size of the resulting square image."
- size: Int
- ): URI!
+ avatarUrl("The size of the resulting square image." size: Int): URI!
"The user's public profile bio."
bio: String
"The user's public profile bio as HTML."
@@ -19497,11 +19681,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of commit comments made by this user."
commitComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): CommitCommentConnection!
@@ -19512,9 +19696,9 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"The collection of contributions this user has made to different repositories."
contributionsCollection(
"Only contributions made at this time or later will be counted. If omitted, defaults to a year ago."
- from: DateTime,
+ from: DateTime
"The ID of the organization used to filter contributions."
- organizationID: ID,
+ organizationID: ID
"Only contributions made before and up to (including) this time will be counted. If omitted, defaults to the current time or one year from the provided from argument."
to: DateTime
): ContributionsCollection!
@@ -19527,70 +19711,67 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of enterprises that the user belongs to."
enterprises(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter enterprises returned based on the user's membership type."
- membershipType: EnterpriseMembershipType = ALL,
+ membershipType: EnterpriseMembershipType = ALL
"Ordering options for the User's enterprises."
- orderBy: EnterpriseOrder = {field: NAME, direction: ASC}
+ orderBy: EnterpriseOrder = { field: NAME, direction: ASC }
): EnterpriseConnection
"The estimated next GitHub Sponsors payout for this user/organization in cents (USD)."
estimatedNextSponsorsPayoutInCents: Int!
"A list of users the given user is followed by."
followers(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): FollowerConnection!
"A list of users the given user is following."
following(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): FollowingConnection!
"Find gist by repo name."
- gist(
- "The gist name to find."
- name: String!
- ): Gist
+ gist("The gist name to find." name: String!): Gist
"A list of gist comments made by this user."
gistComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): GistCommentConnection!
"A list of the Gists the user has created."
gists(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for gists returned from the connection"
- orderBy: GistOrder,
+ orderBy: GistOrder
"Filters Gists according to privacy."
privacy: GistPrivacy
): GistConnection!
@@ -19621,10 +19802,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"Whether or not this user is a site administrator."
isSiteAdmin: Boolean!
"Whether the given account is sponsoring this user/organization."
- isSponsoredBy(
- "The target account's login."
- accountLogin: String!
- ): Boolean!
+ isSponsoredBy("The target account's login." accountLogin: String!): Boolean!
"True if the viewer is sponsored by this user/organization."
isSponsoringViewer: Boolean!
"Whether or not this user is the viewing user."
@@ -19632,32 +19810,32 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of issue comments made by this user."
issueComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issue comments returned from the connection."
orderBy: IssueCommentOrder
): IssueCommentConnection!
"A list of issues associated with this user."
issues(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Filtering options for issues returned from the connection."
- filterBy: IssueFilters,
+ filterBy: IssueFilters
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for issues returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the issues by."
states: [IssueState!]
): IssueConnection!
@@ -19684,87 +19862,81 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of organizations the user belongs to."
organizations(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the User's organizations."
orderBy: OrganizationOrder
): OrganizationConnection!
"A list of packages under the owner."
packages(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Find packages by their names."
- names: [String],
+ names: [String]
"Ordering of the returned packages."
- orderBy: PackageOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: PackageOrder = { field: CREATED_AT, direction: DESC }
"Filter registry package by type."
- packageType: PackageType,
+ packageType: PackageType
"Find packages in a repository by ID."
repositoryId: ID
): PackageConnection!
"A list of repositories and gists this profile owner can pin to their profile."
pinnableItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinnable items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
"A list of repositories and gists this profile owner has pinned to their profile"
pinnedItems(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter the types of pinned items that are returned."
types: [PinnableItemType!]
): PinnableItemConnection!
"Returns how many more items this profile owner can pin to their profile."
pinnedItemsRemaining: Int!
"Find project by number."
- project(
- "The project number to find."
- number: Int!
- ): Project
+ project("The project number to find." number: Int!): Project
"Find a project by number."
- projectV2(
- "The project number."
- number: Int!
- ): ProjectV2
+ projectV2("The project number." number: Int!): ProjectV2
"A list of projects under the owner."
projects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for projects returned from the connection"
- orderBy: ProjectOrder,
+ orderBy: ProjectOrder
"Query to search projects by, currently only searching by name."
- search: String,
+ search: String
"A list of states to filter the projects by."
states: [ProjectState!]
): ProjectConnection!
@@ -19775,15 +19947,15 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of projects under the owner."
projectsV2(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"How to order the returned projects."
- orderBy: ProjectV2Order = {field: NUMBER, direction: DESC},
+ orderBy: ProjectV2Order = { field: NUMBER, direction: DESC }
"A project to search for under the the owner."
query: String
): ProjectV2Connection!
@@ -19792,134 +19964,134 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of public keys associated with this user."
publicKeys(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): PublicKeyConnection!
"A list of pull requests associated with this user."
pullRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"The base ref name to filter the pull requests by."
- baseRefName: String,
+ baseRefName: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"The head ref name to filter the pull requests by."
- headRefName: String,
+ headRefName: String
"A list of label names to filter the pull requests by."
- labels: [String!],
+ labels: [String!]
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for pull requests returned from the connection."
- orderBy: IssueOrder,
+ orderBy: IssueOrder
"A list of states to filter the pull requests by."
states: [PullRequestState!]
): PullRequestConnection!
"Recent projects that this user has modified in the context of the owner."
recentProjects(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): ProjectV2Connection!
"A list of repositories that the user owns."
repositories(
"Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they are archived and not maintained"
- isArchived: Boolean,
+ isArchived: Boolean
"If non-null, filters repositories according to whether they are forks of another repository"
- isFork: Boolean,
+ isFork: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
"A list of repositories that the user recently contributed to."
repositoriesContributedTo(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"If non-null, include only the specified types of contributions. The GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]"
- contributionTypes: [RepositoryContributionType],
+ contributionTypes: [RepositoryContributionType]
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssues: Boolean,
+ hasIssues: Boolean
"If true, include user repositories"
- includeUserRepositories: Boolean,
+ includeUserRepositories: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
"Find Repository."
repository(
"Follow repository renames. If disabled, a repository referenced by its old name will return an error."
- followRenames: Boolean = true,
+ followRenames: Boolean = true
"Name of Repository to find."
name: String!
): Repository
"Discussion comments this user has authored."
repositoryDiscussionComments(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter discussion comments to only those that were marked as the answer"
- onlyAnswers: Boolean = false,
+ onlyAnswers: Boolean = false
"Filter discussion comments to only those in a specific repository."
repositoryId: ID
): DiscussionCommentConnection!
"Discussions this user has started."
repositoryDiscussions(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions."
- answered: Boolean,
+ answered: Boolean
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for discussions returned from the connection."
- orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC},
+ orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC }
"Filter discussions to only those in a specific repository."
- repositoryId: ID,
+ repositoryId: ID
"A list of states to filter the discussions by."
states: [DiscussionState!] = []
): DiscussionConnection!
@@ -19928,77 +20100,77 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"Replies this user has saved"
savedReplies(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"The field to order saved replies by."
- orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC}
+ orderBy: SavedReplyOrder = { field: UPDATED_AT, direction: DESC }
): SavedReplyConnection
"The user's social media accounts, ordered as they appear on the user's profile."
socialAccounts(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): SocialAccountConnection!
"List of users and organizations this entity is sponsoring."
sponsoring(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the users and organizations returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC}
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
): SponsorConnection!
"List of sponsors for this user or organization."
sponsors(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsors returned from the connection."
- orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC},
+ orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC }
"If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see."
tierId: ID
): SponsorConnection!
"Events involving this sponsorable, such as new sponsorships."
sponsorsActivities(
"Filter activities to only the specified actions."
- actions: [SponsorsActivityAction!] = [],
+ actions: [SponsorsActivityAction!] = []
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship."
- includeAsSponsor: Boolean = false,
+ includeAsSponsor: Boolean = false
"Whether or not to include private activities in the result set. Defaults to including public and private activities."
- includePrivate: Boolean = true,
+ includePrivate: Boolean = true
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for activity returned from the connection."
- orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC},
+ orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC }
"Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given."
- period: SponsorsActivityPeriod = MONTH,
+ period: SponsorsActivityPeriod = MONTH
"Filter activities to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter activities to those that occurred before this time."
until: DateTime
): SponsorsActivityConnection!
@@ -20017,91 +20189,90 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"List of sponsorship updates sent from this sponsorable to sponsors."
sponsorshipNewsletters(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorship updates returned from the connection."
- orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC }
): SponsorshipNewsletterConnection!
"The sponsorships where this user or organization is the maintainer receiving the funds."
sponsorshipsAsMaintainer(
"Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Whether or not to include private sponsorships in the result set"
- includePrivate: Boolean = false,
+ includePrivate: Boolean = false
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"The sponsorships where this user or organization is the funder."
sponsorshipsAsSponsor(
"Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made."
- activeOnly: Boolean = true,
+ activeOnly: Boolean = true
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins."
- maintainerLogins: [String!],
+ maintainerLogins: [String!]
"Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer."
orderBy: SponsorshipOrder
): SponsorshipConnection!
"Repositories the user has starred."
starredRepositories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Order for connection"
- orderBy: StarOrder,
+ orderBy: StarOrder
"Filters starred repositories to only return repositories owned by the viewer."
ownedByViewer: Boolean
): StarredRepositoryConnection!
"The user's description of what they're currently doing."
status: UserStatus
"""
-
Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created
"""
topRepositories(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder!,
+ orderBy: RepositoryOrder!
"How far back in time to fetch contributed repositories"
since: DateTime
): RepositoryConnection!
"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."
totalSponsorshipAmountAsSponsorInCents(
"Filter payments to those that occurred on or after this time."
- since: DateTime,
+ since: DateTime
"Filter payments to those made to the users or organizations with the specified usernames."
- sponsorableLogins: [String!] = [],
+ sponsorableLogins: [String!] = []
"Filter payments to those that occurred before this time."
until: DateTime
): Int
@@ -20126,23 +20297,23 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
"A list of repositories the given user is watching."
watching(
"Affiliation options for repositories returned from the connection. If none specified, the results will include repositories for which the current viewer is an owner or collaborator, or member."
- affiliations: [RepositoryAffiliation],
+ affiliations: [RepositoryAffiliation]
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"If non-null, filters repositories according to whether they have issues enabled"
- hasIssuesEnabled: Boolean,
+ hasIssuesEnabled: Boolean
"If non-null, filters repositories according to whether they have been locked"
- isLocked: Boolean,
+ isLocked: Boolean
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for repositories returned from the connection"
- orderBy: RepositoryOrder,
+ orderBy: RepositoryOrder
"Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns."
- ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR],
+ ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR]
"If non-null, filters repositories according to privacy"
privacy: RepositoryPrivacy
): RepositoryConnection!
@@ -20360,15 +20531,15 @@ type Workflow implements Node & UniformResourceLocatable {
"The runs of the workflow."
runs(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
- last: Int,
+ last: Int
"Ordering options for the connection"
- orderBy: WorkflowRunOrder = {field: CREATED_AT, direction: DESC}
+ orderBy: WorkflowRunOrder = { field: CREATED_AT, direction: DESC }
): WorkflowRunConnection!
"The state of the workflow."
state: WorkflowState!
@@ -20389,11 +20560,11 @@ type WorkflowRun implements Node & UniformResourceLocatable {
"The log of deployment reviews"
deploymentReviews(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentReviewConnection!
@@ -20405,11 +20576,11 @@ type WorkflowRun implements Node & UniformResourceLocatable {
"The pending deployment requests of all check runs in this workflow run"
pendingDeploymentRequests(
"Returns the elements in the list that come after the specified cursor."
- after: String,
+ after: String
"Returns the elements in the list that come before the specified cursor."
- before: String,
+ before: String
"Returns the first _n_ elements from the list."
- first: Int,
+ first: Int
"Returns the last _n_ elements from the list."
last: Int
): DeploymentRequestConnection!
@@ -21641,17 +21812,32 @@ enum PackageType {
"A debian package."
DEBIAN
"A docker image."
- DOCKER @deprecated(reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC.")
+ DOCKER
+ @deprecated(
+ reason: "DOCKER will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2021-06-21 UTC."
+ )
"A maven package."
- MAVEN @deprecated(reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC.")
+ MAVEN
+ @deprecated(
+ reason: "MAVEN will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2023-02-10 UTC."
+ )
"An npm package."
- NPM @deprecated(reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC.")
+ NPM
+ @deprecated(
+ reason: "NPM will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC."
+ )
"A nuget package."
- NUGET @deprecated(reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC.")
+ NUGET
+ @deprecated(
+ reason: "NUGET will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-11-21 UTC."
+ )
"A python package."
PYPI
"A rubygems package."
- RUBYGEMS @deprecated(reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC.")
+ RUBYGEMS
+ @deprecated(
+ reason: "RUBYGEMS will be removed from this enum as this type will be migrated to only be used by the Packages REST API. Removal on 2022-12-28 UTC."
+ )
}
"Properties by which package version connections can be ordered."
@@ -23670,7 +23856,6 @@ input AddProjectV2ItemByIdInput {
"Autogenerated input type of AddPullRequestReviewComment"
input AddPullRequestReviewCommentInput {
"""
-
The text of the comment. This field is required
**Upcoming Change on 2023-10-01 UTC**
@@ -23681,7 +23866,6 @@ input AddPullRequestReviewCommentInput {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"""
-
The SHA of the commit to comment on.
**Upcoming Change on 2023-10-01 UTC**
@@ -23690,7 +23874,6 @@ input AddPullRequestReviewCommentInput {
"""
commitOID: GitObjectID
"""
-
The comment id to reply to.
**Upcoming Change on 2023-10-01 UTC**
@@ -23699,7 +23882,6 @@ input AddPullRequestReviewCommentInput {
"""
inReplyTo: ID
"""
-
The relative path of the file to comment on.
**Upcoming Change on 2023-10-01 UTC**
@@ -23708,7 +23890,6 @@ input AddPullRequestReviewCommentInput {
"""
path: String
"""
-
The line index in the diff to comment on.
**Upcoming Change on 2023-10-01 UTC**
@@ -23717,7 +23898,6 @@ input AddPullRequestReviewCommentInput {
"""
position: Int
"""
-
The node ID of the pull request reviewing
**Upcoming Change on 2023-10-01 UTC**
@@ -23726,7 +23906,6 @@ input AddPullRequestReviewCommentInput {
"""
pullRequestId: ID
"""
-
The Node ID of the review to modify.
**Upcoming Change on 2023-10-01 UTC**
@@ -23743,7 +23922,6 @@ input AddPullRequestReviewInput {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"""
-
The review line comments.
**Upcoming Change on 2023-10-01 UTC**
@@ -24166,7 +24344,6 @@ input CommitMessagePatternParametersInput {
}
"""
-
A git ref for a commit to be appended to.
The ref must be a branch, i.e. its fully qualified name must start
@@ -24533,7 +24710,6 @@ input CreateProjectV2Input {
"Autogenerated input type of CreatePullRequest"
input CreatePullRequestInput {
"""
-
The name of the branch you want your changes pulled into. This should be an existing branch
on the current repository. You cannot update the base branch on a pull request to point
to another repository.
@@ -24546,7 +24722,6 @@ input CreatePullRequestInput {
"Indicates whether this pull request should be a draft."
draft: Boolean = false
"""
-
The name of the branch where your changes are implemented. For cross-repository pull requests
in the same network, namespace `head_ref_name` with a user like this: `username:branch`.
"""
@@ -24704,7 +24879,6 @@ input CreateSponsorshipsInput {
"Autogenerated input type of CreateTeamDiscussionComment"
input CreateTeamDiscussionCommentInput {
"""
-
The content of the comment. This field is required.
**Upcoming Change on 2024-07-01 UTC**
@@ -24715,7 +24889,6 @@ input CreateTeamDiscussionCommentInput {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"""
-
The ID of the discussion to which the comment belongs. This field is required.
**Upcoming Change on 2024-07-01 UTC**
@@ -24728,7 +24901,6 @@ input CreateTeamDiscussionCommentInput {
"Autogenerated input type of CreateTeamDiscussion"
input CreateTeamDiscussionInput {
"""
-
The content of the discussion. This field is required.
**Upcoming Change on 2024-07-01 UTC**
@@ -24739,7 +24911,6 @@ input CreateTeamDiscussionInput {
"A unique identifier for the client performing the mutation."
clientMutationId: String
"""
-
If true, restricts the visibility of this discussion to team members and organization admins. If false or not specified, allows any organization member to view this discussion.
**Upcoming Change on 2024-07-01 UTC**
@@ -24748,7 +24919,6 @@ input CreateTeamDiscussionInput {
"""
private: Boolean
"""
-
The ID of the team to which the discussion belongs. This field is required.
**Upcoming Change on 2024-07-01 UTC**
@@ -24757,7 +24927,6 @@ input CreateTeamDiscussionInput {
"""
teamId: ID
"""
-
The title of the discussion. This field is required.
**Upcoming Change on 2024-07-01 UTC**
@@ -25154,7 +25323,6 @@ input FileAddition {
}
"""
-
A description of a set of changes to a file tree to be made as part of
a git commit, modeled as zero or more file `additions` and zero or more
file `deletions`.
@@ -27079,7 +27247,6 @@ input UpdatePullRequestInput {
"An array of Node IDs of users for this pull request."
assigneeIds: [ID!]
"""
-
The name of the branch you want your changes pulled into. This should be an existing branch
on the current repository.
"""
src/all-badges/abc-commit/abc-commit.ts
@@ -1,7 +1,7 @@
-import {Commit, Repo} from '../../collect/collect.js'
-import {BadgePresenter, ID, Present} from '../../badges.js'
+import { Commit, Repo } from '../../collect/collect.js'
+import { BadgePresenter, ID, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
badges = [
'a-commit',
@@ -27,8 +27,11 @@ export default new class implements BadgePresenter {
for (const [prefix, badge] of types) {
const re = new RegExp(`^(${prefix})`)
if (re.test(commit.sha)) {
- order[prefix.length] = () => grant(badge, `One of my commit sha starts with "${prefix}".`)
- .evidence(link(re, repo, commit))
+ order[prefix.length] = () =>
+ grant(
+ badge,
+ `One of my commit sha starts with "${prefix}".`,
+ ).evidence(link(re, repo, commit))
break
}
}
@@ -41,7 +44,7 @@ export default new class implements BadgePresenter {
}
}
}
-}
+})()
function link(re: RegExp, repo: Repo, commit: Commit) {
const sha = commit.sha.replace(re, '<strong>$1</strong>')
src/all-badges/dead-commit/dead-commit.ts
@@ -1,30 +1,32 @@
-import {Commit, Repo} from '../../collect/collect.js'
-import {BadgePresenter, Present} from '../../badges.js'
+import { Commit, Repo } from '../../collect/collect.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'dead-commit',
- ] as const
+ badges = ['dead-commit'] as const
present: Present = (data, grant) => {
- const commits: {repo: Repo, commit: Commit}[] = []
+ const commits: { repo: Repo; commit: Commit }[] = []
for (const repo of data.repos) {
for (const commit of repo.commits) {
if (commit.sha.includes('dead')) {
- commits.push({repo, commit})
+ commits.push({ repo, commit })
}
}
}
- const text = commits.map(({repo, commit}) => {
- const sha = commit.sha.replace(/dead/, '<strong>dead</strong>')
- return `- <a href="https://github.com/${repo.owner.login}/${repo.name}/commit/${commit.sha}">${sha}</a>`
- }).join('\n')
+ const text = commits
+ .map(({ repo, commit }) => {
+ const sha = commit.sha.replace(/dead/, '<strong>dead</strong>')
+ return `- <a href="https://github.com/${repo.owner.login}/${repo.name}/commit/${commit.sha}">${sha}</a>`
+ })
+ .join('\n')
if (commits.length >= 1) {
- grant('dead-commit', `I pushed a commit with "dead" ${commits.length} times.`)
- .evidence(text)
+ grant(
+ 'dead-commit',
+ `I pushed a commit with "dead" ${commits.length} times.`,
+ ).evidence(text)
}
}
-}
+})()
src/all-badges/fuck-commit/fuck-commit.ts
@@ -1,12 +1,10 @@
-import {Commit, Repo} from '../../collect/collect.js'
-import {Present, BadgePresenter} from '../../badges.js'
-import {linkCommit} from '../../utils.js'
+import { Commit, Repo } from '../../collect/collect.js'
+import { Present, BadgePresenter } from '../../badges.js'
+import { linkCommit } from '../../utils.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'fuck-commit',
- ] as const
+ badges = ['fuck-commit'] as const
present: Present = (data, grant) => {
const commits: Commit[] = []
@@ -19,8 +17,10 @@ export default new class implements BadgePresenter {
}
if (commits.length > 0) {
- grant('fuck-commit', 'I used a word "fuck" in my commit message.')
- .evidenceCommits(...commits)
+ grant(
+ 'fuck-commit',
+ 'I used a word "fuck" in my commit message.',
+ ).evidenceCommits(...commits)
}
}
-}
+})()
src/all-badges/mass-delete-commit/mass-delete-commit.ts
@@ -1,11 +1,8 @@
-import {BadgePresenter, Present} from '../../badges.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'mass-delete-commit',
- 'mass-delete-commit-10k',
- ] as const
+ badges = ['mass-delete-commit', 'mass-delete-commit-10k'] as const
present: Present = (data, grant) => {
for (const repo of data.repos) {
for (const commit of repo.commits) {
@@ -13,18 +10,22 @@ export default new class implements BadgePresenter {
(commit.deletions ?? 0) > 1000 &&
(commit.deletions ?? 0) / (commit.additions ?? 0) > 100
) {
- grant('mass-delete-commit', 'When I delete code, I delete a lot.')
- .evidenceCommits(commit)
+ grant(
+ 'mass-delete-commit',
+ 'When I delete code, I delete a lot.',
+ ).evidenceCommits(commit)
}
if (
(commit.deletions ?? 0) > 10_000 &&
(commit.deletions ?? 0) / (commit.additions ?? 0) > 100
) {
- grant('mass-delete-commit-10k', 'When I delete code, I delete a lot.')
- .evidenceCommits(commit)
+ grant(
+ 'mass-delete-commit-10k',
+ 'When I delete code, I delete a lot.',
+ ).evidenceCommits(commit)
}
}
}
}
-}
+})()
src/all-badges/my-badges-contributor/my-badges-contributor.ts
@@ -1,24 +1,26 @@
-import { Pull } from "../../collect/collect.js";
-import { BadgePresenter, Present } from '../../badges.js';
+import { Pull } from '../../collect/collect.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
- url = new URL(import.meta.url);
- badges = [
- 'my-badges-contributor',
- ] as const;
+export default new (class implements BadgePresenter {
+ url = new URL(import.meta.url)
+ badges = ['my-badges-contributor'] as const
present: Present = (data, grant) => {
- const pulls: Pull[] = [];
+ const pulls: Pull[] = []
for (const pull of data.pulls) {
- if (pull.repository.name === 'my-badges' &&
+ if (
+ pull.repository.name === 'my-badges' &&
pull.repository.owner.login === 'my-badges' &&
- pull.merged) {
- pulls.push(pull);
+ pull.merged
+ ) {
+ pulls.push(pull)
}
}
if (pulls.length > 0) {
- grant('my-badges-contributor', 'I contributed to <https://github.com/my-badges/my-badges>!')
- .evidencePRs(...pulls);
+ grant(
+ 'my-badges-contributor',
+ 'I contributed to <https://github.com/my-badges/my-badges>!',
+ ).evidencePRs(...pulls)
}
}
-}
+})()
src/all-badges/revert-revert-commit/revert-revert-commit.ts
@@ -1,11 +1,9 @@
-import {Commit} from '../../collect/collect.js'
-import {BadgePresenter, Present} from '../../badges.js'
+import { Commit } from '../../collect/collect.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'revert-revert-commit',
- ] as const
+ badges = ['revert-revert-commit'] as const
present: Present = (data, grant) => {
const commits: Commit[] = []
@@ -18,8 +16,10 @@ export default new class implements BadgePresenter {
}
if (commits.length > 0) {
- grant('revert-revert-commit', 'I reverted a revert commit.')
- .evidenceCommits(...commits)
+ grant(
+ 'revert-revert-commit',
+ 'I reverted a revert commit.',
+ ).evidenceCommits(...commits)
}
}
-}
+})()
src/all-badges/star-gazer/star-gazer.ts
@@ -1,14 +1,13 @@
-import {BadgePresenter, Present} from '../../badges.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'star-gazer',
- ] as const
+ badges = ['star-gazer'] as const
present: Present = (data, grant) => {
if (data.user.starredRepositories.totalCount >= 1000) {
- grant('star-gazer', 'I\'m a star gazer!')
- .evidence('I\'ve starred over 1000 repositories!')
+ grant('star-gazer', "I'm a star gazer!").evidence(
+ "I've starred over 1000 repositories!",
+ )
}
}
-}
+})()
src/all-badges/stars/stars.ts
@@ -1,6 +1,6 @@
-import {BadgePresenter, Present} from '../../badges.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
badges = [
'stars-100',
@@ -38,4 +38,4 @@ export default new class implements BadgePresenter {
grant('stars-20000', 'I collected 20000 stars.')
}
}
-}
+})()
src/all-badges/time-of-commit/time-of-commit.ts
@@ -1,13 +1,9 @@
-import {BadgePresenter, Present} from '../../badges.js'
-import {Commit, Data, User} from '../../collect/collect.js'
+import { BadgePresenter, Present } from '../../badges.js'
+import { Commit, Data, User } from '../../collect/collect.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'midnight-commits',
- 'morning-commits',
- 'evening-commits',
- ] as const
+ badges = ['midnight-commits', 'morning-commits', 'evening-commits'] as const
present: Present = (data, grant) => {
const morningCommits: Commit[] = []
const eveningCommits: Commit[] = []
@@ -34,142 +30,147 @@ export default new class implements BadgePresenter {
}
if (morningCommits.length > 0) {
- grant('morning-commits', 'I commit in the morning.')
- .evidenceCommits(...morningCommits.sort(latest).slice(0, 6))
+ grant('morning-commits', 'I commit in the morning.').evidenceCommits(
+ ...morningCommits.sort(latest).slice(0, 6),
+ )
}
if (eveningCommits.length > 0) {
- grant('evening-commits', 'I commit in the evening.')
- .evidenceCommits(...eveningCommits.sort(latest).slice(0, 6))
+ grant('evening-commits', 'I commit in the evening.').evidenceCommits(
+ ...eveningCommits.sort(latest).slice(0, 6),
+ )
}
if (midnightCommits.length > 0) {
- grant('midnight-commits', 'I commit at midnight.')
- .evidenceCommits(...midnightCommits.sort(latest).slice(0, 6))
+ grant('midnight-commits', 'I commit at midnight.').evidenceCommits(
+ ...midnightCommits.sort(latest).slice(0, 6),
+ )
}
}
-}
+})()
function latest(a: Commit, b: Commit) {
- return new Date(b.committedDate).getTime() - new Date(a.committedDate).getTime()
+ return (
+ new Date(b.committedDate).getTime() - new Date(a.committedDate).getTime()
+ )
}
function guessTimezone(user: User) {
const location = user.location ? user.location.toLowerCase() : ''
const regexMapping = [
- {pattern: /\bamsterdam\b|\bnetherlands\b/, offset: 2},
- {pattern: /\bantwerp\b|\bghent\b/, offset: 2},
- {pattern: /\bargentina\b|\bbuenos aires\b/, offset: -3},
- {pattern: /\bathens\b|\bgreece\b/, offset: 3},
- {pattern: /\bbangkok\b|\bthailand\b/, offset: 7},
- {pattern: /\bbarcelona\b|\bvalencia\b|\bseville\b/, offset: 2},
- {pattern: /\bbeijing\b|\bchina\b/, offset: 8},
- {pattern: /\bbelgrade\b|\bserbia\b/, offset: 2},
- {pattern: /\bberlin\b|\bgermany\b/, offset: 2},
- {pattern: /\bbilbao\b|\bzaragoza\b/, offset: 2},
- {pattern: /\bbordeaux\b|\bmarseille\b|\blyon\b/, offset: 2},
- {pattern: /\bbratislava\b|\bslovakia\b/, offset: 2},
- {pattern: /\bbrazil\b|\bsao paulo\b|\brio de janeiro\b/, offset: -3},
- {pattern: /\bbrussels\b|\bbelgium\b/, offset: 2},
- {pattern: /\bbucharest\b|\bromania\b/, offset: 3},
- {pattern: /\bbudapest\b|\bhungary\b/, offset: 2},
- {pattern: /\bcairo\b|\begypt\b/, offset: 2},
- {pattern: /\bcasablanca\b|\bmorocco\b/, offset: 1},
- {pattern: /\bchicago\b|\billinois\b|\bil\b/, offset: -5},
- {pattern: /\bchile\b|\bsantiago\b/, offset: -3},
- {pattern: /\bchisinau\b|\bmoldova\b/, offset: 3},
- {pattern: /\bcolombia\b|\bbogota\b/, offset: -5},
- {pattern: /\bcopenhagen\b|\bdenmark\b/, offset: 2},
- {pattern: /\bcosta rica\b|\bsan jose\b/, offset: -6},
- {pattern: /\bcrete\b|\bthessaloniki\b/, offset: 3},
- {pattern: /\bdhaka\b|\bbangladesh\b/, offset: 6},
- {pattern: /\bdubai\b|\buae\b|\babu dhabi\b/, offset: 4},
- {pattern: /\bdublin\b|\bireland\b/, offset: 1},
- {pattern: /\becuador\b|\bquito\b/, offset: -5},
- {pattern: /\bfaro\b|\bevora\b/, offset: 1},
- {pattern: /\bfiji\b/, offset: 12},
- {pattern: /\bflorence\b|\bpalermo\b/, offset: 2},
- {pattern: /\bflorida\b|\bmiami\b/, offset: -4},
- {pattern: /\bgdansk\b|\bwroclaw\b/, offset: 2},
- {pattern: /\bgeneva\b|\bbern\b/, offset: 2},
- {pattern: /\bgenoa\b|\bturin\b/, offset: 2},
- {pattern: /\bglasgow\b|\bliverpool\b|\bmanchester\b/, offset: 0},
- {pattern: /\bgothenburg\b|\bmalmo\b/, offset: 2},
- {pattern: /\bhamburg\b|\bmunich\b|\bfrankfurt\b/, offset: 2},
- {pattern: /\bhawaii\b/, offset: -10},
- {pattern: /\bhelsinki\b|\bfinland\b/, offset: 3},
- {pattern: /\biraq\b|\bbaghdad\b/, offset: 3},
- {pattern: /\bisrael\b|\btel aviv\b/, offset: 3},
- {pattern: /\bjakarta\b|\bindonesia\b/, offset: 7},
- {pattern: /\bjohannesburg\b|\bsouth africa\b/, offset: 2},
- {pattern: /\bjordan\b|\bamman\b/, offset: 3},
- {pattern: /\bkathmandu\b|\bnepal\b/, offset: 5.75},
- {pattern: /\bkiev\b|\bukraine\b/, offset: 3},
- {pattern: /\bkuala lumpur\b|\bmalaysia\b/, offset: 8},
- {pattern: /\blagos\b|\bnigeria\b/, offset: 1},
- {pattern: /\bled\b|\bslovenia\b/, offset: 2},
- {pattern: /\bledz\b|\bkrakow\b/, offset: 2},
- {pattern: /\blisbon\b|\bportugal\b/, offset: 1},
- {pattern: /\bljubljana\b|\bslovenia\b/, offset: 2},
- {pattern: /\blondon\b|\buk\b/, offset: 0},
- {pattern: /\blos angeles\b|\bcalifornia\b|\bca\b/, offset: -7},
- {pattern: /\bluxembourg\b/, offset: 2},
- {pattern: /\blyon\b|\bnantes\b/, offset: 2},
- {pattern: /\bmadrid\b|\bspain\b/, offset: 2},
- {pattern: /\bmalta\b|\bvalletta\b/, offset: 2},
- {pattern: /\bmelbourne\b/, offset: 11},
- {pattern: /\bmexico\b|\bmexico city\b/, offset: -5},
- {pattern: /\bminsk\b|\bbelarus\b/, offset: 3},
- {pattern: /\bmonaco\b/, offset: 2},
- {pattern: /\bmontreal\b|\bquebec\b/, offset: -4},
- {pattern: /\bmoscow\b|\brussia\b/, offset: 3},
- {pattern: /\bmumbai\b|\bindia\b/, offset: 5.5},
- {pattern: /\bnairobi\b|\bkenya\b/, offset: 3},
- {pattern: /\bnaples\b|\bmilan\b|\bvenice\b/, offset: 2},
- {pattern: /\bnew delhi\b/, offset: 5.5},
- {pattern: /\bnew york\b|\bny\b/, offset: -4},
- {pattern: /\bnew zealand\b|\bauckland\b/, offset: 13},
- {pattern: /\bnice\b|\btoulouse\b/, offset: 2},
- {pattern: /\bnicosia\b|\bcyprus\b/, offset: 3},
- {pattern: /\bodessa\b|\blviv\b/, offset: 3},
- {pattern: /\boslo\b|\bnorway\b/, offset: 2},
- {pattern: /\bpakistan\b|\blahore\b|\bkarachi\b/, offset: 5},
- {pattern: /\bpanama\b|\bpanama city\b/, offset: -5},
- {pattern: /\bpapua new guinea\b|\bport moresby\b/, offset: 10},
- {pattern: /\bparis\b|\bfrance\b/, offset: 2},
- {pattern: /\bperu\b|\blima\b/, offset: -5},
- {pattern: /\bpodgorica\b|\bmontenegro\b/, offset: 2},
- {pattern: /\bporto\b|\bbraga\b/, offset: 1},
- {pattern: /\bprague\b|\bczech republic\b|\bczechia\b/, offset: 2},
- {pattern: /\breykjavik\b|\biceland\b/, offset: 0},
- {pattern: /\briga\b|\blatvia\b/, offset: 3},
- {pattern: /\brome\b|\bitaly\b/, offset: 2},
- {pattern: /\brotterdam\b|\butrecht\b/, offset: 2},
- {pattern: /\bsalzburg\b|\bgraz\b/, offset: 2},
- {pattern: /\bsarajevo\b|\bbosnia and herzegovina\b/, offset: 2},
- {pattern: /\bsaudi arabia\b|\briyadh\b/, offset: 3},
- {pattern: /\bseoul\b|\bsouth korea\b/, offset: 9},
- {pattern: /\bshanghai\b/, offset: 8},
- {pattern: /\bsheffield\b|\bleeds\b/, offset: 0},
- {pattern: /\bsingapore\b/, offset: 8},
- {pattern: /\bskopje\b|\bnorth macedonia\b/, offset: 2},
- {pattern: /\bsofia\b|\bbulgaria\b/, offset: 3},
- {pattern: /\bstockholm\b|\bsweden\b/, offset: 2},
- {pattern: /\bstuttgart\b|\bdusseldorf\b/, offset: 2},
- {pattern: /\bsydney\b|\baustralia\b/, offset: 11},
- {pattern: /\btallinn\b|\bestonia\b/, offset: 3},
- {pattern: /\btehran\b|\biran\b/, offset: 3.5},
- {pattern: /\btexas\b|\bhouston\b|\bdallas\b/, offset: -5},
- {pattern: /\btirana\b|\balbania\b/, offset: 2},
- {pattern: /\btokyo\b|\bjapan\b/, offset: 9},
- {pattern: /\btoronto\b|\bontario\b/, offset: -4},
- {pattern: /\btunisia\b|\btunis\b/, offset: 1},
- {pattern: /\bvalencia\b|\bmalaga\b/, offset: 2},
- {pattern: /\bvancouver\b|\bbritish columbia\b/, offset: -7},
- {pattern: /\bvenezuela\b|\bcaracas\b/, offset: -4},
- {pattern: /\bvienna\b|\baustria\b/, offset: 2},
- {pattern: /\bvilnius\b|\blithuania\b/, offset: 3},
- {pattern: /\bwarsaw\b|\bpoland\b/, offset: 2},
- {pattern: /\bzagreb\b|\bcroatia\b/, offset: 2},
- {pattern: /\bzurich\b|\bswitzerland\b/, offset: 2},
+ { pattern: /\bamsterdam\b|\bnetherlands\b/, offset: 2 },
+ { pattern: /\bantwerp\b|\bghent\b/, offset: 2 },
+ { pattern: /\bargentina\b|\bbuenos aires\b/, offset: -3 },
+ { pattern: /\bathens\b|\bgreece\b/, offset: 3 },
+ { pattern: /\bbangkok\b|\bthailand\b/, offset: 7 },
+ { pattern: /\bbarcelona\b|\bvalencia\b|\bseville\b/, offset: 2 },
+ { pattern: /\bbeijing\b|\bchina\b/, offset: 8 },
+ { pattern: /\bbelgrade\b|\bserbia\b/, offset: 2 },
+ { pattern: /\bberlin\b|\bgermany\b/, offset: 2 },
+ { pattern: /\bbilbao\b|\bzaragoza\b/, offset: 2 },
+ { pattern: /\bbordeaux\b|\bmarseille\b|\blyon\b/, offset: 2 },
+ { pattern: /\bbratislava\b|\bslovakia\b/, offset: 2 },
+ { pattern: /\bbrazil\b|\bsao paulo\b|\brio de janeiro\b/, offset: -3 },
+ { pattern: /\bbrussels\b|\bbelgium\b/, offset: 2 },
+ { pattern: /\bbucharest\b|\bromania\b/, offset: 3 },
+ { pattern: /\bbudapest\b|\bhungary\b/, offset: 2 },
+ { pattern: /\bcairo\b|\begypt\b/, offset: 2 },
+ { pattern: /\bcasablanca\b|\bmorocco\b/, offset: 1 },
+ { pattern: /\bchicago\b|\billinois\b|\bil\b/, offset: -5 },
+ { pattern: /\bchile\b|\bsantiago\b/, offset: -3 },
+ { pattern: /\bchisinau\b|\bmoldova\b/, offset: 3 },
+ { pattern: /\bcolombia\b|\bbogota\b/, offset: -5 },
+ { pattern: /\bcopenhagen\b|\bdenmark\b/, offset: 2 },
+ { pattern: /\bcosta rica\b|\bsan jose\b/, offset: -6 },
+ { pattern: /\bcrete\b|\bthessaloniki\b/, offset: 3 },
+ { pattern: /\bdhaka\b|\bbangladesh\b/, offset: 6 },
+ { pattern: /\bdubai\b|\buae\b|\babu dhabi\b/, offset: 4 },
+ { pattern: /\bdublin\b|\bireland\b/, offset: 1 },
+ { pattern: /\becuador\b|\bquito\b/, offset: -5 },
+ { pattern: /\bfaro\b|\bevora\b/, offset: 1 },
+ { pattern: /\bfiji\b/, offset: 12 },
+ { pattern: /\bflorence\b|\bpalermo\b/, offset: 2 },
+ { pattern: /\bflorida\b|\bmiami\b/, offset: -4 },
+ { pattern: /\bgdansk\b|\bwroclaw\b/, offset: 2 },
+ { pattern: /\bgeneva\b|\bbern\b/, offset: 2 },
+ { pattern: /\bgenoa\b|\bturin\b/, offset: 2 },
+ { pattern: /\bglasgow\b|\bliverpool\b|\bmanchester\b/, offset: 0 },
+ { pattern: /\bgothenburg\b|\bmalmo\b/, offset: 2 },
+ { pattern: /\bhamburg\b|\bmunich\b|\bfrankfurt\b/, offset: 2 },
+ { pattern: /\bhawaii\b/, offset: -10 },
+ { pattern: /\bhelsinki\b|\bfinland\b/, offset: 3 },
+ { pattern: /\biraq\b|\bbaghdad\b/, offset: 3 },
+ { pattern: /\bisrael\b|\btel aviv\b/, offset: 3 },
+ { pattern: /\bjakarta\b|\bindonesia\b/, offset: 7 },
+ { pattern: /\bjohannesburg\b|\bsouth africa\b/, offset: 2 },
+ { pattern: /\bjordan\b|\bamman\b/, offset: 3 },
+ { pattern: /\bkathmandu\b|\bnepal\b/, offset: 5.75 },
+ { pattern: /\bkiev\b|\bukraine\b/, offset: 3 },
+ { pattern: /\bkuala lumpur\b|\bmalaysia\b/, offset: 8 },
+ { pattern: /\blagos\b|\bnigeria\b/, offset: 1 },
+ { pattern: /\bled\b|\bslovenia\b/, offset: 2 },
+ { pattern: /\bledz\b|\bkrakow\b/, offset: 2 },
+ { pattern: /\blisbon\b|\bportugal\b/, offset: 1 },
+ { pattern: /\bljubljana\b|\bslovenia\b/, offset: 2 },
+ { pattern: /\blondon\b|\buk\b/, offset: 0 },
+ { pattern: /\blos angeles\b|\bcalifornia\b|\bca\b/, offset: -7 },
+ { pattern: /\bluxembourg\b/, offset: 2 },
+ { pattern: /\blyon\b|\bnantes\b/, offset: 2 },
+ { pattern: /\bmadrid\b|\bspain\b/, offset: 2 },
+ { pattern: /\bmalta\b|\bvalletta\b/, offset: 2 },
+ { pattern: /\bmelbourne\b/, offset: 11 },
+ { pattern: /\bmexico\b|\bmexico city\b/, offset: -5 },
+ { pattern: /\bminsk\b|\bbelarus\b/, offset: 3 },
+ { pattern: /\bmonaco\b/, offset: 2 },
+ { pattern: /\bmontreal\b|\bquebec\b/, offset: -4 },
+ { pattern: /\bmoscow\b|\brussia\b/, offset: 3 },
+ { pattern: /\bmumbai\b|\bindia\b/, offset: 5.5 },
+ { pattern: /\bnairobi\b|\bkenya\b/, offset: 3 },
+ { pattern: /\bnaples\b|\bmilan\b|\bvenice\b/, offset: 2 },
+ { pattern: /\bnew delhi\b/, offset: 5.5 },
+ { pattern: /\bnew york\b|\bny\b/, offset: -4 },
+ { pattern: /\bnew zealand\b|\bauckland\b/, offset: 13 },
+ { pattern: /\bnice\b|\btoulouse\b/, offset: 2 },
+ { pattern: /\bnicosia\b|\bcyprus\b/, offset: 3 },
+ { pattern: /\bodessa\b|\blviv\b/, offset: 3 },
+ { pattern: /\boslo\b|\bnorway\b/, offset: 2 },
+ { pattern: /\bpakistan\b|\blahore\b|\bkarachi\b/, offset: 5 },
+ { pattern: /\bpanama\b|\bpanama city\b/, offset: -5 },
+ { pattern: /\bpapua new guinea\b|\bport moresby\b/, offset: 10 },
+ { pattern: /\bparis\b|\bfrance\b/, offset: 2 },
+ { pattern: /\bperu\b|\blima\b/, offset: -5 },
+ { pattern: /\bpodgorica\b|\bmontenegro\b/, offset: 2 },
+ { pattern: /\bporto\b|\bbraga\b/, offset: 1 },
+ { pattern: /\bprague\b|\bczech republic\b|\bczechia\b/, offset: 2 },
+ { pattern: /\breykjavik\b|\biceland\b/, offset: 0 },
+ { pattern: /\briga\b|\blatvia\b/, offset: 3 },
+ { pattern: /\brome\b|\bitaly\b/, offset: 2 },
+ { pattern: /\brotterdam\b|\butrecht\b/, offset: 2 },
+ { pattern: /\bsalzburg\b|\bgraz\b/, offset: 2 },
+ { pattern: /\bsarajevo\b|\bbosnia and herzegovina\b/, offset: 2 },
+ { pattern: /\bsaudi arabia\b|\briyadh\b/, offset: 3 },
+ { pattern: /\bseoul\b|\bsouth korea\b/, offset: 9 },
+ { pattern: /\bshanghai\b/, offset: 8 },
+ { pattern: /\bsheffield\b|\bleeds\b/, offset: 0 },
+ { pattern: /\bsingapore\b/, offset: 8 },
+ { pattern: /\bskopje\b|\bnorth macedonia\b/, offset: 2 },
+ { pattern: /\bsofia\b|\bbulgaria\b/, offset: 3 },
+ { pattern: /\bstockholm\b|\bsweden\b/, offset: 2 },
+ { pattern: /\bstuttgart\b|\bdusseldorf\b/, offset: 2 },
+ { pattern: /\bsydney\b|\baustralia\b/, offset: 11 },
+ { pattern: /\btallinn\b|\bestonia\b/, offset: 3 },
+ { pattern: /\btehran\b|\biran\b/, offset: 3.5 },
+ { pattern: /\btexas\b|\bhouston\b|\bdallas\b/, offset: -5 },
+ { pattern: /\btirana\b|\balbania\b/, offset: 2 },
+ { pattern: /\btokyo\b|\bjapan\b/, offset: 9 },
+ { pattern: /\btoronto\b|\bontario\b/, offset: -4 },
+ { pattern: /\btunisia\b|\btunis\b/, offset: 1 },
+ { pattern: /\bvalencia\b|\bmalaga\b/, offset: 2 },
+ { pattern: /\bvancouver\b|\bbritish columbia\b/, offset: -7 },
+ { pattern: /\bvenezuela\b|\bcaracas\b/, offset: -4 },
+ { pattern: /\bvienna\b|\baustria\b/, offset: 2 },
+ { pattern: /\bvilnius\b|\blithuania\b/, offset: 3 },
+ { pattern: /\bwarsaw\b|\bpoland\b/, offset: 2 },
+ { pattern: /\bzagreb\b|\bcroatia\b/, offset: 2 },
+ { pattern: /\bzurich\b|\bswitzerland\b/, offset: 2 },
]
for (const mapping of regexMapping) {
@@ -180,4 +181,3 @@ function guessTimezone(user: User) {
return 0
}
-
src/all-badges/yeti/yeti.ts
@@ -1,19 +1,16 @@
-import {BadgePresenter, Present} from '../../badges.js'
+import { BadgePresenter, Present } from '../../badges.js'
-export default new class implements BadgePresenter {
+export default new (class implements BadgePresenter {
url = new URL(import.meta.url)
- badges = [
- 'yeti',
- ] as const
+ badges = ['yeti'] as const
present: Present = (data, grant) => {
for (const repo of data.repos) {
for (const commit of repo.commits) {
if (/yeti/i.test(commit.message)) {
- grant('yeti', 'I found the yeti!')
- .evidenceCommits(commit)
+ grant('yeti', 'I found the yeti!').evidenceCommits(commit)
return
}
}
}
}
-}
+})()
src/collect/collect.ts
@@ -1,11 +1,11 @@
-import {Octokit} from 'octokit'
-import {Endpoints} from '@octokit/types'
-import {PullsQuery} from './pulls.js'
-import {CommitsQuery} from './commits.js'
+import { Octokit } from 'octokit'
+import { Endpoints } from '@octokit/types'
+import { PullsQuery } from './pulls.js'
+import { CommitsQuery } from './commits.js'
import fs from 'node:fs'
-import {fileURLToPath} from 'url'
-import {IssuesQuery} from './issues.js'
-import {UserQuery} from './user.js'
+import { fileURLToPath } from 'url'
+import { IssuesQuery } from './issues.js'
+import { UserQuery } from './user.js'
export type Data = {
user: User
@@ -14,15 +14,23 @@ export type Data = {
issues: Issues[]
}
export type User = UserQuery['user']
-export type Repo = Endpoints['GET /users/{username}/repos']['response']['data'][0] & {
- commits: Commit[]
-}
-export type Commit = CommitsQuery['repository']['defaultBranchRef']['target']['history']['nodes'][0]
+export type Repo =
+ Endpoints['GET /users/{username}/repos']['response']['data'][0] & {
+ commits: Commit[]
+ }
+export type Commit =
+ CommitsQuery['repository']['defaultBranchRef']['target']['history']['nodes'][0]
export type Pull = PullsQuery['user']['pullRequests']['nodes'][0]
export type Issues = IssuesQuery['user']['issues']['nodes'][0]
-export async function collect(username: string, octokit: Octokit): Promise<Data> {
- const {user} = await octokit.graphql<UserQuery>(loadGraphql('./user.graphql'), {login: username})
+export async function collect(
+ username: string,
+ octokit: Octokit,
+): Promise<Data> {
+ const { user } = await octokit.graphql<UserQuery>(
+ loadGraphql('./user.graphql'),
+ { login: username },
+ )
const data: Data = {
user: user,
@@ -52,40 +60,64 @@ export async function collect(username: string, octokit: Octokit): Promise<Data>
for (const repo of data.repos) {
console.log(`Loading commits for ${repo.owner.login}/${repo.name}`)
try {
- const commits = octokit.graphql.paginate.iterator<CommitsQuery>(loadGraphql('./commits.graphql'), {
- owner: repo.owner.login,
- name: repo.name,
- author: user.id,
- })
+ const commits = octokit.graphql.paginate.iterator<CommitsQuery>(
+ loadGraphql('./commits.graphql'),
+ {
+ owner: repo.owner.login,
+ name: repo.name,
+ author: user.id,
+ },
+ )
for await (const resp of commits) {
- const {totalCount, nodes} = resp.repository.defaultBranchRef.target.history
- console.log(`| commits ${nodes.length}/${totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`)
+ const { totalCount, nodes } =
+ resp.repository.defaultBranchRef.target.history
+ console.log(
+ `| commits ${nodes.length}/${totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`,
+ )
for (const commit of nodes) {
repo.commits.push(commit)
}
}
} catch (err) {
- console.error(`Failed to load commits for ${repo.owner.login}/${repo.name}`)
+ console.error(
+ `Failed to load commits for ${repo.owner.login}/${repo.name}`,
+ )
console.error(err)
}
}
- const pulls = octokit.graphql.paginate.iterator<PullsQuery>(loadGraphql('./pulls.graphql'), {
- username,
- })
+ const pulls = octokit.graphql.paginate.iterator<PullsQuery>(
+ loadGraphql('./pulls.graphql'),
+ {
+ username,
+ },
+ )
for await (const resp of pulls) {
- console.log(`Loading pull requests ${data.pulls.length + resp.user.pullRequests.nodes.length}/${resp.user.pullRequests.totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`)
+ console.log(
+ `Loading pull requests ${
+ data.pulls.length + resp.user.pullRequests.nodes.length
+ }/${resp.user.pullRequests.totalCount} (cost: ${
+ resp.rateLimit.cost
+ }, remaining: ${resp.rateLimit.remaining})`,
+ )
for (const pull of resp.user.pullRequests.nodes) {
data.pulls.push(pull)
}
}
- const issues = octokit.graphql.paginate.iterator<IssuesQuery>(loadGraphql('./issues.graphql'), {
- username,
- })
+ const issues = octokit.graphql.paginate.iterator<IssuesQuery>(
+ loadGraphql('./issues.graphql'),
+ {
+ username,
+ },
+ )
for await (const resp of issues) {
- console.log(`Loading issues ${data.issues.length + resp.user.issues.nodes.length}/${resp.user.issues.totalCount} (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`)
+ console.log(
+ `Loading issues ${data.issues.length + resp.user.issues.nodes.length}/${
+ resp.user.issues.totalCount
+ } (cost: ${resp.rateLimit.cost}, remaining: ${resp.rateLimit.remaining})`,
+ )
for (const issue of resp.user.issues.nodes) {
data.issues.push(issue)
}
src/collect/commits.graphql
@@ -1,15 +1,15 @@
query CommitsQuery(
- $owner: String!,
- $name: String!,
- $author: ID!,
- $num: Int = 100,
+ $owner: String!
+ $name: String!
+ $author: ID!
+ $num: Int = 100
$cursor: String
) {
repository(owner: $owner, name: $name) {
defaultBranchRef {
target {
... on Commit {
- history(first: $num, after: $cursor, author: {id: $author}) {
+ history(first: $num, after: $cursor, author: { id: $author }) {
totalCount
nodes {
sha: oid
src/collect/issues.graphql
@@ -1,8 +1,4 @@
-query IssuesQuery(
- $username: String!,
- $num: Int = 100,
- $cursor: String
-) {
+query IssuesQuery($username: String!, $num: Int = 100, $cursor: String) {
user(login: $username) {
issues(first: $num, after: $cursor, filterBy: { createdBy: $username }) {
totalCount
src/collect/pulls.graphql
@@ -1,8 +1,4 @@
-query PullsQuery(
- $username: String!,
- $num: Int = 100,
- $cursor: String
-) {
+query PullsQuery($username: String!, $num: Int = 100, $cursor: String) {
user(login: $username) {
pullRequests(first: $num, after: $cursor) {
totalCount
src/collect/user.graphql
@@ -1,6 +1,4 @@
-query UserQuery(
- $login: String!,
-) {
+query UserQuery($login: String!) {
user(login: $login) {
id
login
src/badges.ts
@@ -12,7 +12,10 @@ export interface BadgePresenter {
present: Present
}
-export type Present = (data: Data, grant: ReturnType<typeof badgeCollection>) => void
+export type Present = (
+ data: Data,
+ grant: ReturnType<typeof badgeCollection>,
+) => void
export type Badge = {
id: ID
@@ -45,11 +48,23 @@ export function badgeCollection(badges: Badge[], baseUrl: URL) {
badge.body = text
},
evidenceCommits(...commits: Commit[]) {
- this.evidence('Commits:\n\n' + commits.map(linkCommit).map(x => '- ' + x).join('\n'))
+ this.evidence(
+ 'Commits:\n\n' +
+ commits
+ .map(linkCommit)
+ .map((x) => '- ' + x)
+ .join('\n'),
+ )
},
evidencePRs(...pulls: Pull[]) {
- this.evidence('Pull requests:\n\n' + pulls.map(linkPull).map(x => '- ' + x).join('\n'))
- }
+ this.evidence(
+ 'Pull requests:\n\n' +
+ pulls
+ .map(linkPull)
+ .map((x) => '- ' + x)
+ .join('\n'),
+ )
+ },
}
}
}
src/check-images.ts
@@ -1,13 +1,13 @@
-import {allBadges} from './all-badges/index.js'
+import { allBadges } from './all-badges/index.js'
import fs from 'node:fs'
-import {fileURLToPath} from 'url'
+import { fileURLToPath } from 'url'
import * as path from 'path'
-void async function main() {
+void (async function main() {
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '..')
let foundMissing = false
- for (const {default: b} of allBadges) {
+ for (const { default: b } of allBadges) {
const dirname = path.basename(path.dirname(fileURLToPath(b.url)))
for (const id of b.badges) {
const imagePath = path.join('src/all-badges', dirname, `${id}.png`)
@@ -24,4 +24,4 @@ void async function main() {
process.exit(1)
return
}
-}()
+})()
src/main.ts
@@ -2,24 +2,23 @@
import fs from 'node:fs'
import minimist from 'minimist'
-import {Octokit, RequestError} from 'octokit'
-import {retry} from '@octokit/plugin-retry'
-import {throttling} from '@octokit/plugin-throttling'
-import {collect, Data} from './collect/collect.js'
-import {allBadges} from './all-badges/index.js'
-import {Badge, badgeCollection} from './badges.js'
-import {updateReadme} from './update-readme.js'
-import {updateBadges} from './update-badges.js'
+import { Octokit, RequestError } from 'octokit'
+import { retry } from '@octokit/plugin-retry'
+import { throttling } from '@octokit/plugin-throttling'
+import { collect, Data } from './collect/collect.js'
+import { allBadges } from './all-badges/index.js'
+import { Badge, badgeCollection } from './badges.js'
+import { updateReadme } from './update-readme.js'
+import { updateBadges } from './update-badges.js'
-void async function main() {
+void (async function main() {
const argv = minimist(process.argv.slice(2), {
- string: [
- 'data',
- 'repo',
- ],
+ string: ['data', 'repo'],
})
const [username] = argv._
- const [owner, repo]: [string | undefined, string | undefined] = argv.repo ? argv.repo.split('/', 2) : [undefined, undefined]
+ const [owner, repo]: [string | undefined, string | undefined] = argv.repo
+ ? argv.repo.split('/', 2)
+ : [undefined, undefined]
const dataPath: string = argv.data ?? ''
const MyOctokit = Octokit.plugin(retry, throttling)
@@ -28,17 +27,21 @@ void async function main() {
log: console,
throttle: {
onRateLimit: (retryAfter, options: any, octokit, retryCount) => {
- octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`)
+ octokit.log.warn(
+ `Request quota exhausted for request ${options.method} ${options.url}`,
+ )
if (retryCount <= 3) {
octokit.log.info(`Retrying after ${retryAfter} seconds!`)
return true
}
},
onSecondaryRateLimit: (retryAfter, options: any, octokit) => {
- octokit.log.warn(`SecondaryRateLimit detected for request ${options.method} ${options.url}`)
+ octokit.log.warn(
+ `SecondaryRateLimit detected for request ${options.method} ${options.url}`,
+ )
},
},
- retry: {doNotRetry: ['429']},
+ retry: { doNotRetry: ['429'] },
})
let data: Data
@@ -66,11 +69,17 @@ void async function main() {
if (owner && repo) {
console.log('Loading my-badges.json')
try {
- const myBadgesResp = await octokit.request<'content-file'>('GET /repos/{owner}/{repo}/contents/{path}', {
- owner, repo,
- path: 'my-badges/my-badges.json',
- })
- oldJson = Buffer.from(myBadgesResp.data.content, 'base64').toString('utf8')
+ const myBadgesResp = await octokit.request<'content-file'>(
+ 'GET /repos/{owner}/{repo}/contents/{path}',
+ {
+ owner,
+ repo,
+ path: 'my-badges/my-badges.json',
+ },
+ )
+ oldJson = Buffer.from(myBadgesResp.data.content, 'base64').toString(
+ 'utf8',
+ )
jsonSha = myBadgesResp.data.sha
badges = JSON.parse(oldJson)
} catch (err) {
@@ -80,8 +89,7 @@ void async function main() {
}
}
-
- for (const {default: presenter} of allBadges) {
+ for (const { default: presenter } of allBadges) {
const grant = badgeCollection(badges, presenter.url)
presenter.present(data, grant)
}
@@ -91,4 +99,4 @@ void async function main() {
await updateBadges(octokit, owner, repo, badges, oldJson, jsonSha)
await updateReadme(octokit, owner, repo, badges)
}
-}()
+})()
src/update-badges.ts
@@ -1,8 +1,15 @@
-import {Octokit, RequestError} from 'octokit'
-import {Badge} from './badges.js'
-import {quoteAttr} from './utils.js'
+import { Octokit, RequestError } from 'octokit'
+import { Badge } from './badges.js'
+import { quoteAttr } from './utils.js'
-export async function updateBadges(octokit: Octokit, owner: string, repo: string, badges: Badge[], oldJson: string | undefined, jsonSha: string | undefined) {
+export async function updateBadges(
+ octokit: Octokit,
+ owner: string,
+ repo: string,
+ badges: Badge[],
+ oldJson: string | undefined,
+ jsonSha: string | undefined,
+) {
const myBadgesPath = 'my-badges/my-badges.json'
const newJson = JSON.stringify(badges, null, 2)
@@ -11,7 +18,8 @@ export async function updateBadges(octokit: Octokit, owner: string, repo: string
} else {
console.log('Updating my-badges.json')
await octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
- owner, repo,
+ owner,
+ repo,
path: myBadgesPath,
message: 'Update my-badges',
committer: {
@@ -31,7 +39,10 @@ export async function updateBadges(octokit: Octokit, owner: string, repo: string
try {
console.log(`Loading ${badgePath}`)
- const resp = await octokit.request<'readme'>('GET /repos/{owner}/{repo}/contents/{path}', {owner, repo, path: badgePath})
+ const resp = await octokit.request<'readme'>(
+ 'GET /repos/{owner}/{repo}/contents/{path}',
+ { owner, repo, path: badgePath },
+ )
sha = resp.data.sha
oldContent = Buffer.from(resp.data.content, 'base64').toString('utf8')
} catch (err) {
@@ -41,7 +52,8 @@ export async function updateBadges(octokit: Octokit, owner: string, repo: string
}
const desc = quoteAttr(badge.desc)
- const content = `<img src="${badge.image}" alt="${desc}" title="${desc}" width="128">\n` +
+ const content =
+ `<img src="${badge.image}" alt="${desc}" title="${desc}" width="128">\n` +
`<strong>${desc}</strong>\n` +
`<br><br>\n\n` +
badge.body +
@@ -55,9 +67,10 @@ export async function updateBadges(octokit: Octokit, owner: string, repo: string
console.log(`Uploading ${badgePath}`)
await octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
- owner, repo,
+ owner,
+ repo,
path: badgePath,
- message: sha ? `Update ${badge.id}.md` : `Add ${badge.id}.md`,
+ message: sha ? `Update ${badge.id}.md` : `Add ${badge.id}.md`,
committer: {
name: 'My Badges',
email: 'my-badges@github.com',
src/update-readme.ts
@@ -2,11 +2,20 @@ import { Octokit } from 'octokit'
import { Badge } from './badges.js'
import { quoteAttr } from './utils.js'
-export async function updateReadme(octokit: Octokit, owner: string, repo: string, badges: Badge[]) {
+export async function updateReadme(
+ octokit: Octokit,
+ owner: string,
+ repo: string,
+ badges: Badge[],
+) {
console.log('Loading README.md')
- const readme = await octokit.request<'readme'>('GET /repos/{owner}/{repo}/readme', {
- owner, repo,
- })
+ const readme = await octokit.request<'readme'>(
+ 'GET /repos/{owner}/{repo}/readme',
+ {
+ owner,
+ repo,
+ },
+ )
const startString = '<!-- my-badges start -->'
const endString = '<!-- my-badges end -->'
@@ -20,12 +29,15 @@ export async function updateReadme(octokit: Octokit, owner: string, repo: string
if (start !== -1 && end !== -1) {
content = content.slice(0, start) + content.slice(end + endString.length)
- const badgesHtml = badges.map(badge => {
- const desc = quoteAttr(badge.desc)
- return `<a href="my-badges/${badge.id}.md"><img src="${badge.image}" alt="${desc}" title="${desc}" width="64"></a>`
- }).join('\n')
+ const badgesHtml = badges
+ .map((badge) => {
+ const desc = quoteAttr(badge.desc)
+ return `<a href="my-badges/${badge.id}.md"><img src="${badge.image}" alt="${desc}" title="${desc}" width="64"></a>`
+ })
+ .join('\n')
- content = content.slice(0, start) +
+ content =
+ content.slice(0, start) +
`${startString}\n` +
'<h4><a href="https://github.com/my-badges/my-badges">My Badges</a></h4>\n\n' +
badgesHtml +
@@ -36,7 +48,8 @@ export async function updateReadme(octokit: Octokit, owner: string, repo: string
console.log('Updating README.md')
await octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
- owner, repo,
+ owner,
+ repo,
path: readme.data.path,
message: 'Update my-badges',
committer: {
src/utils.ts
@@ -1,7 +1,9 @@
import { Commit, Pull } from './collect/collect.js'
export function linkCommit(commit: Commit): string {
- return `<a href="https://github.com/${commit.repository.owner.login}/${commit.repository.name}/commit/${commit.sha}">${commit.sha.slice(0, 7)}</a>`
+ return `<a href="https://github.com/${commit.repository.owner.login}/${
+ commit.repository.name
+ }/commit/${commit.sha}">${commit.sha.slice(0, 7)}</a>`
}
export function linkPull(pull: Pull): string {
@@ -17,5 +19,4 @@ export function quoteAttr(s: string) {
.replace(/>/g, '>')
.replace(/\r\n/g, ' ')
.replace(/[\r\n]/g, ' ')
-
}
.prettierignore
@@ -0,0 +1,5 @@
+node_modules/
+dist/
+package-lock.json
+yarn.lock
+*.md
graphql.config.yml
@@ -5,4 +5,3 @@ extensions:
url: https://api.github.com/graphql
headers:
Authorization: bearer ${GITHUB_TOKEN}
-
package-lock.json
@@ -22,6 +22,7 @@
"@types/minimist": "^1.2.3",
"@types/node": "^20.8.0",
"copyfiles": "^2.4.1",
+ "prettier": "^3.0.3",
"release-it": "^16.2.1",
"typescript": "^5.2.2"
}
@@ -4487,6 +4488,21 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/prettier": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
+ "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
+ "dev": true,
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
package.json
@@ -7,6 +7,8 @@
"update-my-badges": "dist/main.js"
},
"scripts": {
+ "fmt": "prettier --write .",
+ "fmt:check": "prettier --check .",
"start": "tsc --watch",
"tsc": "tsc",
"build": "npm run copy-files && npm run tsc",
@@ -26,6 +28,7 @@
"@types/minimist": "^1.2.3",
"@types/node": "^20.8.0",
"copyfiles": "^2.4.1",
+ "prettier": "^3.0.3",
"release-it": "^16.2.1",
"typescript": "^5.2.2"
},
@@ -41,6 +44,11 @@
"release": false
}
},
+ "prettier": {
+ "semi": false,
+ "singleQuote": true,
+ "endOfLine": "lf"
+ },
"repository": "my-badges/my-badges",
"author": "Anton Medvedev <anton@medv.io>",
"license": "MIT"
tsconfig.json
@@ -1,17 +1,12 @@
{
"compilerOptions": {
"target": "ES2022",
- "lib": [
- "ES2022",
- "DOM"
- ],
+ "lib": ["ES2022", "DOM"],
"moduleResolution": "NodeNext",
"module": "NodeNext",
"strict": true,
"outDir": "./dist",
"declaration": false
},
- "include": [
- "./src/**/*"
- ]
+ "include": ["./src/**/*"]
}