diff --git a/schema/github/schema.graphql b/schema/github/schema.graphql index 4b2d60eb..b87bdf79 100644 --- a/schema/github/schema.graphql +++ b/schema/github/schema.graphql @@ -804,6 +804,41 @@ type AddProjectV2ItemByIdPayload { item: ProjectV2Item } +""" +Autogenerated input type of AddPullRequestCreationCapBypassUsers +""" +input AddPullRequestCreationCapBypassUsersInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The Node ID of the repository. + """ + repositoryId: ID! + + """ + The Node IDs of the users to add to the bypass list. + """ + userIds: [ID!]! +} + +""" +Autogenerated return type of AddPullRequestCreationCapBypassUsers. +""" +type AddPullRequestCreationCapBypassUsersPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The repository with the updated bypass list. + """ + repository: Repository +} + """ Autogenerated input type of AddPullRequestReviewComment """ @@ -20823,6 +20858,21 @@ type IssueContributionsByRepository { repository: Repository! } +""" +The policy controlling who can create issues in a repository. +""" +enum IssueCreationPolicy { + """ + Anyone can create issues. + """ + ALL + + """ + Only collaborators can create issues. + """ + COLLABORATORS_ONLY +} + """ Summary of the state of an issue's dependencies """ @@ -20922,6 +20972,11 @@ type IssueFieldAddedEvent implements Node { """ issueField: IssueFields + """ + The selected options for option-backed fields; single-select returns one option and multi-select returns many. + """ + options: [IssueFieldTimelineOption!] + """ The value of the added field. """ @@ -20957,6 +21012,11 @@ type IssueFieldChangedEvent implements Node { """ newColor: String + """ + The new options for option-backed fields; single-select returns one option and multi-select returns many. + """ + newOptions: [IssueFieldTimelineOption!] + """ The new value of the field. """ @@ -20967,6 +21027,11 @@ type IssueFieldChangedEvent implements Node { """ previousColor: String + """ + The previous options for option-backed fields; single-select returns one option and multi-select returns many. + """ + previousOptions: [IssueFieldTimelineOption!] + """ The previous value of the field. """ @@ -21321,6 +21386,11 @@ type IssueFieldRemovedEvent implements Node { The issue field removed. """ issueField: IssueFields + + """ + The removed options for option-backed fields; single-select returns one option and multi-select returns many. + """ + options: [IssueFieldTimelineOption!] } """ @@ -21578,6 +21648,21 @@ type IssueFieldTextValue implements IssueFieldValueCommon & Node { value: String! } +""" +Represents a selected option for a timeline issue field event. +""" +type IssueFieldTimelineOption { + """ + The option color. + """ + color: String + + """ + The option name. + """ + name: String! +} + """ Issue field values """ @@ -26046,6 +26131,19 @@ type Mutation { input: AddProjectV2ItemByIdInput! ): AddProjectV2ItemByIdPayload + """ + Add users to the pull request creation cap bypass list. Bypassed users can + create pull requests regardless of the configured cap. Only users with + maintainer permissions can manage the bypass list. You can add a maximum of + 100 users per request. The bypass list can only hold a maximum of 100 users. + """ + addPullRequestCreationCapBypassUsers( + """ + Parameters for AddPullRequestCreationCapBypassUsers + """ + input: AddPullRequestCreationCapBypassUsersInput! + ): AddPullRequestCreationCapBypassUsersPayload + """ Adds a review to a Pull Request. """ @@ -27447,6 +27545,17 @@ type Mutation { input: RemoveOutsideCollaboratorInput! ): RemoveOutsideCollaboratorPayload + """ + Remove users from the pull request creation cap bypass list. Only users with + maintainer permissions can manage the bypass list. + """ + removePullRequestCreationCapBypassUsers( + """ + Parameters for RemovePullRequestCreationCapBypassUsers + """ + input: RemovePullRequestCreationCapBypassUsersInput! + ): RemovePullRequestCreationCapBypassUsersPayload + """ Removes a reaction from a subject. """ @@ -41528,6 +41637,36 @@ type PullRequestContributionsByRepository { repository: Repository! } +""" +Users who are exempt from the pull request creation cap on a repository. +""" +type PullRequestCreationCapConfig { + """ + Users who are exempt from the pull request creation cap. + """ + bypassedUsers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): UserConnection! +} + """ The policy controlling who can create pull requests in a repository. """ @@ -45673,6 +45812,41 @@ type RemoveOutsideCollaboratorPayload { removedUser: User } +""" +Autogenerated input type of RemovePullRequestCreationCapBypassUsers +""" +input RemovePullRequestCreationCapBypassUsersInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The Node ID of the repository. + """ + repositoryId: ID! + + """ + The Node IDs of the users to remove from the bypass list. + """ + userIds: [ID!]! +} + +""" +Autogenerated return type of RemovePullRequestCreationCapBypassUsers. +""" +type RemovePullRequestCreationCapBypassUsersPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The repository with the updated bypass list. + """ + repository: Repository +} + """ Autogenerated input type of RemoveReaction """ @@ -49253,6 +49427,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent number: Int! ): Issue + """ + The policy controlling who can create issues in this repository. + """ + issueCreationPolicy: IssueCreationPolicy + """ A list of the repository's issue fields, inherited from the organization """ @@ -49878,6 +50057,12 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent number: Int! ): PullRequest + """ + The pull request creation cap configuration for this repository. Only visible + to repository maintainers and administrators. + """ + pullRequestCreationCapConfig: PullRequestCreationCapConfig + """ The policy controlling who can create pull requests in this repository. """ @@ -50355,6 +50540,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ viewerCanAdminister: Boolean! + """ + Indicates whether the current user can create issues in this repository. + """ + viewerCanCreateIssues: Boolean! + """ Can the current viewer create new projects on this owner. """ @@ -51114,6 +51304,11 @@ interface RepositoryInfo { """ isTemplate: Boolean! + """ + The policy controlling who can create issues in this repository. + """ + issueCreationPolicy: IssueCreationPolicy + """ The license associated with the repository """ @@ -52145,6 +52340,11 @@ enum RepositoryRuleType { """ FILE_PATH_RESTRICTION + """ + Enforce any added or changed dependencies to comply with the organization's license policy. + """ + LICENSE_COMPLIANCE_SCANNING + """ Branch is read-only. Users cannot push to the branch. """ @@ -55435,6 +55635,11 @@ enum SocialAccountProvider { """ REDDIT + """ + Microblogging social platform. + """ + THREADS + """ Live-streaming service. """ @@ -58904,6 +59109,11 @@ type StatusContext implements Node & RequirableByPullRequest { The URL for this status context. """ targetUrl: URI + + """ + Identifies the date and time when the object was last updated. + """ + updatedAt: DateTime! } """ @@ -64987,6 +65197,11 @@ input UpdateRepositoryInput { """ homepageUrl: URI + """ + The policy controlling who can create issues in this repository. + """ + issueCreationPolicy: IssueCreationPolicy + """ The new name of the repository. """