From 2624a45a8dd57f11d8edda1b0d4ec5742421b215 Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Sun, 26 Nov 2023 18:53:52 -0800 Subject: [PATCH] Excavator: Manage go module dependencies (#467) --- go.mod | 2 +- go.sum | 4 +- vendor/github.com/shurcooL/githubv4/enum.go | 137 +++++++++++++++---- vendor/github.com/shurcooL/githubv4/input.go | 115 +++++++++++++--- vendor/modules.txt | 2 +- 5 files changed, 214 insertions(+), 46 deletions(-) diff --git a/go.mod b/go.mod index 7dc691759..c5e019d26 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rs/xid v1.5.0 // indirect - github.com/shurcooL/githubv4 v0.0.0-20230704064427-599ae7bbf278 // indirect + github.com/shurcooL/githubv4 v0.0.0-20231126234147-1cffa1f02456 // indirect github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f // indirect github.com/spf13/pflag v1.0.5 // indirect golang.org/x/net v0.18.0 // indirect diff --git a/go.sum b/go.sum index 724cf480a..a17e6c7d2 100644 --- a/go.sum +++ b/go.sum @@ -65,8 +65,8 @@ github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/shurcooL/githubv4 v0.0.0-20230704064427-599ae7bbf278 h1:kdEGVAV4sO46DPtb8k793jiecUEhaX9ixoIBt41HEGU= -github.com/shurcooL/githubv4 v0.0.0-20230704064427-599ae7bbf278/go.mod h1:zqMwyHmnN/eDOZOdiTohqIUKUrTFX62PNlu7IJdu0q8= +github.com/shurcooL/githubv4 v0.0.0-20231126234147-1cffa1f02456 h1:6dExqsYngGEiixqa1vmtlUd+zbyISilg0Cf3GWVdeYM= +github.com/shurcooL/githubv4 v0.0.0-20231126234147-1cffa1f02456/go.mod h1:zqMwyHmnN/eDOZOdiTohqIUKUrTFX62PNlu7IJdu0q8= github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f h1:tygelZueB1EtXkPI6mQ4o9DQ0+FKW41hTbunoXZCTqk= github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f/go.mod h1:AuYgA5Kyo4c7HfUmvRGs/6rGlMMV/6B1bVnB9JxJEEg= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= diff --git a/vendor/github.com/shurcooL/githubv4/enum.go b/vendor/github.com/shurcooL/githubv4/enum.go index f1c5f8ddd..1d3acdd88 100644 --- a/vendor/github.com/shurcooL/githubv4/enum.go +++ b/vendor/github.com/shurcooL/githubv4/enum.go @@ -391,7 +391,7 @@ type EnterpriseMembersCanCreateRepositoriesSettingValue string // The possible values for the enterprise members can create repositories setting. const ( - EnterpriseMembersCanCreateRepositoriesSettingValueNoPolicy EnterpriseMembersCanCreateRepositoriesSettingValue = "NO_POLICY" // Organization administrators choose whether to allow members to create repositories. + EnterpriseMembersCanCreateRepositoriesSettingValueNoPolicy EnterpriseMembersCanCreateRepositoriesSettingValue = "NO_POLICY" // Organization owners choose whether to allow members to create repositories. EnterpriseMembersCanCreateRepositoriesSettingValueAll EnterpriseMembersCanCreateRepositoriesSettingValue = "ALL" // Members will be able to create public and private repositories. EnterpriseMembersCanCreateRepositoriesSettingValuePublic EnterpriseMembersCanCreateRepositoriesSettingValue = "PUBLIC" // Members will be able to create only public repositories. EnterpriseMembersCanCreateRepositoriesSettingValuePrivate EnterpriseMembersCanCreateRepositoriesSettingValue = "PRIVATE" // Members will be able to create only private repositories. @@ -407,6 +407,25 @@ const ( EnterpriseMembersCanMakePurchasesSettingValueDisabled EnterpriseMembersCanMakePurchasesSettingValue = "DISABLED" // The setting is disabled for organizations in the enterprise. ) +// EnterpriseMembershipType represents the possible values we have for filtering Platform::Objects::User#enterprises. +type EnterpriseMembershipType string + +// The possible values we have for filtering Platform::Objects::User#enterprises. +const ( + EnterpriseMembershipTypeAll EnterpriseMembershipType = "ALL" // Returns all enterprises in which the user is a member, admin, or billing manager. + EnterpriseMembershipTypeAdmin EnterpriseMembershipType = "ADMIN" // Returns all enterprises in which the user is an admin. + EnterpriseMembershipTypeBillingManager EnterpriseMembershipType = "BILLING_MANAGER" // Returns all enterprises in which the user is a billing manager. + EnterpriseMembershipTypeOrgMembership EnterpriseMembershipType = "ORG_MEMBERSHIP" // Returns all enterprises in which the user is a member of an org that is owned by the enterprise. +) + +// EnterpriseOrderField represents properties by which enterprise connections can be ordered. +type EnterpriseOrderField string + +// Properties by which enterprise connections can be ordered. +const ( + EnterpriseOrderFieldName EnterpriseOrderField = "NAME" // Order enterprises by name. +) + // EnterpriseServerInstallationOrderField represents properties by which Enterprise Server installation connections can be ordered. type EnterpriseServerInstallationOrderField string @@ -471,6 +490,14 @@ const ( EnterpriseUserDeploymentServer EnterpriseUserDeployment = "SERVER" // The user is part of a GitHub Enterprise Server deployment. ) +// EnvironmentOrderField represents properties by which environments connections can be ordered. +type EnvironmentOrderField string + +// Properties by which environments connections can be ordered. +const ( + EnvironmentOrderFieldName EnvironmentOrderField = "NAME" // Order environments by name. +) + // FileViewedState represents the possible viewed states of a file . type FileViewedState string @@ -891,7 +918,7 @@ type OrgRemoveMemberAuditEntryMembershipType string const ( OrgRemoveMemberAuditEntryMembershipTypeSuspended OrgRemoveMemberAuditEntryMembershipType = "SUSPENDED" // A suspended member. OrgRemoveMemberAuditEntryMembershipTypeDirectMember OrgRemoveMemberAuditEntryMembershipType = "DIRECT_MEMBER" // A direct member is a user that is a member of the Organization. - OrgRemoveMemberAuditEntryMembershipTypeAdmin OrgRemoveMemberAuditEntryMembershipType = "ADMIN" // Organization administrators have full access and can change several settings, including the names of repositories that belong to the Organization and Owners team membership. In addition, organization admins can delete the organization and all of its repositories. + OrgRemoveMemberAuditEntryMembershipTypeAdmin OrgRemoveMemberAuditEntryMembershipType = "ADMIN" // Organization owners have full access and can change several settings, including the names of repositories that belong to the Organization and Owners team membership. In addition, organization owners can delete the organization and all of its repositories. OrgRemoveMemberAuditEntryMembershipTypeBillingManager OrgRemoveMemberAuditEntryMembershipType = "BILLING_MANAGER" // A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. OrgRemoveMemberAuditEntryMembershipTypeUnaffiliated OrgRemoveMemberAuditEntryMembershipType = "UNAFFILIATED" // An unaffiliated collaborator is a person who is not a member of the Organization and does not have access to any repositories in the Organization. OrgRemoveMemberAuditEntryMembershipTypeOutsideCollaborator OrgRemoveMemberAuditEntryMembershipType = "OUTSIDE_COLLABORATOR" // An outside collaborator is a person who isn't explicitly a member of the Organization, but who has Read, Write, or Admin permissions to one or more repositories in the organization. @@ -1329,10 +1356,19 @@ type ProjectV2WorkflowsOrderField string // Properties by which project workflows can be ordered. const ( - ProjectV2WorkflowsOrderFieldName ProjectV2WorkflowsOrderField = "NAME" // The workflows' name. - ProjectV2WorkflowsOrderFieldNumber ProjectV2WorkflowsOrderField = "NUMBER" // The workflows' number. - ProjectV2WorkflowsOrderFieldUpdatedAt ProjectV2WorkflowsOrderField = "UPDATED_AT" // The workflows' date and time of update. - ProjectV2WorkflowsOrderFieldCreatedAt ProjectV2WorkflowsOrderField = "CREATED_AT" // The workflows' date and time of creation. + ProjectV2WorkflowsOrderFieldName ProjectV2WorkflowsOrderField = "NAME" // The name of the workflow. + ProjectV2WorkflowsOrderFieldNumber ProjectV2WorkflowsOrderField = "NUMBER" // The number of the workflow. + ProjectV2WorkflowsOrderFieldUpdatedAt ProjectV2WorkflowsOrderField = "UPDATED_AT" // The date and time of the workflow update. + ProjectV2WorkflowsOrderFieldCreatedAt ProjectV2WorkflowsOrderField = "CREATED_AT" // The date and time of the workflow creation. +) + +// PullRequestBranchUpdateMethod represents the possible methods for updating a pull request's head branch with the base branch. +type PullRequestBranchUpdateMethod string + +// The possible methods for updating a pull request's head branch with the base branch. +const ( + PullRequestBranchUpdateMethodMerge PullRequestBranchUpdateMethod = "MERGE" // Update branch via merge. + PullRequestBranchUpdateMethodRebase PullRequestBranchUpdateMethod = "REBASE" // Update branch via rebase. ) // PullRequestMergeMethod represents represents available types of methods to use when merging a pull request. @@ -1681,11 +1717,12 @@ type RepositoryLockReason string // The possible reasons a given repository could be in a locked state. const ( - RepositoryLockReasonMoving RepositoryLockReason = "MOVING" // The repository is locked due to a move. - RepositoryLockReasonBilling RepositoryLockReason = "BILLING" // The repository is locked due to a billing related reason. - RepositoryLockReasonRename RepositoryLockReason = "RENAME" // The repository is locked due to a rename. - RepositoryLockReasonMigrating RepositoryLockReason = "MIGRATING" // The repository is locked due to a migration. - RepositoryLockReasonTradeRestriction RepositoryLockReason = "TRADE_RESTRICTION" // The repository is locked due to a trade controls related reason. + RepositoryLockReasonMoving RepositoryLockReason = "MOVING" // The repository is locked due to a move. + RepositoryLockReasonBilling RepositoryLockReason = "BILLING" // The repository is locked due to a billing related reason. + RepositoryLockReasonRename RepositoryLockReason = "RENAME" // The repository is locked due to a rename. + RepositoryLockReasonMigrating RepositoryLockReason = "MIGRATING" // The repository is locked due to a migration. + RepositoryLockReasonTradeRestriction RepositoryLockReason = "TRADE_RESTRICTION" // The repository is locked due to a trade controls related reason. + RepositoryLockReasonTransferringOwnership RepositoryLockReason = "TRANSFERRING_OWNERSHIP" // The repository is locked due to an ownership transfer. ) // RepositoryMigrationOrderDirection represents possible directions in which to order a list of repository migrations when provided an `orderBy` argument. @@ -1743,20 +1780,32 @@ type RepositoryRuleType string // The rule types supported in rulesets. const ( - RepositoryRuleTypeCreation RepositoryRuleType = "CREATION" // Only allow users with bypass permission to create matching refs. - RepositoryRuleTypeUpdate RepositoryRuleType = "UPDATE" // Only allow users with bypass permission to update matching refs. - RepositoryRuleTypeDeletion RepositoryRuleType = "DELETION" // Only allow users with bypass permissions to delete matching refs. - RepositoryRuleTypeRequiredLinearHistory RepositoryRuleType = "REQUIRED_LINEAR_HISTORY" // Prevent merge commits from being pushed to matching branches. - RepositoryRuleTypeRequiredDeployments RepositoryRuleType = "REQUIRED_DEPLOYMENTS" // Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. - RepositoryRuleTypeRequiredSignatures RepositoryRuleType = "REQUIRED_SIGNATURES" // Commits pushed to matching branches must have verified signatures. - RepositoryRuleTypePullRequest RepositoryRuleType = "PULL_REQUEST" // Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. - RepositoryRuleTypeRequiredStatusChecks RepositoryRuleType = "REQUIRED_STATUS_CHECKS" // Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. - RepositoryRuleTypeNonFastForward RepositoryRuleType = "NON_FAST_FORWARD" // Prevent users with push access from force pushing to branches. - RepositoryRuleTypeCommitMessagePattern RepositoryRuleType = "COMMIT_MESSAGE_PATTERN" // Commit message pattern. - RepositoryRuleTypeCommitAuthorEmailPattern RepositoryRuleType = "COMMIT_AUTHOR_EMAIL_PATTERN" // Commit author email pattern. - RepositoryRuleTypeCommitterEmailPattern RepositoryRuleType = "COMMITTER_EMAIL_PATTERN" // Committer email pattern. - RepositoryRuleTypeBranchNamePattern RepositoryRuleType = "BRANCH_NAME_PATTERN" // Branch name pattern. - RepositoryRuleTypeTagNamePattern RepositoryRuleType = "TAG_NAME_PATTERN" // Tag name pattern. + RepositoryRuleTypeCreation RepositoryRuleType = "CREATION" // Only allow users with bypass permission to create matching refs. + RepositoryRuleTypeUpdate RepositoryRuleType = "UPDATE" // Only allow users with bypass permission to update matching refs. + RepositoryRuleTypeDeletion RepositoryRuleType = "DELETION" // Only allow users with bypass permissions to delete matching refs. + RepositoryRuleTypeRequiredLinearHistory RepositoryRuleType = "REQUIRED_LINEAR_HISTORY" // Prevent merge commits from being pushed to matching refs. + RepositoryRuleTypeMergeQueue RepositoryRuleType = "MERGE_QUEUE" // Merges must be performed via a merge queue. + RepositoryRuleTypeRequiredReviewThreadResolution RepositoryRuleType = "REQUIRED_REVIEW_THREAD_RESOLUTION" // When enabled, all conversations on code must be resolved before a pull request can be merged into a branch that matches this rule. + RepositoryRuleTypeRequiredDeployments RepositoryRuleType = "REQUIRED_DEPLOYMENTS" // Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. + RepositoryRuleTypeRequiredSignatures RepositoryRuleType = "REQUIRED_SIGNATURES" // Commits pushed to matching refs must have verified signatures. + RepositoryRuleTypePullRequest RepositoryRuleType = "PULL_REQUEST" // Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. + RepositoryRuleTypeRequiredStatusChecks RepositoryRuleType = "REQUIRED_STATUS_CHECKS" // Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. + RepositoryRuleTypeRequiredWorkflowStatusChecks RepositoryRuleType = "REQUIRED_WORKFLOW_STATUS_CHECKS" // Require all commits be made to a non-target branch and submitted via a pull request and required workflow checks to pass before they can be merged. + RepositoryRuleTypeNonFastForward RepositoryRuleType = "NON_FAST_FORWARD" // Prevent users with push access from force pushing to refs. + RepositoryRuleTypeAuthorization RepositoryRuleType = "AUTHORIZATION" // Authorization. + RepositoryRuleTypeTag RepositoryRuleType = "TAG" // Tag. + RepositoryRuleTypeMergeQueueLockedRef RepositoryRuleType = "MERGE_QUEUE_LOCKED_REF" // Merge queue locked ref. + RepositoryRuleTypeLockBranch RepositoryRuleType = "LOCK_BRANCH" // Branch is read-only. Users cannot push to the branch. + RepositoryRuleTypeMaxRefUpdates RepositoryRuleType = "MAX_REF_UPDATES" // Max ref updates. + RepositoryRuleTypeCommitMessagePattern RepositoryRuleType = "COMMIT_MESSAGE_PATTERN" // Commit message pattern. + RepositoryRuleTypeCommitAuthorEmailPattern RepositoryRuleType = "COMMIT_AUTHOR_EMAIL_PATTERN" // Commit author email pattern. + RepositoryRuleTypeCommitterEmailPattern RepositoryRuleType = "COMMITTER_EMAIL_PATTERN" // Committer email pattern. + RepositoryRuleTypeBranchNamePattern RepositoryRuleType = "BRANCH_NAME_PATTERN" // Branch name pattern. + RepositoryRuleTypeTagNamePattern RepositoryRuleType = "TAG_NAME_PATTERN" // Tag name pattern. + RepositoryRuleTypeWorkflows RepositoryRuleType = "WORKFLOWS" // Require all changes made to a targeted branch to pass the specified workflows before they can be merged. + RepositoryRuleTypeRulesetRequiredSignatures RepositoryRuleType = "RULESET_REQUIRED_SIGNATURES" // Commits pushed to matching refs must have verified signatures. + RepositoryRuleTypeSecretScanning RepositoryRuleType = "SECRET_SCANNING" // Secret scanning. + RepositoryRuleTypeWorkflowUpdates RepositoryRuleType = "WORKFLOW_UPDATES" // Workflow files cannot be modified. ) // RepositoryRulesetBypassActorBypassMode represents the bypass mode for a specific actor on a ruleset. @@ -1960,6 +2009,7 @@ const ( SocialAccountProviderTwitch SocialAccountProvider = "TWITCH" // Live-streaming service. SocialAccountProviderTwitter SocialAccountProvider = "TWITTER" // Microblogging website. SocialAccountProviderYouTube SocialAccountProvider = "YOUTUBE" // Online video platform. + SocialAccountProviderNpm SocialAccountProvider = "NPM" // JavaScript package registry. ) // SponsorOrderField represents properties by which sponsor connections can be ordered. @@ -2239,7 +2289,7 @@ const ( SponsorsCountryOrRegionCodeTO SponsorsCountryOrRegionCode = "TO" // Tonga. SponsorsCountryOrRegionCodeTT SponsorsCountryOrRegionCode = "TT" // Trinidad and Tobago. SponsorsCountryOrRegionCodeTN SponsorsCountryOrRegionCode = "TN" // Tunisia. - SponsorsCountryOrRegionCodeTR SponsorsCountryOrRegionCode = "TR" // Turkey. + SponsorsCountryOrRegionCodeTR SponsorsCountryOrRegionCode = "TR" // Türkiye. SponsorsCountryOrRegionCodeTM SponsorsCountryOrRegionCode = "TM" // Turkmenistan. SponsorsCountryOrRegionCodeTC SponsorsCountryOrRegionCode = "TC" // Turks and Caicos Islands. SponsorsCountryOrRegionCodeTV SponsorsCountryOrRegionCode = "TV" // Tuvalu. @@ -2307,6 +2357,15 @@ const ( SponsorshipOrderFieldCreatedAt SponsorshipOrderField = "CREATED_AT" // Order sponsorship by creation time. ) +// SponsorshipPaymentSource represents how payment was made for funding a GitHub Sponsors sponsorship. +type SponsorshipPaymentSource string + +// How payment was made for funding a GitHub Sponsors sponsorship. +const ( + SponsorshipPaymentSourceGitHub SponsorshipPaymentSource = "GITHUB" // Payment was made through GitHub. + SponsorshipPaymentSourcePatreon SponsorshipPaymentSource = "PATREON" // Payment was made through Patreon. +) + // SponsorshipPrivacy represents the privacy of a sponsorship. type SponsorshipPrivacy string @@ -2457,6 +2516,32 @@ const ( TeamRoleMember TeamRole = "MEMBER" // User is a member of the team. ) +// ThreadSubscriptionFormAction represents the possible states of a thread subscription form action. +type ThreadSubscriptionFormAction string + +// The possible states of a thread subscription form action. +const ( + ThreadSubscriptionFormActionNone ThreadSubscriptionFormAction = "NONE" // The User cannot subscribe or unsubscribe to the thread. + ThreadSubscriptionFormActionSubscribe ThreadSubscriptionFormAction = "SUBSCRIBE" // The User can subscribe to the thread. + ThreadSubscriptionFormActionUnsubscribe ThreadSubscriptionFormAction = "UNSUBSCRIBE" // The User can unsubscribe to the thread. +) + +// ThreadSubscriptionState represents the possible states of a subscription. +type ThreadSubscriptionState string + +// The possible states of a subscription. +const ( + ThreadSubscriptionStateUnavailable ThreadSubscriptionState = "UNAVAILABLE" // The subscription status is currently unavailable. + ThreadSubscriptionStateDisabled ThreadSubscriptionState = "DISABLED" // The subscription status is currently disabled. + ThreadSubscriptionStateIgnoringList ThreadSubscriptionState = "IGNORING_LIST" // The User is never notified because they are ignoring the list. + ThreadSubscriptionStateSubscribedToThreadEvents ThreadSubscriptionState = "SUBSCRIBED_TO_THREAD_EVENTS" // The User is notified because they chose custom settings for this thread. + ThreadSubscriptionStateIgnoringThread ThreadSubscriptionState = "IGNORING_THREAD" // The User is never notified because they are ignoring the thread. + ThreadSubscriptionStateSubscribedToList ThreadSubscriptionState = "SUBSCRIBED_TO_LIST" // The User is notified becuase they are watching the list. + ThreadSubscriptionStateSubscribedToThreadType ThreadSubscriptionState = "SUBSCRIBED_TO_THREAD_TYPE" // The User is notified because they chose custom settings for this thread. + ThreadSubscriptionStateSubscribedToThread ThreadSubscriptionState = "SUBSCRIBED_TO_THREAD" // The User is notified because they are subscribed to the thread. + ThreadSubscriptionStateNone ThreadSubscriptionState = "NONE" // The User is not recieving notifications from this thread. +) + // TopicSuggestionDeclineReason represents reason that the suggested topic is declined. type TopicSuggestionDeclineReason string diff --git a/vendor/github.com/shurcooL/githubv4/input.go b/vendor/github.com/shurcooL/githubv4/input.go index eec2e137a..12f7f4c8c 100644 --- a/vendor/github.com/shurcooL/githubv4/input.go +++ b/vendor/github.com/shurcooL/githubv4/input.go @@ -4,7 +4,7 @@ package githubv4 // Input represents one of the Input structs: // -// AbortQueuedMigrationsInput, AcceptEnterpriseAdministratorInvitationInput, AcceptTopicSuggestionInput, AddAssigneesToAssignableInput, AddCommentInput, AddDiscussionCommentInput, AddDiscussionPollVoteInput, AddEnterpriseOrganizationMemberInput, AddEnterpriseSupportEntitlementInput, AddLabelsToLabelableInput, AddProjectCardInput, AddProjectColumnInput, AddProjectV2DraftIssueInput, AddProjectV2ItemByIdInput, AddPullRequestReviewCommentInput, AddPullRequestReviewInput, AddPullRequestReviewThreadInput, AddReactionInput, AddStarInput, AddUpvoteInput, AddVerifiableDomainInput, ApproveDeploymentsInput, ApproveVerifiableDomainInput, ArchiveProjectV2ItemInput, ArchiveRepositoryInput, AuditLogOrder, BranchNamePatternParametersInput, BulkSponsorship, CancelEnterpriseAdminInvitationInput, CancelSponsorshipInput, ChangeUserStatusInput, CheckAnnotationData, CheckAnnotationRange, CheckRunAction, CheckRunFilter, CheckRunOutput, CheckRunOutputImage, CheckSuiteAutoTriggerPreference, CheckSuiteFilter, ClearLabelsFromLabelableInput, ClearProjectV2ItemFieldValueInput, CloneProjectInput, CloneTemplateRepositoryInput, CloseDiscussionInput, CloseIssueInput, ClosePullRequestInput, CommitAuthor, CommitAuthorEmailPatternParametersInput, CommitContributionOrder, CommitMessage, CommitMessagePatternParametersInput, CommittableBranch, CommitterEmailPatternParametersInput, ContributionOrder, ConvertProjectCardNoteToIssueInput, ConvertPullRequestToDraftInput, CopyProjectV2Input, CreateAttributionInvitationInput, CreateBranchProtectionRuleInput, CreateCheckRunInput, CreateCheckSuiteInput, CreateCommitOnBranchInput, CreateDiscussionInput, CreateEnterpriseOrganizationInput, CreateEnvironmentInput, CreateIpAllowListEntryInput, CreateIssueInput, CreateLinkedBranchInput, CreateMigrationSourceInput, CreateProjectInput, CreateProjectV2FieldInput, CreateProjectV2Input, CreatePullRequestInput, CreateRefInput, CreateRepositoryInput, CreateRepositoryRulesetInput, CreateSponsorsListingInput, CreateSponsorsTierInput, CreateSponsorshipInput, CreateSponsorshipsInput, CreateTeamDiscussionCommentInput, CreateTeamDiscussionInput, DeclineTopicSuggestionInput, DeleteBranchProtectionRuleInput, DeleteDeploymentInput, DeleteDiscussionCommentInput, DeleteDiscussionInput, DeleteEnvironmentInput, DeleteIpAllowListEntryInput, DeleteIssueCommentInput, DeleteIssueInput, DeleteLinkedBranchInput, DeleteProjectCardInput, DeleteProjectColumnInput, DeleteProjectInput, DeleteProjectV2FieldInput, DeleteProjectV2Input, DeleteProjectV2ItemInput, DeleteProjectV2WorkflowInput, DeletePullRequestReviewCommentInput, DeletePullRequestReviewInput, DeleteRefInput, DeleteRepositoryRulesetInput, DeleteTeamDiscussionCommentInput, DeleteTeamDiscussionInput, DeleteVerifiableDomainInput, DeploymentOrder, DequeuePullRequestInput, DisablePullRequestAutoMergeInput, DiscussionOrder, DiscussionPollOptionOrder, DismissPullRequestReviewInput, DismissRepositoryVulnerabilityAlertInput, DraftPullRequestReviewComment, DraftPullRequestReviewThread, EnablePullRequestAutoMergeInput, EnqueuePullRequestInput, EnterpriseAdministratorInvitationOrder, EnterpriseMemberOrder, EnterpriseServerInstallationOrder, EnterpriseServerUserAccountEmailOrder, EnterpriseServerUserAccountOrder, EnterpriseServerUserAccountsUploadOrder, FileAddition, FileChanges, FileDeletion, FollowOrganizationInput, FollowUserInput, GistOrder, GrantEnterpriseOrganizationsMigratorRoleInput, GrantMigratorRoleInput, InviteEnterpriseAdminInput, IpAllowListEntryOrder, IssueCommentOrder, IssueFilters, IssueOrder, LabelOrder, LanguageOrder, LinkProjectV2ToRepositoryInput, LinkProjectV2ToTeamInput, LinkRepositoryToProjectInput, LockLockableInput, MannequinOrder, MarkDiscussionCommentAsAnswerInput, MarkFileAsViewedInput, MarkProjectV2AsTemplateInput, MarkPullRequestReadyForReviewInput, MergeBranchInput, MergePullRequestInput, MilestoneOrder, MinimizeCommentInput, MoveProjectCardInput, MoveProjectColumnInput, OrgEnterpriseOwnerOrder, OrganizationOrder, PackageFileOrder, PackageOrder, PackageVersionOrder, PinIssueInput, ProjectOrder, ProjectV2Collaborator, ProjectV2FieldOrder, ProjectV2FieldValue, ProjectV2Filters, ProjectV2ItemFieldValueOrder, ProjectV2ItemOrder, ProjectV2Order, ProjectV2SingleSelectFieldOptionInput, ProjectV2ViewOrder, ProjectV2WorkflowOrder, PublishSponsorsTierInput, PullRequestOrder, PullRequestParametersInput, ReactionOrder, RefNameConditionTargetInput, RefOrder, RegenerateEnterpriseIdentityProviderRecoveryCodesInput, RegenerateVerifiableDomainTokenInput, RejectDeploymentsInput, ReleaseOrder, RemoveAssigneesFromAssignableInput, RemoveEnterpriseAdminInput, RemoveEnterpriseIdentityProviderInput, RemoveEnterpriseMemberInput, RemoveEnterpriseOrganizationInput, RemoveEnterpriseSupportEntitlementInput, RemoveLabelsFromLabelableInput, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RemoveUpvoteInput, ReopenDiscussionInput, ReopenIssueInput, ReopenPullRequestInput, RepositoryIdConditionTargetInput, RepositoryInvitationOrder, RepositoryMigrationOrder, RepositoryNameConditionTargetInput, RepositoryOrder, RepositoryRuleConditionsInput, RepositoryRuleInput, RepositoryRulesetBypassActorInput, RequestReviewsInput, RequiredDeploymentsParametersInput, RequiredStatusCheckInput, RequiredStatusChecksParametersInput, RerequestCheckSuiteInput, ResolveReviewThreadInput, RetireSponsorsTierInput, RevertPullRequestInput, RevokeEnterpriseOrganizationsMigratorRoleInput, RevokeMigratorRoleInput, RuleParametersInput, SavedReplyOrder, SecurityAdvisoryIdentifierFilter, SecurityAdvisoryOrder, SecurityVulnerabilityOrder, SetEnterpriseIdentityProviderInput, SetOrganizationInteractionLimitInput, SetRepositoryInteractionLimitInput, SetUserInteractionLimitInput, SponsorOrder, SponsorableOrder, SponsorsActivityOrder, SponsorsTierOrder, SponsorshipNewsletterOrder, SponsorshipOrder, StarOrder, StartOrganizationMigrationInput, StartRepositoryMigrationInput, StatusCheckConfigurationInput, SubmitPullRequestReviewInput, TagNamePatternParametersInput, TeamDiscussionCommentOrder, TeamDiscussionOrder, TeamMemberOrder, TeamOrder, TeamRepositoryOrder, TransferEnterpriseOrganizationInput, TransferIssueInput, UnarchiveProjectV2ItemInput, UnarchiveRepositoryInput, UnfollowOrganizationInput, UnfollowUserInput, UnlinkProjectV2FromRepositoryInput, UnlinkProjectV2FromTeamInput, UnlinkRepositoryFromProjectInput, UnlockLockableInput, UnmarkDiscussionCommentAsAnswerInput, UnmarkFileAsViewedInput, UnmarkIssueAsDuplicateInput, UnmarkProjectV2AsTemplateInput, UnminimizeCommentInput, UnpinIssueInput, UnresolveReviewThreadInput, UpdateBranchProtectionRuleInput, UpdateCheckRunInput, UpdateCheckSuitePreferencesInput, UpdateDiscussionCommentInput, UpdateDiscussionInput, UpdateEnterpriseAdministratorRoleInput, UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput, UpdateEnterpriseDefaultRepositoryPermissionSettingInput, UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput, UpdateEnterpriseMembersCanCreateRepositoriesSettingInput, UpdateEnterpriseMembersCanDeleteIssuesSettingInput, UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput, UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput, UpdateEnterpriseMembersCanMakePurchasesSettingInput, UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput, UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput, UpdateEnterpriseOrganizationProjectsSettingInput, UpdateEnterpriseOwnerOrganizationRoleInput, UpdateEnterpriseProfileInput, UpdateEnterpriseRepositoryProjectsSettingInput, UpdateEnterpriseTeamDiscussionsSettingInput, UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput, UpdateEnvironmentInput, UpdateIpAllowListEnabledSettingInput, UpdateIpAllowListEntryInput, UpdateIpAllowListForInstalledAppsEnabledSettingInput, UpdateIssueCommentInput, UpdateIssueInput, UpdateNotificationRestrictionSettingInput, UpdateOrganizationAllowPrivateRepositoryForkingSettingInput, UpdateOrganizationWebCommitSignoffSettingInput, UpdateParametersInput, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectInput, UpdateProjectV2CollaboratorsInput, UpdateProjectV2DraftIssueInput, UpdateProjectV2Input, UpdateProjectV2ItemFieldValueInput, UpdateProjectV2ItemPositionInput, UpdatePullRequestBranchInput, UpdatePullRequestInput, UpdatePullRequestReviewCommentInput, UpdatePullRequestReviewInput, UpdateRefInput, UpdateRepositoryInput, UpdateRepositoryRulesetInput, UpdateRepositoryWebCommitSignoffSettingInput, UpdateSponsorshipPreferencesInput, UpdateSubscriptionInput, UpdateTeamDiscussionCommentInput, UpdateTeamDiscussionInput, UpdateTeamsRepositoryInput, UpdateTopicsInput, UserStatusOrder, VerifiableDomainOrder, VerifyVerifiableDomainInput, WorkflowRunOrder. +// AbortQueuedMigrationsInput, AbortRepositoryMigrationInput, AcceptEnterpriseAdministratorInvitationInput, AcceptTopicSuggestionInput, AddAssigneesToAssignableInput, AddCommentInput, AddDiscussionCommentInput, AddDiscussionPollVoteInput, AddEnterpriseOrganizationMemberInput, AddEnterpriseSupportEntitlementInput, AddLabelsToLabelableInput, AddProjectCardInput, AddProjectColumnInput, AddProjectV2DraftIssueInput, AddProjectV2ItemByIdInput, AddPullRequestReviewCommentInput, AddPullRequestReviewInput, AddPullRequestReviewThreadInput, AddPullRequestReviewThreadReplyInput, AddReactionInput, AddStarInput, AddUpvoteInput, AddVerifiableDomainInput, ApproveDeploymentsInput, ApproveVerifiableDomainInput, ArchiveProjectV2ItemInput, ArchiveRepositoryInput, AuditLogOrder, BranchNamePatternParametersInput, BulkSponsorship, CancelEnterpriseAdminInvitationInput, CancelSponsorshipInput, ChangeUserStatusInput, CheckAnnotationData, CheckAnnotationRange, CheckRunAction, CheckRunFilter, CheckRunOutput, CheckRunOutputImage, CheckSuiteAutoTriggerPreference, CheckSuiteFilter, ClearLabelsFromLabelableInput, ClearProjectV2ItemFieldValueInput, CloneProjectInput, CloneTemplateRepositoryInput, CloseDiscussionInput, CloseIssueInput, ClosePullRequestInput, CommitAuthor, CommitAuthorEmailPatternParametersInput, CommitContributionOrder, CommitMessage, CommitMessagePatternParametersInput, CommittableBranch, CommitterEmailPatternParametersInput, ContributionOrder, ConvertProjectCardNoteToIssueInput, ConvertPullRequestToDraftInput, CopyProjectV2Input, CreateAttributionInvitationInput, CreateBranchProtectionRuleInput, CreateCheckRunInput, CreateCheckSuiteInput, CreateCommitOnBranchInput, CreateDiscussionInput, CreateEnterpriseOrganizationInput, CreateEnvironmentInput, CreateIpAllowListEntryInput, CreateIssueInput, CreateLinkedBranchInput, CreateMigrationSourceInput, CreateProjectInput, CreateProjectV2FieldInput, CreateProjectV2Input, CreatePullRequestInput, CreateRefInput, CreateRepositoryInput, CreateRepositoryRulesetInput, CreateSponsorsListingInput, CreateSponsorsTierInput, CreateSponsorshipInput, CreateSponsorshipsInput, CreateTeamDiscussionCommentInput, CreateTeamDiscussionInput, DeclineTopicSuggestionInput, DeleteBranchProtectionRuleInput, DeleteDeploymentInput, DeleteDiscussionCommentInput, DeleteDiscussionInput, DeleteEnvironmentInput, DeleteIpAllowListEntryInput, DeleteIssueCommentInput, DeleteIssueInput, DeleteLinkedBranchInput, DeleteProjectCardInput, DeleteProjectColumnInput, DeleteProjectInput, DeleteProjectV2FieldInput, DeleteProjectV2Input, DeleteProjectV2ItemInput, DeleteProjectV2WorkflowInput, DeletePullRequestReviewCommentInput, DeletePullRequestReviewInput, DeleteRefInput, DeleteRepositoryRulesetInput, DeleteTeamDiscussionCommentInput, DeleteTeamDiscussionInput, DeleteVerifiableDomainInput, DeploymentOrder, DequeuePullRequestInput, DisablePullRequestAutoMergeInput, DiscussionOrder, DiscussionPollOptionOrder, DismissPullRequestReviewInput, DismissRepositoryVulnerabilityAlertInput, DraftPullRequestReviewComment, DraftPullRequestReviewThread, EnablePullRequestAutoMergeInput, EnqueuePullRequestInput, EnterpriseAdministratorInvitationOrder, EnterpriseMemberOrder, EnterpriseOrder, EnterpriseServerInstallationOrder, EnterpriseServerUserAccountEmailOrder, EnterpriseServerUserAccountOrder, EnterpriseServerUserAccountsUploadOrder, Environments, FileAddition, FileChanges, FileDeletion, FollowOrganizationInput, FollowUserInput, GistOrder, GrantEnterpriseOrganizationsMigratorRoleInput, GrantMigratorRoleInput, InviteEnterpriseAdminInput, IpAllowListEntryOrder, IssueCommentOrder, IssueFilters, IssueOrder, LabelOrder, LanguageOrder, LinkProjectV2ToRepositoryInput, LinkProjectV2ToTeamInput, LinkRepositoryToProjectInput, LockLockableInput, MannequinOrder, MarkDiscussionCommentAsAnswerInput, MarkFileAsViewedInput, MarkProjectV2AsTemplateInput, MarkPullRequestReadyForReviewInput, MergeBranchInput, MergePullRequestInput, MilestoneOrder, MinimizeCommentInput, MoveProjectCardInput, MoveProjectColumnInput, OrgEnterpriseOwnerOrder, OrganizationOrder, PackageFileOrder, PackageOrder, PackageVersionOrder, PinIssueInput, ProjectOrder, ProjectV2Collaborator, ProjectV2FieldOrder, ProjectV2FieldValue, ProjectV2Filters, ProjectV2ItemFieldValueOrder, ProjectV2ItemOrder, ProjectV2Order, ProjectV2SingleSelectFieldOptionInput, ProjectV2ViewOrder, ProjectV2WorkflowOrder, PublishSponsorsTierInput, PullRequestOrder, PullRequestParametersInput, ReactionOrder, RefNameConditionTargetInput, RefOrder, RegenerateEnterpriseIdentityProviderRecoveryCodesInput, RegenerateVerifiableDomainTokenInput, RejectDeploymentsInput, ReleaseOrder, RemoveAssigneesFromAssignableInput, RemoveEnterpriseAdminInput, RemoveEnterpriseIdentityProviderInput, RemoveEnterpriseMemberInput, RemoveEnterpriseOrganizationInput, RemoveEnterpriseSupportEntitlementInput, RemoveLabelsFromLabelableInput, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RemoveUpvoteInput, ReopenDiscussionInput, ReopenIssueInput, ReopenPullRequestInput, RepositoryIdConditionTargetInput, RepositoryInvitationOrder, RepositoryMigrationOrder, RepositoryNameConditionTargetInput, RepositoryOrder, RepositoryRuleConditionsInput, RepositoryRuleInput, RepositoryRulesetBypassActorInput, RequestReviewsInput, RequiredDeploymentsParametersInput, RequiredStatusCheckInput, RequiredStatusChecksParametersInput, RerequestCheckSuiteInput, ResolveReviewThreadInput, RetireSponsorsTierInput, RevertPullRequestInput, RevokeEnterpriseOrganizationsMigratorRoleInput, RevokeMigratorRoleInput, RuleParametersInput, SavedReplyOrder, SecurityAdvisoryIdentifierFilter, SecurityAdvisoryOrder, SecurityVulnerabilityOrder, SetEnterpriseIdentityProviderInput, SetOrganizationInteractionLimitInput, SetRepositoryInteractionLimitInput, SetUserInteractionLimitInput, SponsorOrder, SponsorableOrder, SponsorsActivityOrder, SponsorsTierOrder, SponsorshipNewsletterOrder, SponsorshipOrder, StarOrder, StartOrganizationMigrationInput, StartRepositoryMigrationInput, StatusCheckConfigurationInput, SubmitPullRequestReviewInput, TagNamePatternParametersInput, TeamDiscussionCommentOrder, TeamDiscussionOrder, TeamMemberOrder, TeamOrder, TeamRepositoryOrder, TransferEnterpriseOrganizationInput, TransferIssueInput, UnarchiveProjectV2ItemInput, UnarchiveRepositoryInput, UnfollowOrganizationInput, UnfollowUserInput, UnlinkProjectV2FromRepositoryInput, UnlinkProjectV2FromTeamInput, UnlinkRepositoryFromProjectInput, UnlockLockableInput, UnmarkDiscussionCommentAsAnswerInput, UnmarkFileAsViewedInput, UnmarkIssueAsDuplicateInput, UnmarkProjectV2AsTemplateInput, UnminimizeCommentInput, UnpinIssueInput, UnresolveReviewThreadInput, UnsubscribeFromNotificationsInput, UpdateBranchProtectionRuleInput, UpdateCheckRunInput, UpdateCheckSuitePreferencesInput, UpdateDiscussionCommentInput, UpdateDiscussionInput, UpdateEnterpriseAdministratorRoleInput, UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput, UpdateEnterpriseDefaultRepositoryPermissionSettingInput, UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput, UpdateEnterpriseMembersCanCreateRepositoriesSettingInput, UpdateEnterpriseMembersCanDeleteIssuesSettingInput, UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput, UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput, UpdateEnterpriseMembersCanMakePurchasesSettingInput, UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput, UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput, UpdateEnterpriseOrganizationProjectsSettingInput, UpdateEnterpriseOwnerOrganizationRoleInput, UpdateEnterpriseProfileInput, UpdateEnterpriseRepositoryProjectsSettingInput, UpdateEnterpriseTeamDiscussionsSettingInput, UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput, UpdateEnvironmentInput, UpdateIpAllowListEnabledSettingInput, UpdateIpAllowListEntryInput, UpdateIpAllowListForInstalledAppsEnabledSettingInput, UpdateIssueCommentInput, UpdateIssueInput, UpdateNotificationRestrictionSettingInput, UpdateOrganizationAllowPrivateRepositoryForkingSettingInput, UpdateOrganizationWebCommitSignoffSettingInput, UpdateParametersInput, UpdatePatreonSponsorabilityInput, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectInput, UpdateProjectV2CollaboratorsInput, UpdateProjectV2DraftIssueInput, UpdateProjectV2Input, UpdateProjectV2ItemFieldValueInput, UpdateProjectV2ItemPositionInput, UpdatePullRequestBranchInput, UpdatePullRequestInput, UpdatePullRequestReviewCommentInput, UpdatePullRequestReviewInput, UpdateRefInput, UpdateRepositoryInput, UpdateRepositoryRulesetInput, UpdateRepositoryWebCommitSignoffSettingInput, UpdateSponsorshipPreferencesInput, UpdateSubscriptionInput, UpdateTeamDiscussionCommentInput, UpdateTeamDiscussionInput, UpdateTeamsRepositoryInput, UpdateTopicsInput, UserStatusOrder, VerifiableDomainOrder, VerifyVerifiableDomainInput, WorkflowFileReferenceInput, WorkflowRunOrder, WorkflowsParametersInput. type Input interface{} // AbortQueuedMigrationsInput is an autogenerated input type of AbortQueuedMigrations. @@ -16,6 +16,15 @@ type AbortQueuedMigrationsInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// AbortRepositoryMigrationInput is an autogenerated input type of AbortRepositoryMigration. +type AbortRepositoryMigrationInput struct { + // The ID of the migration to be aborted. (Required.) + MigrationID ID `json:"migrationId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // AcceptEnterpriseAdministratorInvitationInput is an autogenerated input type of AcceptEnterpriseAdministratorInvitation. type AcceptEnterpriseAdministratorInvitationInput struct { // The id of the invitation being accepted. (Required.) @@ -232,6 +241,19 @@ type AddPullRequestReviewThreadInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// AddPullRequestReviewThreadReplyInput is an autogenerated input type of AddPullRequestReviewThreadReply. +type AddPullRequestReviewThreadReplyInput struct { + // The Node ID of the thread to which this reply is being written. (Required.) + PullRequestReviewThreadID ID `json:"pullRequestReviewThreadId"` + // The text of the reply. (Required.) + Body String `json:"body"` + + // The Node ID of the pending review to which the reply will belong. (Optional.) + PullRequestReviewID *ID `json:"pullRequestReviewId,omitempty"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // AddReactionInput is an autogenerated input type of AddReaction. type AddReactionInput struct { // The Node ID of the subject to modify. (Required.) @@ -1165,25 +1187,25 @@ type CreateSponsorshipsInput struct { // CreateTeamDiscussionCommentInput is an autogenerated input type of CreateTeamDiscussionComment. type CreateTeamDiscussionCommentInput struct { - // The ID of the discussion to which the comment belongs. (Required.) - DiscussionID ID `json:"discussionId"` - // The content of the comment. (Required.) - Body String `json:"body"` + // The ID of the discussion to which the comment belongs. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `discussionId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) + DiscussionID *ID `json:"discussionId,omitempty"` + // The content of the comment. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) + Body *String `json:"body,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateTeamDiscussionInput is an autogenerated input type of CreateTeamDiscussion. type CreateTeamDiscussionInput struct { - // The ID of the team to which the discussion belongs. (Required.) - TeamID ID `json:"teamId"` - // The title of the discussion. (Required.) - Title String `json:"title"` - // The content of the discussion. (Required.) - Body String `json:"body"` - // 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. (Optional.) + // The ID of the team to which the discussion belongs. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `teamId` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) + TeamID *ID `json:"teamId,omitempty"` + // The title of the discussion. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `title` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) + Title *String `json:"title,omitempty"` + // The content of the discussion. This field is required. **Upcoming Change on 2024-07-01 UTC** **Description:** `body` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) + Body *String `json:"body,omitempty"` + // If true, restricts the visibility of this discussion to team members and organization owners. If false or not specified, allows any organization member to view this discussion. **Upcoming Change on 2024-07-01 UTC** **Description:** `private` will be removed. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions. (Optional.) Private *Boolean `json:"private,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` @@ -1550,6 +1572,14 @@ type EnterpriseMemberOrder struct { Direction OrderDirection `json:"direction"` } +// EnterpriseOrder represents ordering options for enterprises. +type EnterpriseOrder struct { + // The field to order enterprises by. (Required.) + Field EnterpriseOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + // EnterpriseServerInstallationOrder represents ordering options for Enterprise Server installation connections. type EnterpriseServerInstallationOrder struct { // The field to order Enterprise Server installations by. (Required.) @@ -1582,6 +1612,14 @@ type EnterpriseServerUserAccountsUploadOrder struct { Direction OrderDirection `json:"direction"` } +// Environments represents ordering options for environments. +type Environments struct { + // The field to order environments by. (Required.) + Field EnvironmentOrderField `json:"field"` + // The direction in which to order environments by the specified field. (Required.) + Direction OrderDirection `json:"direction"` +} + // FileAddition represents a command to add a file at the given path with the given contents as part of a commit. Any existing file at that that path will be replaced. type FileAddition struct { // The path in the repository where the file will be located. (Required.) @@ -2361,7 +2399,7 @@ type RepositoryRulesetBypassActorInput struct { ActorID *ID `json:"actorId,omitempty"` // For role bypasses, the role database ID. (Optional.) RepositoryRoleDatabaseID *Int `json:"repositoryRoleDatabaseId,omitempty"` - // For org admin bupasses, true. (Optional.) + // For organization owner bypasses, true. (Optional.) OrganizationAdmin *Boolean `json:"organizationAdmin,omitempty"` } @@ -2380,7 +2418,7 @@ type RequestReviewsInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } -// RequiredDeploymentsParametersInput represents choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. +// RequiredDeploymentsParametersInput represents choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. type RequiredDeploymentsParametersInput struct { // The environments that must be successfully deployed to before branches can be merged. (Required.) RequiredDeploymentEnvironments []String `json:"requiredDeploymentEnvironments"` @@ -2395,7 +2433,7 @@ type RequiredStatusCheckInput struct { AppID *ID `json:"appId,omitempty"` } -// RequiredStatusChecksParametersInput represents choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. +// RequiredStatusChecksParametersInput represents choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. type RequiredStatusChecksParametersInput struct { // Status checks that are required. (Required.) RequiredStatusChecks []StatusCheckConfigurationInput `json:"requiredStatusChecks"` @@ -2492,6 +2530,8 @@ type RuleParametersInput struct { BranchNamePattern *BranchNamePatternParametersInput `json:"branchNamePattern,omitempty"` // Parameters used for the `tag_name_pattern` rule type. (Optional.) TagNamePattern *TagNamePatternParametersInput `json:"tagNamePattern,omitempty"` + // Parameters used for the `workflows` rule type. (Optional.) + Workflows *WorkflowsParametersInput `json:"workflows,omitempty"` } // SavedReplyOrder represents ordering options for saved reply connections. @@ -2666,7 +2706,7 @@ type StartRepositoryMigrationInput struct { // The URL of the source repository. (Optional.) SourceRepositoryURL *URI `json:"sourceRepositoryUrl,omitempty"` - // Whether to continue the migration on error. Defaults to `false`. (Optional.) + // Whether to continue the migration on error. Defaults to `true`. (Optional.) ContinueOnError *Boolean `json:"continueOnError,omitempty"` // The signed URL to access the user-uploaded git archive. (Optional.) GitArchiveURL *String `json:"gitArchiveUrl,omitempty"` @@ -2934,6 +2974,15 @@ type UnresolveReviewThreadInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UnsubscribeFromNotificationsInput is an autogenerated input type of UnsubscribeFromNotifications. +type UnsubscribeFromNotificationsInput struct { + // The NotificationThread IDs of the objects to unsubscribe from. (Required.) + IDs []ID `json:"ids"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // UpdateBranchProtectionRuleInput is an autogenerated input type of UpdateBranchProtectionRule. type UpdateBranchProtectionRuleInput struct { // The global relay id of the branch protection rule to be updated. (Required.) @@ -3279,6 +3328,8 @@ type UpdateEnvironmentInput struct { WaitTimer *Int `json:"waitTimer,omitempty"` // The ids of users or teams that can approve deployments to this environment. (Optional.) Reviewers *[]ID `json:"reviewers,omitempty"` + // Whether deployments to this environment can be approved by the user who created the deployment. (Optional.) + PreventSelfReview *Boolean `json:"preventSelfReview,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -3393,6 +3444,17 @@ type UpdateParametersInput struct { UpdateAllowsFetchAndMerge Boolean `json:"updateAllowsFetchAndMerge"` } +// UpdatePatreonSponsorabilityInput is an autogenerated input type of UpdatePatreonSponsorability. +type UpdatePatreonSponsorabilityInput struct { + // Whether Patreon tiers should be shown on the GitHub Sponsors profile page, allowing potential sponsors to make their payment through Patreon instead of GitHub. (Required.) + EnablePatreonSponsorships Boolean `json:"enablePatreonSponsorships"` + + // The username of the organization with the GitHub Sponsors profile, if any. Defaults to the GitHub Sponsors profile for the authenticated user if omitted. (Optional.) + SponsorableLogin *String `json:"sponsorableLogin,omitempty"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // UpdateProjectCardInput is an autogenerated input type of UpdateProjectCard. type UpdateProjectCardInput struct { // The ProjectCard ID to update. (Required.) @@ -3514,6 +3576,8 @@ type UpdatePullRequestBranchInput struct { // The head ref oid for the upstream branch. (Optional.) ExpectedHeadOid *GitObjectID `json:"expectedHeadOid,omitempty"` + // The update branch method to use. If omitted, defaults to 'MERGE'. (Optional.) + UpdateMethod *PullRequestBranchUpdateMethod `json:"updateMethod,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -3746,6 +3810,19 @@ type VerifyVerifiableDomainInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// WorkflowFileReferenceInput represents a workflow that must run for this rule to pass. +type WorkflowFileReferenceInput struct { + // The path to the workflow file. (Required.) + Path String `json:"path"` + // The ID of the repository where the workflow is defined. (Required.) + RepositoryID Int `json:"repositoryId"` + + // The ref (branch or tag) of the workflow file to use. (Optional.) + Ref *String `json:"ref,omitempty"` + // The commit SHA of the workflow file to use. (Optional.) + Sha *String `json:"sha,omitempty"` +} + // WorkflowRunOrder represents ways in which lists of workflow runs can be ordered upon return. type WorkflowRunOrder struct { // The field by which to order workflows. (Required.) @@ -3753,3 +3830,9 @@ type WorkflowRunOrder struct { // The direction in which to order workflow runs by the specified field. (Required.) Direction OrderDirection `json:"direction"` } + +// WorkflowsParametersInput represents require all changes made to a targeted branch to pass the specified workflows before they can be merged. +type WorkflowsParametersInput struct { + // Workflows that must pass for this rule to pass. (Required.) + Workflows []WorkflowFileReferenceInput `json:"workflows"` +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 0fd365a0f..abc83c0ce 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -83,7 +83,7 @@ github.com/rs/zerolog/hlog/internal/mutil github.com/rs/zerolog/internal/cbor github.com/rs/zerolog/internal/json github.com/rs/zerolog/log -# github.com/shurcooL/githubv4 v0.0.0-20230704064427-599ae7bbf278 +# github.com/shurcooL/githubv4 v0.0.0-20231126234147-1cffa1f02456 ## explicit; go 1.19 github.com/shurcooL/githubv4 # github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f