From 3a1cc85a9fb171a5ad3ad8cc45a9a512fa0dd1d8 Mon Sep 17 00:00:00 2001 From: sushichan044 Date: Mon, 9 Dec 2024 02:26:40 +0900 Subject: [PATCH] docs(github): Update GraphQL generated types --- extensions/github/CHANGELOG.md | 4 ++ extensions/github/src/generated/graphql.ts | 73 +++++++--------------- 2 files changed, 27 insertions(+), 50 deletions(-) diff --git a/extensions/github/CHANGELOG.md b/extensions/github/CHANGELOG.md index 2e83eabef69..9e54dde205c 100644 --- a/extensions/github/CHANGELOG.md +++ b/extensions/github/CHANGELOG.md @@ -1,5 +1,9 @@ # GitHub Changelog +## [Update GraphQL generated types] - 2024-12-09 + +- Updated auto-generated GraphQL codes with the latest schema. + ## [Handle notification icon retrieval error] - 2024-11-08 - Unread Notifications Menu Bar: Display a fallback icon when the notification icon retrieval fails. diff --git a/extensions/github/src/generated/graphql.ts b/extensions/github/src/generated/graphql.ts index e2e8f67a38b..2876b6c0f36 100644 --- a/extensions/github/src/generated/graphql.ts +++ b/extensions/github/src/generated/graphql.ts @@ -6497,6 +6497,10 @@ export type Enterprise = AnnouncementBannerI & readmeHTML: Scalars["HTML"]["output"]; /** The HTTP path for this enterprise. */ resourcePath: Scalars["URI"]["output"]; + /** Returns a single ruleset from the current enterprise by ID. */ + ruleset?: Maybe; + /** A list of rulesets for this enterprise. */ + rulesets?: Maybe; /** The URL-friendly identifier for the enterprise. */ slug: Scalars["String"]["output"]; /** The HTTP URL for this enterprise. */ @@ -6538,6 +6542,19 @@ export type EnterpriseOrganizationsArgs = { viewerOrganizationRole?: InputMaybe; }; +/** An account to manage multiple organizations with consolidated policy and billing. */ +export type EnterpriseRulesetArgs = { + databaseId: Scalars["Int"]["input"]; +}; + +/** An account to manage multiple organizations with consolidated policy and billing. */ +export type EnterpriseRulesetsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + /** The connection type for User. */ export type EnterpriseAdministratorConnection = { __typename?: "EnterpriseAdministratorConnection"; @@ -10177,25 +10194,6 @@ export type MarkFileAsViewedPayload = { pullRequest?: Maybe; }; -/** Autogenerated input type of MarkNotificationAsDone */ -export type MarkNotificationAsDoneInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - /** The NotificationThread id. */ - id: Scalars["ID"]["input"]; -}; - -/** Autogenerated return type of MarkNotificationAsDone. */ -export type MarkNotificationAsDonePayload = { - __typename?: "MarkNotificationAsDonePayload"; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; - /** The user that the notification belongs to. */ - viewer?: Maybe; -}; - /** Autogenerated input type of MarkProjectV2AsTemplate */ export type MarkProjectV2AsTemplateInput = { /** A unique identifier for the client performing the mutation. */ @@ -11544,8 +11542,6 @@ export type Mutation = { markDiscussionCommentAsAnswer?: Maybe; /** Mark a pull request file as viewed */ markFileAsViewed?: Maybe; - /** Marks a notification as done */ - markNotificationAsDone?: Maybe; /** Mark a project as a template. Note that only projects which are owned by an Organization can be marked as a template. */ markProjectV2AsTemplate?: Maybe; /** Marks a pull request ready for review. */ @@ -11668,8 +11664,6 @@ export type Mutation = { unpinIssue?: Maybe; /** Marks a review thread as unresolved. */ unresolveReviewThread?: Maybe; - /** Unsubscribes from notifications */ - unsubscribeFromNotifications?: Maybe; /** Update a branch protection rule */ updateBranchProtectionRule?: Maybe; /** Update a check run */ @@ -12425,11 +12419,6 @@ export type MutationMarkFileAsViewedArgs = { input: MarkFileAsViewedInput; }; -/** The root query for implementing GraphQL mutations. */ -export type MutationMarkNotificationAsDoneArgs = { - input: MarkNotificationAsDoneInput; -}; - /** The root query for implementing GraphQL mutations. */ export type MutationMarkProjectV2AsTemplateArgs = { input: MarkProjectV2AsTemplateInput; @@ -12735,11 +12724,6 @@ export type MutationUnresolveReviewThreadArgs = { input: UnresolveReviewThreadInput; }; -/** The root query for implementing GraphQL mutations. */ -export type MutationUnsubscribeFromNotificationsArgs = { - input: UnsubscribeFromNotificationsInput; -}; - /** The root query for implementing GraphQL mutations. */ export type MutationUpdateBranchProtectionRuleArgs = { input: UpdateBranchProtectionRuleInput; @@ -18832,6 +18816,8 @@ export enum PullRequestOrderField { /** Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. */ export type PullRequestParameters = { __typename?: "PullRequestParameters"; + /** When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled. */ + allowedMergeMethods?: Maybe>; /** New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismissStaleReviewsOnPush: Scalars["Boolean"]["output"]; /** Require an approving review in pull requests that modify files that have a designated code owner. */ @@ -18846,6 +18832,8 @@ export type PullRequestParameters = { /** Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. */ export type PullRequestParametersInput = { + /** When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled. */ + allowedMergeMethods?: InputMaybe>; /** New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismissStaleReviewsOnPush: Scalars["Boolean"]["input"]; /** Require an approving review in pull requests that modify files that have a designated code owner. */ @@ -23625,6 +23613,8 @@ export enum RepositoryRulesetTarget { Branch = "BRANCH", /** Push */ Push = "PUSH", + /** repository */ + Repository = "REPOSITORY", /** Tag */ Tag = "TAG", } @@ -28376,23 +28366,6 @@ export type UnresolveReviewThreadPayload = { thread?: Maybe; }; -/** Autogenerated input type of UnsubscribeFromNotifications */ -export type UnsubscribeFromNotificationsInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - /** The NotificationThread IDs of the objects to unsubscribe from. */ - ids: Array; -}; - -/** Autogenerated return type of UnsubscribeFromNotifications. */ -export type UnsubscribeFromNotificationsPayload = { - __typename?: "UnsubscribeFromNotificationsPayload"; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; -}; - /** Represents an 'unsubscribed' event on a given `Subscribable`. */ export type UnsubscribedEvent = Node & { __typename?: "UnsubscribedEvent";