From 22b35c67ce47f377d6da61edc0704d94645a6bf8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:27:38 +0000 Subject: [PATCH] fix(deps): update github.com/shurcool/githubv4 digest to 4829585 --- go.mod | 2 +- go.sum | 2 + .../github.com/shurcooL/githubv4/.travis.yml | 16 - vendor/github.com/shurcooL/githubv4/README.md | 16 +- .../shurcooL/githubv4/deprecated.go | 8 - vendor/github.com/shurcooL/githubv4/doc.go | 6 +- vendor/github.com/shurcooL/githubv4/enum.go | 803 ++++++++- vendor/github.com/shurcooL/githubv4/input.go | 1461 ++++++++++++++--- vendor/github.com/shurcooL/githubv4/scalar.go | 6 + vendor/modules.txt | 4 +- 10 files changed, 1990 insertions(+), 334 deletions(-) delete mode 100644 vendor/github.com/shurcooL/githubv4/.travis.yml delete mode 100644 vendor/github.com/shurcooL/githubv4/deprecated.go diff --git a/go.mod b/go.mod index 7e6346a1f..0afef9d07 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/google/uuid v1.6.0 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 - github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb + github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7 github.com/stretchr/testify v1.9.0 golang.org/x/crypto v0.31.0 golang.org/x/oauth2 v0.22.0 diff --git a/go.sum b/go.sum index 833e97336..c187eb7a1 100644 --- a/go.sum +++ b/go.sum @@ -580,6 +580,8 @@ github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqP github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb h1:foJysa74+t41fG7adnt+TkfcNxQUWid8R/HlXe+Mmbw= github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb/go.mod h1:hAF0iLZy4td2EX+/8Tw+4nodhlMrwN3HupfaXj3zkGo= +github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7 h1:cYCy18SHPKRkvclm+pWm1Lk4YrREb4IOIb/YdFO0p2M= +github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7/go.mod h1:zqMwyHmnN/eDOZOdiTohqIUKUrTFX62PNlu7IJdu0q8= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 h1:B1PEwpArrNp4dkQrfxh/abbBAOZBVp0ds+fBEOUOqOc= diff --git a/vendor/github.com/shurcooL/githubv4/.travis.yml b/vendor/github.com/shurcooL/githubv4/.travis.yml deleted file mode 100644 index 437c57db3..000000000 --- a/vendor/github.com/shurcooL/githubv4/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -sudo: false -language: go -go: - - 1.x - - master -matrix: - allow_failures: - - go: master - fast_finish: true -install: - - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). -script: - - go get -t -v ./... - - diff -u <(echo -n) <(gofmt -d -s .) - - go vet ./... - - go test -v -race ./... diff --git a/vendor/github.com/shurcooL/githubv4/README.md b/vendor/github.com/shurcooL/githubv4/README.md index b62f6bb8d..5e26f8f84 100644 --- a/vendor/github.com/shurcooL/githubv4/README.md +++ b/vendor/github.com/shurcooL/githubv4/README.md @@ -1,11 +1,11 @@ githubv4 ======== -[![Build Status](https://travis-ci.org/shurcooL/githubv4.svg?branch=master)](https://travis-ci.org/shurcooL/githubv4) [![GoDoc](https://godoc.org/github.com/shurcooL/githubv4?status.svg)](https://godoc.org/github.com/shurcooL/githubv4) +[![Go Reference](https://pkg.go.dev/badge/github.com/shurcooL/githubv4.svg)](https://pkg.go.dev/github.com/shurcooL/githubv4) Package `githubv4` is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -If you're looking for a client library for GitHub REST API v3, the recommended package is [`github.com/google/go-github/github`](https://godoc.org/github.com/google/go-github/github). +If you're looking for a client library for GitHub REST API v3, the recommended package is [`github`](https://github.com/google/go-github#installation) (also known as `go-github`). Focus ----- @@ -17,10 +17,8 @@ Focus Installation ------------ -`githubv4` requires Go version 1.8 or later. - -```bash -go get -u github.com/shurcooL/githubv4 +```sh +go get github.com/shurcooL/githubv4 ``` Usage @@ -403,9 +401,9 @@ fmt.Printf("Added a %v reaction to subject with ID %#v!\n", m.AddReaction.Reacti Directories ----------- -| Path | Synopsis | -|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| -| [example/githubv4dev](https://godoc.org/github.com/shurcooL/githubv4/example/githubv4dev) | githubv4dev is a test program currently being used for developing githubv4 package. | +| Path | Synopsis | +|--------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------| +| [example/githubv4dev](https://pkg.go.dev/github.com/shurcooL/githubv4/example/githubv4dev) | githubv4dev is a test program currently being used for developing githubv4 package. | License ------- diff --git a/vendor/github.com/shurcooL/githubv4/deprecated.go b/vendor/github.com/shurcooL/githubv4/deprecated.go deleted file mode 100644 index dd430762b..000000000 --- a/vendor/github.com/shurcooL/githubv4/deprecated.go +++ /dev/null @@ -1,8 +0,0 @@ -package githubv4 - -const ( - // IssueHunt funding platform. - // - // Deprecated: Use FundingPlatformIssueHunt instead. This will be deleted after 2022-11-19. - FundingPlatformIssuehunt = FundingPlatformIssueHunt -) diff --git a/vendor/github.com/shurcooL/githubv4/doc.go b/vendor/github.com/shurcooL/githubv4/doc.go index 74fddc50e..5f14a4173 100644 --- a/vendor/github.com/shurcooL/githubv4/doc.go +++ b/vendor/github.com/shurcooL/githubv4/doc.go @@ -2,9 +2,11 @@ // GraphQL API v4 (https://docs.github.com/en/graphql). // // If you're looking for a client library for GitHub REST API v3, -// the recommended package is github.com/google/go-github/github. +// the recommended package is [github] (also known as go-github). // // For now, see README for more details. -package githubv4 // import "github.com/shurcooL/githubv4" +// +// [github]: https://github.com/google/go-github#installation +package githubv4 //go:generate go run gen.go diff --git a/vendor/github.com/shurcooL/githubv4/enum.go b/vendor/github.com/shurcooL/githubv4/enum.go index a17ae2762..2cc380b42 100644 --- a/vendor/github.com/shurcooL/githubv4/enum.go +++ b/vendor/github.com/shurcooL/githubv4/enum.go @@ -80,12 +80,12 @@ type CheckStatusState string // The possible states for a check suite or run status. const ( + CheckStatusStateRequested CheckStatusState = "REQUESTED" // The check suite or run has been requested. CheckStatusStateQueued CheckStatusState = "QUEUED" // The check suite or run has been queued. CheckStatusStateInProgress CheckStatusState = "IN_PROGRESS" // The check suite or run is in progress. CheckStatusStateCompleted CheckStatusState = "COMPLETED" // The check suite or run has been completed. CheckStatusStateWaiting CheckStatusState = "WAITING" // The check suite or run is in waiting state. CheckStatusStatePending CheckStatusState = "PENDING" // The check suite or run is in pending state. - CheckStatusStateRequested CheckStatusState = "REQUESTED" // The check suite or run has been requested. ) // CollaboratorAffiliation represents collaborators affiliation level with a subject. @@ -185,6 +185,7 @@ const ( DependencyGraphEcosystemActions DependencyGraphEcosystem = "ACTIONS" // GitHub Actions. DependencyGraphEcosystemRust DependencyGraphEcosystem = "RUST" // Rust crates. DependencyGraphEcosystemPub DependencyGraphEcosystem = "PUB" // Dart packages hosted at pub.dev. + DependencyGraphEcosystemSwift DependencyGraphEcosystem = "SWIFT" // Swift packages. ) // DeploymentOrderField represents properties by which deployment connections can be ordered. @@ -202,6 +203,7 @@ type DeploymentProtectionRuleType string const ( DeploymentProtectionRuleTypeRequiredReviewers DeploymentProtectionRuleType = "REQUIRED_REVIEWERS" // Required reviewers. DeploymentProtectionRuleTypeWaitTimer DeploymentProtectionRuleType = "WAIT_TIMER" // Wait timer. + DeploymentProtectionRuleTypeBranchPolicy DeploymentProtectionRuleType = "BRANCH_POLICY" // Branch policy. ) // DeploymentReviewState represents the possible states for a deployment review. @@ -225,6 +227,7 @@ const ( DeploymentStateFailure DeploymentState = "FAILURE" // The deployment has failed. DeploymentStateInactive DeploymentState = "INACTIVE" // The deployment is inactive. DeploymentStatePending DeploymentState = "PENDING" // The deployment is pending. + DeploymentStateSuccess DeploymentState = "SUCCESS" // The deployment was successful. DeploymentStateQueued DeploymentState = "QUEUED" // The deployment has queued. DeploymentStateInProgress DeploymentState = "IN_PROGRESS" // The deployment is in progress. DeploymentStateWaiting DeploymentState = "WAITING" // The deployment is waiting. @@ -254,6 +257,16 @@ const ( DiffSideRight DiffSide = "RIGHT" // The right side of the diff. ) +// DiscussionCloseReason represents the possible reasons for closing a discussion. +type DiscussionCloseReason string + +// The possible reasons for closing a discussion. +const ( + DiscussionCloseReasonResolved DiscussionCloseReason = "RESOLVED" // The discussion has been resolved. + DiscussionCloseReasonOutdated DiscussionCloseReason = "OUTDATED" // The discussion is no longer relevant. + DiscussionCloseReasonDuplicate DiscussionCloseReason = "DUPLICATE" // The discussion is a duplicate of another. +) + // DiscussionOrderField represents properties by which discussion connections can be ordered. type DiscussionOrderField string @@ -272,6 +285,26 @@ const ( DiscussionPollOptionOrderFieldVoteCount DiscussionPollOptionOrderField = "VOTE_COUNT" // Order poll options by the number of votes it has. ) +// DiscussionState represents the possible states of a discussion. +type DiscussionState string + +// The possible states of a discussion. +const ( + DiscussionStateOpen DiscussionState = "OPEN" // A discussion that is open. + DiscussionStateClosed DiscussionState = "CLOSED" // A discussion that has been closed. +) + +// DiscussionStateReason represents the possible state reasons of a discussion. +type DiscussionStateReason string + +// The possible state reasons of a discussion. +const ( + DiscussionStateReasonResolved DiscussionStateReason = "RESOLVED" // The discussion has been resolved. + DiscussionStateReasonOutdated DiscussionStateReason = "OUTDATED" // The discussion is no longer relevant. + DiscussionStateReasonDuplicate DiscussionStateReason = "DUPLICATE" // The discussion is a duplicate of another. + DiscussionStateReasonReopened DiscussionStateReason = "REOPENED" // The discussion was reopened. +) + // DismissReason represents the possible reasons that a Dependabot alert was dismissed. type DismissReason string @@ -345,6 +378,14 @@ const ( EnterpriseEnabledSettingValueNoPolicy EnterpriseEnabledSettingValue = "NO_POLICY" // There is no policy set for organizations in the enterprise. ) +// EnterpriseMemberInvitationOrderField represents properties by which enterprise member invitation connections can be ordered. +type EnterpriseMemberInvitationOrderField string + +// Properties by which enterprise member invitation connections can be ordered. +const ( + EnterpriseMemberInvitationOrderFieldCreatedAt EnterpriseMemberInvitationOrderField = "CREATED_AT" // Order enterprise member invitations by creation time. +) + // EnterpriseMemberOrderField represents properties by which enterprise member connections can be ordered. type EnterpriseMemberOrderField string @@ -359,7 +400,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. @@ -375,6 +416,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 @@ -439,6 +499,24 @@ 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. +) + +// EnvironmentPinnedFilterField represents properties by which environments connections can be ordered. +type EnvironmentPinnedFilterField string + +// Properties by which environments connections can be ordered. +const ( + EnvironmentPinnedFilterFieldAll EnvironmentPinnedFilterField = "ALL" // All environments will be returned. + EnvironmentPinnedFilterFieldOnly EnvironmentPinnedFilterField = "ONLY" // Only pinned environment will be returned. + EnvironmentPinnedFilterFieldNone EnvironmentPinnedFilterField = "NONE" // Environments exclude pinned will be returned. +) + // FileViewedState represents the possible viewed states of a file . type FileViewedState string @@ -462,8 +540,9 @@ const ( FundingPlatformCommunityBridge FundingPlatform = "COMMUNITY_BRIDGE" // Community Bridge funding platform. FundingPlatformLiberapay FundingPlatform = "LIBERAPAY" // Liberapay funding platform. FundingPlatformIssueHunt FundingPlatform = "ISSUEHUNT" // IssueHunt funding platform. - FundingPlatformOtechie FundingPlatform = "OTECHIE" // Otechie funding platform. FundingPlatformLFXCrowdfunding FundingPlatform = "LFX_CROWDFUNDING" // LFX Crowdfunding funding platform. + FundingPlatformPolar FundingPlatform = "POLAR" // Polar funding platform. + FundingPlatformBuyMeACoffee FundingPlatform = "BUY_ME_A_COFFEE" // Buy Me a Coffee funding platform. FundingPlatformCustom FundingPlatform = "CUSTOM" // Custom funding platform. ) @@ -660,6 +739,15 @@ const ( LockReasonSpam LockReason = "SPAM" // The issue or pull request was locked because the conversation was spam. ) +// MannequinOrderField represents properties by which mannequins can be ordered. +type MannequinOrderField string + +// Properties by which mannequins can be ordered. +const ( + MannequinOrderFieldLogin MannequinOrderField = "LOGIN" // Order mannequins alphabetically by their source login. + MannequinOrderFieldCreatedAt MannequinOrderField = "CREATED_AT" // Order mannequins why when they were created. +) + // MergeCommitMessage represents the possible default commit messages for merges. type MergeCommitMessage string @@ -679,6 +767,61 @@ const ( MergeCommitTitleMergeMessage MergeCommitTitle = "MERGE_MESSAGE" // Default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). ) +// MergeQueueEntryState represents the possible states for a merge queue entry. +type MergeQueueEntryState string + +// The possible states for a merge queue entry. +const ( + MergeQueueEntryStateQueued MergeQueueEntryState = "QUEUED" // The entry is currently queued. + MergeQueueEntryStateAwaitingChecks MergeQueueEntryState = "AWAITING_CHECKS" // The entry is currently waiting for checks to pass. + MergeQueueEntryStateMergeable MergeQueueEntryState = "MERGEABLE" // The entry is currently mergeable. + MergeQueueEntryStateUnmergeable MergeQueueEntryState = "UNMERGEABLE" // The entry is currently unmergeable. + MergeQueueEntryStateLocked MergeQueueEntryState = "LOCKED" // The entry is currently locked. +) + +// MergeQueueGroupingStrategy represents when set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. +type MergeQueueGroupingStrategy string + +// When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. +const ( + MergeQueueGroupingStrategyAllgreen MergeQueueGroupingStrategy = "ALLGREEN" // The merge commit created by merge queue for each PR in the group must pass all required checks to merge. + MergeQueueGroupingStrategyHeadgreen MergeQueueGroupingStrategy = "HEADGREEN" // Only the commit at the head of the merge group must pass its required checks to merge. +) + +// MergeQueueMergeMethod represents method to use when merging changes from queued pull requests. +type MergeQueueMergeMethod string + +// Method to use when merging changes from queued pull requests. +const ( + MergeQueueMergeMethodMerge MergeQueueMergeMethod = "MERGE" // Merge commit. + MergeQueueMergeMethodSquash MergeQueueMergeMethod = "SQUASH" // Squash and merge. + MergeQueueMergeMethodRebase MergeQueueMergeMethod = "REBASE" // Rebase and merge. +) + +// MergeQueueMergingStrategy represents the possible merging strategies for a merge queue. +type MergeQueueMergingStrategy string + +// The possible merging strategies for a merge queue. +const ( + MergeQueueMergingStrategyAllgreen MergeQueueMergingStrategy = "ALLGREEN" // Entries only allowed to merge if they are passing. + MergeQueueMergingStrategyHeadgreen MergeQueueMergingStrategy = "HEADGREEN" // Failing Entires are allowed to merge if they are with a passing entry. +) + +// MergeStateStatus represents detailed status information about a pull request merge. +type MergeStateStatus string + +// Detailed status information about a pull request merge. +const ( + MergeStateStatusDirty MergeStateStatus = "DIRTY" // The merge commit cannot be cleanly created. + MergeStateStatusUnknown MergeStateStatus = "UNKNOWN" // The state cannot currently be determined. + MergeStateStatusBlocked MergeStateStatus = "BLOCKED" // The merge is blocked. + MergeStateStatusBehind MergeStateStatus = "BEHIND" // The head ref is out of date. + MergeStateStatusDraft MergeStateStatus = "DRAFT" // The merge is blocked due to the pull request being a draft. + MergeStateStatusUnstable MergeStateStatus = "UNSTABLE" // Mergeable with non-passing commit status. + MergeStateStatusHasHooks MergeStateStatus = "HAS_HOOKS" // Mergeable with passing commit status and pre-receive hooks. + MergeStateStatusClean MergeStateStatus = "CLEAN" // Mergeable and passing commit status. +) + // MergeableState represents whether or not a PullRequest can be merged. type MergeableState string @@ -689,28 +832,28 @@ const ( MergeableStateUnknown MergeableState = "UNKNOWN" // The mergeability of the pull request is still being calculated. ) -// MigrationSourceType represents represents the different Octoshift migration sources. +// MigrationSourceType represents represents the different GitHub Enterprise Importer (GEI) migration sources. type MigrationSourceType string -// Represents the different Octoshift migration sources. +// Represents the different GitHub Enterprise Importer (GEI) migration sources. const ( MigrationSourceTypeAzureDevOps MigrationSourceType = "AZURE_DEVOPS" // An Azure DevOps migration source. MigrationSourceTypeBitbucketServer MigrationSourceType = "BITBUCKET_SERVER" // A Bitbucket Server migration source. MigrationSourceTypeGitHubArchive MigrationSourceType = "GITHUB_ARCHIVE" // A GitHub Migration API source. ) -// MigrationState represents the Octoshift migration state. +// MigrationState represents the GitHub Enterprise Importer (GEI) migration state. type MigrationState string -// The Octoshift migration state. +// The GitHub Enterprise Importer (GEI) migration state. const ( - MigrationStateNotStarted MigrationState = "NOT_STARTED" // The Octoshift migration has not started. - MigrationStateQueued MigrationState = "QUEUED" // The Octoshift migration has been queued. - MigrationStateInProgress MigrationState = "IN_PROGRESS" // The Octoshift migration is in progress. - MigrationStateSucceeded MigrationState = "SUCCEEDED" // The Octoshift migration has succeeded. - MigrationStateFailed MigrationState = "FAILED" // The Octoshift migration has failed. - MigrationStatePendingValidation MigrationState = "PENDING_VALIDATION" // The Octoshift migration needs to have its credentials validated. - MigrationStateFailedValidation MigrationState = "FAILED_VALIDATION" // The Octoshift migration has invalid credentials. + MigrationStateNotStarted MigrationState = "NOT_STARTED" // The migration has not started. + MigrationStateQueued MigrationState = "QUEUED" // The migration has been queued. + MigrationStateInProgress MigrationState = "IN_PROGRESS" // The migration is in progress. + MigrationStateSucceeded MigrationState = "SUCCEEDED" // The migration has succeeded. + MigrationStateFailed MigrationState = "FAILED" // The migration has failed. + MigrationStatePendingValidation MigrationState = "PENDING_VALIDATION" // The migration needs to have its credentials validated. + MigrationStateFailedValidation MigrationState = "FAILED_VALIDATION" // The migration has invalid credentials. ) // MilestoneOrderField represents properties by which milestone connections can be ordered. @@ -750,14 +893,14 @@ const ( OIDCProviderTypeAad OIDCProviderType = "AAD" // Azure Active Directory. ) -// OauthApplicationCreateAuditEntryState represents the state of an OAuth Application when it was created. +// OauthApplicationCreateAuditEntryState represents the state of an OAuth application when it was created. type OauthApplicationCreateAuditEntryState string -// The state of an OAuth Application when it was created. +// The state of an OAuth application when it was created. const ( - OauthApplicationCreateAuditEntryStateActive OauthApplicationCreateAuditEntryState = "ACTIVE" // The OAuth Application was active and allowed to have OAuth Accesses. - OauthApplicationCreateAuditEntryStateSuspended OauthApplicationCreateAuditEntryState = "SUSPENDED" // The OAuth Application was suspended from generating OAuth Accesses due to abuse or security concerns. - OauthApplicationCreateAuditEntryStatePendingDeletion OauthApplicationCreateAuditEntryState = "PENDING_DELETION" // The OAuth Application was in the process of being deleted. + OauthApplicationCreateAuditEntryStateActive OauthApplicationCreateAuditEntryState = "ACTIVE" // The OAuth application was active and allowed to have OAuth Accesses. + OauthApplicationCreateAuditEntryStateSuspended OauthApplicationCreateAuditEntryState = "SUSPENDED" // The OAuth application was suspended from generating OAuth Accesses due to abuse or security concerns. + OauthApplicationCreateAuditEntryStatePendingDeletion OauthApplicationCreateAuditEntryState = "PENDING_DELETION" // The OAuth application was in the process of being deleted. ) // OperationType represents the corresponding operation type for the action. @@ -829,7 +972,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. @@ -912,6 +1055,16 @@ const ( OrganizationInvitationRoleReinstate OrganizationInvitationRole = "REINSTATE" // The user's previous role will be reinstated. ) +// OrganizationInvitationSource represents the possible organization invitation sources. +type OrganizationInvitationSource string + +// The possible organization invitation sources. +const ( + OrganizationInvitationSourceUnknown OrganizationInvitationSource = "UNKNOWN" // The invitation was sent before this feature was added. + OrganizationInvitationSourceMember OrganizationInvitationSource = "MEMBER" // The invitation was created from the web interface or from API. + OrganizationInvitationSourceSCIM OrganizationInvitationSource = "SCIM" // The invitation was created from SCIM. +) + // OrganizationInvitationType represents the possible organization invitation types. type OrganizationInvitationType string @@ -941,6 +1094,23 @@ const ( OrganizationMembersCanCreateRepositoriesSettingValueDisabled OrganizationMembersCanCreateRepositoriesSettingValue = "DISABLED" // Members will not be able to create public or private repositories. ) +// OrganizationMigrationState represents the Octoshift Organization migration state. +type OrganizationMigrationState string + +// The Octoshift Organization migration state. +const ( + OrganizationMigrationStateNotStarted OrganizationMigrationState = "NOT_STARTED" // The Octoshift migration has not started. + OrganizationMigrationStateQueued OrganizationMigrationState = "QUEUED" // The Octoshift migration has been queued. + OrganizationMigrationStateInProgress OrganizationMigrationState = "IN_PROGRESS" // The Octoshift migration is in progress. + OrganizationMigrationStatePreRepoMigration OrganizationMigrationState = "PRE_REPO_MIGRATION" // The Octoshift migration is performing pre repository migrations. + OrganizationMigrationStateRepoMigration OrganizationMigrationState = "REPO_MIGRATION" // The Octoshift org migration is performing repository migrations. + OrganizationMigrationStatePostRepoMigration OrganizationMigrationState = "POST_REPO_MIGRATION" // The Octoshift migration is performing post repository migrations. + OrganizationMigrationStateSucceeded OrganizationMigrationState = "SUCCEEDED" // The Octoshift migration has succeeded. + OrganizationMigrationStateFailed OrganizationMigrationState = "FAILED" // The Octoshift migration has failed. + OrganizationMigrationStatePendingValidation OrganizationMigrationState = "PENDING_VALIDATION" // The Octoshift migration needs to have its credentials validated. + OrganizationMigrationStateFailedValidation OrganizationMigrationState = "FAILED_VALIDATION" // The Octoshift migration has invalid credentials. +) + // OrganizationOrderField represents properties by which organization connections can be ordered. type OrganizationOrderField string @@ -1041,6 +1211,14 @@ const ( PinnedDiscussionPatternHeartFill PinnedDiscussionPattern = "HEART_FILL" // A heart pattern. ) +// PinnedEnvironmentOrderField represents properties by which pinned environments connections can be ordered. +type PinnedEnvironmentOrderField string + +// Properties by which pinned environments connections can be ordered. +const ( + PinnedEnvironmentOrderFieldPosition PinnedEnvironmentOrderField = "POSITION" // Order pinned environments by position. +) + // ProjectCardArchivedState represents the possible archived states of a project card. type ProjectCardArchivedState string @@ -1070,49 +1248,6 @@ const ( ProjectColumnPurposeDone ProjectColumnPurpose = "DONE" // The column contains cards which are complete. ) -// ProjectItemType represents the type of a project item. -type ProjectItemType string - -// The type of a project item. -const ( - ProjectItemTypeIssue ProjectItemType = "ISSUE" // Issue. - ProjectItemTypePullRequest ProjectItemType = "PULL_REQUEST" // Pull Request. - ProjectItemTypeDraftIssue ProjectItemType = "DRAFT_ISSUE" // Draft Issue. - ProjectItemTypeRedacted ProjectItemType = "REDACTED" // Redacted Item. -) - -// ProjectNextFieldType represents the type of a project next field. -type ProjectNextFieldType string - -// The type of a project next field. -const ( - ProjectNextFieldTypeAssignees ProjectNextFieldType = "ASSIGNEES" // Assignees. - ProjectNextFieldTypeLinkedPullRequests ProjectNextFieldType = "LINKED_PULL_REQUESTS" // Linked Pull Requests. - ProjectNextFieldTypeReviewers ProjectNextFieldType = "REVIEWERS" // Reviewers. - ProjectNextFieldTypeLabels ProjectNextFieldType = "LABELS" // Labels. - ProjectNextFieldTypeMilestone ProjectNextFieldType = "MILESTONE" // Milestone. - ProjectNextFieldTypeRepository ProjectNextFieldType = "REPOSITORY" // Repository. - ProjectNextFieldTypeTitle ProjectNextFieldType = "TITLE" // Title. - ProjectNextFieldTypeText ProjectNextFieldType = "TEXT" // Text. - ProjectNextFieldTypeSingleSelect ProjectNextFieldType = "SINGLE_SELECT" // Single Select. - ProjectNextFieldTypeNumber ProjectNextFieldType = "NUMBER" // Number. - ProjectNextFieldTypeDate ProjectNextFieldType = "DATE" // Date. - ProjectNextFieldTypeIteration ProjectNextFieldType = "ITERATION" // Iteration. - ProjectNextFieldTypeTracks ProjectNextFieldType = "TRACKS" // Tracks. - ProjectNextFieldTypeTrackedBy ProjectNextFieldType = "TRACKED_BY" // Tracked by. -) - -// ProjectNextOrderField represents properties by which the return project can be ordered. -type ProjectNextOrderField string - -// Properties by which the return project can be ordered. -const ( - ProjectNextOrderFieldTitle ProjectNextOrderField = "TITLE" // The project's title. - ProjectNextOrderFieldNumber ProjectNextOrderField = "NUMBER" // The project's number. - ProjectNextOrderFieldUpdatedAt ProjectNextOrderField = "UPDATED_AT" // The project's date and time of update. - ProjectNextOrderFieldCreatedAt ProjectNextOrderField = "CREATED_AT" // The project's date and time of creation. -) - // ProjectOrderField represents properties by which project connections can be ordered. type ProjectOrderField string @@ -1143,6 +1278,17 @@ const ( ProjectTemplateBugTriage ProjectTemplate = "BUG_TRIAGE" // Create a board to triage and prioritize bugs with To do, priority, and Done columns. ) +// ProjectV2CustomFieldType represents the type of a project field. +type ProjectV2CustomFieldType string + +// The type of a project field. +const ( + ProjectV2CustomFieldTypeText ProjectV2CustomFieldType = "TEXT" // Text. + ProjectV2CustomFieldTypeSingleSelect ProjectV2CustomFieldType = "SINGLE_SELECT" // Single Select. + ProjectV2CustomFieldTypeNumber ProjectV2CustomFieldType = "NUMBER" // Number. + ProjectV2CustomFieldTypeDate ProjectV2CustomFieldType = "DATE" // Date. +) + // ProjectV2FieldOrderField represents properties by which project v2 field connections can be ordered. type ProjectV2FieldOrderField string @@ -1212,6 +1358,42 @@ const ( ProjectV2OrderFieldCreatedAt ProjectV2OrderField = "CREATED_AT" // The project's date and time of creation. ) +// ProjectV2PermissionLevel represents the possible roles of a collaborator on a project. +type ProjectV2PermissionLevel string + +// The possible roles of a collaborator on a project. +const ( + ProjectV2PermissionLevelRead ProjectV2PermissionLevel = "READ" // The collaborator can view the project. + ProjectV2PermissionLevelWrite ProjectV2PermissionLevel = "WRITE" // The collaborator can view and edit the project. + ProjectV2PermissionLevelAdmin ProjectV2PermissionLevel = "ADMIN" // The collaborator can view, edit, and maange the settings of the project. +) + +// ProjectV2Roles represents the possible roles of a collaborator on a project. +type ProjectV2Roles string + +// The possible roles of a collaborator on a project. +const ( + ProjectV2RolesNone ProjectV2Roles = "NONE" // The collaborator has no direct access to the project. + ProjectV2RolesReader ProjectV2Roles = "READER" // The collaborator can view the project. + ProjectV2RolesWriter ProjectV2Roles = "WRITER" // The collaborator can view and edit the project. + ProjectV2RolesAdmin ProjectV2Roles = "ADMIN" // The collaborator can view, edit, and maange the settings of the project. +) + +// ProjectV2SingleSelectFieldOptionColor represents the display color of a single-select field option. +type ProjectV2SingleSelectFieldOptionColor string + +// The display color of a single-select field option. +const ( + ProjectV2SingleSelectFieldOptionColorGray ProjectV2SingleSelectFieldOptionColor = "GRAY" // GRAY. + ProjectV2SingleSelectFieldOptionColorBlue ProjectV2SingleSelectFieldOptionColor = "BLUE" // BLUE. + ProjectV2SingleSelectFieldOptionColorGreen ProjectV2SingleSelectFieldOptionColor = "GREEN" // GREEN. + ProjectV2SingleSelectFieldOptionColorYellow ProjectV2SingleSelectFieldOptionColor = "YELLOW" // YELLOW. + ProjectV2SingleSelectFieldOptionColorOrange ProjectV2SingleSelectFieldOptionColor = "ORANGE" // ORANGE. + ProjectV2SingleSelectFieldOptionColorRed ProjectV2SingleSelectFieldOptionColor = "RED" // RED. + ProjectV2SingleSelectFieldOptionColorPink ProjectV2SingleSelectFieldOptionColor = "PINK" // PINK. + ProjectV2SingleSelectFieldOptionColorPurple ProjectV2SingleSelectFieldOptionColor = "PURPLE" // PURPLE. +) + // ProjectV2State represents the possible states of a project v2. type ProjectV2State string @@ -1221,13 +1403,34 @@ const ( ProjectV2StateClosed ProjectV2State = "CLOSED" // A project v2 that has been closed. ) +// ProjectV2StatusUpdateOrderField represents properties by which project v2 status updates can be ordered. +type ProjectV2StatusUpdateOrderField string + +// Properties by which project v2 status updates can be ordered. +const ( + ProjectV2StatusUpdateOrderFieldCreatedAt ProjectV2StatusUpdateOrderField = "CREATED_AT" // Allows chronological ordering of project v2 status updates. +) + +// ProjectV2StatusUpdateStatus represents the possible statuses of a project v2. +type ProjectV2StatusUpdateStatus string + +// The possible statuses of a project v2. +const ( + ProjectV2StatusUpdateStatusInactive ProjectV2StatusUpdateStatus = "INACTIVE" // A project v2 that is inactive. + ProjectV2StatusUpdateStatusOnTrack ProjectV2StatusUpdateStatus = "ON_TRACK" // A project v2 that is on track with no risks. + ProjectV2StatusUpdateStatusAtRisk ProjectV2StatusUpdateStatus = "AT_RISK" // A project v2 that is at risk and encountering some challenges. + ProjectV2StatusUpdateStatusOffTrack ProjectV2StatusUpdateStatus = "OFF_TRACK" // A project v2 that is off track and needs attention. + ProjectV2StatusUpdateStatusComplete ProjectV2StatusUpdateStatus = "COMPLETE" // A project v2 that is complete. +) + // ProjectV2ViewLayout represents the layout of a project v2 view. type ProjectV2ViewLayout string // The layout of a project v2 view. const ( - ProjectV2ViewLayoutBoardLayout ProjectV2ViewLayout = "BOARD_LAYOUT" // Board layout. - ProjectV2ViewLayoutTableLayout ProjectV2ViewLayout = "TABLE_LAYOUT" // Table layout. + ProjectV2ViewLayoutBoardLayout ProjectV2ViewLayout = "BOARD_LAYOUT" // Board layout. + ProjectV2ViewLayoutTableLayout ProjectV2ViewLayout = "TABLE_LAYOUT" // Table layout. + ProjectV2ViewLayoutRoadmapLayout ProjectV2ViewLayout = "ROADMAP_LAYOUT" // Roadmap layout. ) // ProjectV2ViewOrderField represents properties by which project v2 view connections can be ordered. @@ -1240,13 +1443,24 @@ const ( ProjectV2ViewOrderFieldName ProjectV2ViewOrderField = "NAME" // Order project v2 views by name. ) -// ProjectViewLayout represents the layout of a project view. -type ProjectViewLayout string +// ProjectV2WorkflowsOrderField represents properties by which project workflows can be ordered. +type ProjectV2WorkflowsOrderField string -// The layout of a project view. +// Properties by which project workflows can be ordered. const ( - ProjectViewLayoutBoardLayout ProjectViewLayout = "BOARD_LAYOUT" // Board layout. - ProjectViewLayoutTableLayout ProjectViewLayout = "TABLE_LAYOUT" // Table layout. + 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. @@ -1310,6 +1524,15 @@ const ( PullRequestReviewStateDismissed PullRequestReviewState = "DISMISSED" // A review that has been dismissed. ) +// PullRequestReviewThreadSubjectType represents the possible subject types of a pull request review comment. +type PullRequestReviewThreadSubjectType string + +// The possible subject types of a pull request review comment. +const ( + PullRequestReviewThreadSubjectTypeLine PullRequestReviewThreadSubjectType = "LINE" // A comment that has been made against the line of a pull request. + PullRequestReviewThreadSubjectTypeFile PullRequestReviewThreadSubjectType = "FILE" // A comment that has been made against the file of a pull request. +) + // PullRequestState represents the possible states of a pull request. type PullRequestState string @@ -1586,10 +1809,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. + 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. @@ -1642,6 +1867,72 @@ const ( RepositoryPrivacyPrivate RepositoryPrivacy = "PRIVATE" // Private. ) +// RepositoryRuleOrderField represents properties by which repository rule connections can be ordered. +type RepositoryRuleOrderField string + +// Properties by which repository rule connections can be ordered. +const ( + RepositoryRuleOrderFieldUpdatedAt RepositoryRuleOrderField = "UPDATED_AT" // Order repository rules by updated time. + RepositoryRuleOrderFieldCreatedAt RepositoryRuleOrderField = "CREATED_AT" // Order repository rules by created time. + RepositoryRuleOrderFieldType RepositoryRuleOrderField = "TYPE" // Order repository rules by type. +) + +// RepositoryRuleType represents the rule types supported in rulesets. +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 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. + RepositoryRuleTypeFilePathRestriction RepositoryRuleType = "FILE_PATH_RESTRICTION" // Prevent commits that include changes in specified file paths from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. + RepositoryRuleTypeMaxFilePathLength RepositoryRuleType = "MAX_FILE_PATH_LENGTH" // Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. + RepositoryRuleTypeFileExtensionRestriction RepositoryRuleType = "FILE_EXTENSION_RESTRICTION" // Prevent commits that include files with specified file extensions from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. + RepositoryRuleTypeMaxFileSize RepositoryRuleType = "MAX_FILE_SIZE" // Prevent commits that exceed a specified file size limit from being pushed to the commit. NOTE: This rule is in beta and subject to change. + RepositoryRuleTypeWorkflows RepositoryRuleType = "WORKFLOWS" // Require all changes made to a targeted branch to pass the specified workflows before they can be merged. + RepositoryRuleTypeSecretScanning RepositoryRuleType = "SECRET_SCANNING" // Secret scanning. + RepositoryRuleTypeWorkflowUpdates RepositoryRuleType = "WORKFLOW_UPDATES" // Workflow files cannot be modified. + RepositoryRuleTypeCodeScanning RepositoryRuleType = "CODE_SCANNING" // Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. +) + +// RepositoryRulesetBypassActorBypassMode represents the bypass mode for a specific actor on a ruleset. +type RepositoryRulesetBypassActorBypassMode string + +// The bypass mode for a specific actor on a ruleset. +const ( + RepositoryRulesetBypassActorBypassModeAlways RepositoryRulesetBypassActorBypassMode = "ALWAYS" // The actor can always bypass rules. + RepositoryRulesetBypassActorBypassModePullRequest RepositoryRulesetBypassActorBypassMode = "PULL_REQUEST" // The actor can only bypass rules via a pull request. +) + +// RepositoryRulesetTarget represents the targets supported for rulesets. NOTE: The push target is in beta and subject to change. +type RepositoryRulesetTarget string + +// The targets supported for rulesets. NOTE: The push target is in beta and subject to change. +const ( + RepositoryRulesetTargetBranch RepositoryRulesetTarget = "BRANCH" // Branch. + RepositoryRulesetTargetTag RepositoryRulesetTarget = "TAG" // Tag. + RepositoryRulesetTargetPush RepositoryRulesetTarget = "PUSH" // Push. +) + // RepositoryVisibility represents the repository's visibility level. type RepositoryVisibility string @@ -1666,9 +1957,10 @@ type RepositoryVulnerabilityAlertState string // The possible states of an alert. const ( - RepositoryVulnerabilityAlertStateOpen RepositoryVulnerabilityAlertState = "OPEN" // An alert that is still open. - RepositoryVulnerabilityAlertStateFixed RepositoryVulnerabilityAlertState = "FIXED" // An alert that has been resolved by a code change. - RepositoryVulnerabilityAlertStateDismissed RepositoryVulnerabilityAlertState = "DISMISSED" // An alert that has been manually closed by a user. + RepositoryVulnerabilityAlertStateOpen RepositoryVulnerabilityAlertState = "OPEN" // An alert that is still open. + RepositoryVulnerabilityAlertStateFixed RepositoryVulnerabilityAlertState = "FIXED" // An alert that has been resolved by a code change. + RepositoryVulnerabilityAlertStateDismissed RepositoryVulnerabilityAlertState = "DISMISSED" // An alert that has been manually closed by a user. + RepositoryVulnerabilityAlertStateAutoDismissed RepositoryVulnerabilityAlertState = "AUTO_DISMISSED" // An alert that has been automatically closed by Dependabot. ) // RequestableCheckStatusState represents the possible states that can be requested when creating a check run. @@ -1693,6 +1985,16 @@ const ( RoleInOrganizationUnaffiliated RoleInOrganization = "UNAFFILIATED" // A user who is unaffiliated with the organization. ) +// RuleEnforcement represents the level of enforcement for a rule or ruleset. +type RuleEnforcement string + +// The level of enforcement for a rule or ruleset. +const ( + RuleEnforcementDisabled RuleEnforcement = "DISABLED" // Do not evaluate or enforce rules. + RuleEnforcementActive RuleEnforcement = "ACTIVE" // Rules will be enforced. + RuleEnforcementEvaluate RuleEnforcement = "EVALUATE" // Allow admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). +) + // SamlDigestAlgorithm represents the possible digest algorithms used to sign SAML requests for an identity provider. type SamlDigestAlgorithm string @@ -1759,6 +2061,7 @@ const ( SecurityAdvisoryEcosystemPub SecurityAdvisoryEcosystem = "PUB" // Dart packages hosted at pub.dev. SecurityAdvisoryEcosystemRubygems SecurityAdvisoryEcosystem = "RUBYGEMS" // Ruby gems hosted at RubyGems.org. SecurityAdvisoryEcosystemRust SecurityAdvisoryEcosystem = "RUST" // Rust crates. + SecurityAdvisoryEcosystemSwift SecurityAdvisoryEcosystem = "SWIFT" // Swift packages. ) // SecurityAdvisoryIdentifierType represents identifier formats available for advisories. @@ -1798,6 +2101,34 @@ const ( SecurityVulnerabilityOrderFieldUpdatedAt SecurityVulnerabilityOrderField = "UPDATED_AT" // Order vulnerability by update time. ) +// SocialAccountProvider represents software or company that hosts social media accounts. +type SocialAccountProvider string + +// Software or company that hosts social media accounts. +const ( + SocialAccountProviderGeneric SocialAccountProvider = "GENERIC" // Catch-all for social media providers that do not yet have specific handling. + SocialAccountProviderFacebook SocialAccountProvider = "FACEBOOK" // Social media and networking website. + SocialAccountProviderHometown SocialAccountProvider = "HOMETOWN" // Fork of Mastodon with a greater focus on local posting. + SocialAccountProviderInstagram SocialAccountProvider = "INSTAGRAM" // Social media website with a focus on photo and video sharing. + SocialAccountProviderLinkedIn SocialAccountProvider = "LINKEDIN" // Professional networking website. + SocialAccountProviderMastodon SocialAccountProvider = "MASTODON" // Open-source federated microblogging service. + SocialAccountProviderReddit SocialAccountProvider = "REDDIT" // Social news aggregation and discussion website. + SocialAccountProviderTwitch SocialAccountProvider = "TWITCH" // Live-streaming service. + SocialAccountProviderTwitter SocialAccountProvider = "TWITTER" // Microblogging website. + SocialAccountProviderYouTube SocialAccountProvider = "YOUTUBE" // Online video platform. + SocialAccountProviderNpm SocialAccountProvider = "NPM" // JavaScript package registry. +) + +// SponsorAndLifetimeValueOrderField represents properties by which sponsor and lifetime value connections can be ordered. +type SponsorAndLifetimeValueOrderField string + +// Properties by which sponsor and lifetime value connections can be ordered. +const ( + SponsorAndLifetimeValueOrderFieldSponsorLogin SponsorAndLifetimeValueOrderField = "SPONSOR_LOGIN" // Order results by the sponsor's login (username). + SponsorAndLifetimeValueOrderFieldSponsorRelevance SponsorAndLifetimeValueOrderField = "SPONSOR_RELEVANCE" // Order results by the sponsor's relevance to the viewer. + SponsorAndLifetimeValueOrderFieldLifetimeValue SponsorAndLifetimeValueOrderField = "LIFETIME_VALUE" // Order results by how much money the sponsor has paid in total. +) + // SponsorOrderField represents properties by which sponsor connections can be ordered. type SponsorOrderField string @@ -1847,6 +2178,259 @@ const ( SponsorsActivityPeriodAll SponsorsActivityPeriod = "ALL" // Don't restrict the activity to any date range, include all activity. ) +// SponsorsCountryOrRegionCode represents represents countries or regions for billing and residence for a GitHub Sponsors profile. +type SponsorsCountryOrRegionCode string + +// Represents countries or regions for billing and residence for a GitHub Sponsors profile. +const ( + SponsorsCountryOrRegionCodeAF SponsorsCountryOrRegionCode = "AF" // Afghanistan. + SponsorsCountryOrRegionCodeAX SponsorsCountryOrRegionCode = "AX" // Åland. + SponsorsCountryOrRegionCodeAL SponsorsCountryOrRegionCode = "AL" // Albania. + SponsorsCountryOrRegionCodeDZ SponsorsCountryOrRegionCode = "DZ" // Algeria. + SponsorsCountryOrRegionCodeAS SponsorsCountryOrRegionCode = "AS" // American Samoa. + SponsorsCountryOrRegionCodeAD SponsorsCountryOrRegionCode = "AD" // Andorra. + SponsorsCountryOrRegionCodeAO SponsorsCountryOrRegionCode = "AO" // Angola. + SponsorsCountryOrRegionCodeAI SponsorsCountryOrRegionCode = "AI" // Anguilla. + SponsorsCountryOrRegionCodeAQ SponsorsCountryOrRegionCode = "AQ" // Antarctica. + SponsorsCountryOrRegionCodeAG SponsorsCountryOrRegionCode = "AG" // Antigua and Barbuda. + SponsorsCountryOrRegionCodeAR SponsorsCountryOrRegionCode = "AR" // Argentina. + SponsorsCountryOrRegionCodeAM SponsorsCountryOrRegionCode = "AM" // Armenia. + SponsorsCountryOrRegionCodeAW SponsorsCountryOrRegionCode = "AW" // Aruba. + SponsorsCountryOrRegionCodeAU SponsorsCountryOrRegionCode = "AU" // Australia. + SponsorsCountryOrRegionCodeAT SponsorsCountryOrRegionCode = "AT" // Austria. + SponsorsCountryOrRegionCodeAZ SponsorsCountryOrRegionCode = "AZ" // Azerbaijan. + SponsorsCountryOrRegionCodeBS SponsorsCountryOrRegionCode = "BS" // Bahamas. + SponsorsCountryOrRegionCodeBH SponsorsCountryOrRegionCode = "BH" // Bahrain. + SponsorsCountryOrRegionCodeBD SponsorsCountryOrRegionCode = "BD" // Bangladesh. + SponsorsCountryOrRegionCodeBB SponsorsCountryOrRegionCode = "BB" // Barbados. + SponsorsCountryOrRegionCodeBY SponsorsCountryOrRegionCode = "BY" // Belarus. + SponsorsCountryOrRegionCodeBE SponsorsCountryOrRegionCode = "BE" // Belgium. + SponsorsCountryOrRegionCodeBZ SponsorsCountryOrRegionCode = "BZ" // Belize. + SponsorsCountryOrRegionCodeBJ SponsorsCountryOrRegionCode = "BJ" // Benin. + SponsorsCountryOrRegionCodeBM SponsorsCountryOrRegionCode = "BM" // Bermuda. + SponsorsCountryOrRegionCodeBT SponsorsCountryOrRegionCode = "BT" // Bhutan. + SponsorsCountryOrRegionCodeBO SponsorsCountryOrRegionCode = "BO" // Bolivia. + SponsorsCountryOrRegionCodeBQ SponsorsCountryOrRegionCode = "BQ" // Bonaire, Sint Eustatius and Saba. + SponsorsCountryOrRegionCodeBA SponsorsCountryOrRegionCode = "BA" // Bosnia and Herzegovina. + SponsorsCountryOrRegionCodeBW SponsorsCountryOrRegionCode = "BW" // Botswana. + SponsorsCountryOrRegionCodeBV SponsorsCountryOrRegionCode = "BV" // Bouvet Island. + SponsorsCountryOrRegionCodeBR SponsorsCountryOrRegionCode = "BR" // Brazil. + SponsorsCountryOrRegionCodeIO SponsorsCountryOrRegionCode = "IO" // British Indian Ocean Territory. + SponsorsCountryOrRegionCodeBN SponsorsCountryOrRegionCode = "BN" // Brunei Darussalam. + SponsorsCountryOrRegionCodeBG SponsorsCountryOrRegionCode = "BG" // Bulgaria. + SponsorsCountryOrRegionCodeBF SponsorsCountryOrRegionCode = "BF" // Burkina Faso. + SponsorsCountryOrRegionCodeBI SponsorsCountryOrRegionCode = "BI" // Burundi. + SponsorsCountryOrRegionCodeKH SponsorsCountryOrRegionCode = "KH" // Cambodia. + SponsorsCountryOrRegionCodeCM SponsorsCountryOrRegionCode = "CM" // Cameroon. + SponsorsCountryOrRegionCodeCA SponsorsCountryOrRegionCode = "CA" // Canada. + SponsorsCountryOrRegionCodeCV SponsorsCountryOrRegionCode = "CV" // Cape Verde. + SponsorsCountryOrRegionCodeKY SponsorsCountryOrRegionCode = "KY" // Cayman Islands. + SponsorsCountryOrRegionCodeCF SponsorsCountryOrRegionCode = "CF" // Central African Republic. + SponsorsCountryOrRegionCodeTD SponsorsCountryOrRegionCode = "TD" // Chad. + SponsorsCountryOrRegionCodeCL SponsorsCountryOrRegionCode = "CL" // Chile. + SponsorsCountryOrRegionCodeCN SponsorsCountryOrRegionCode = "CN" // China. + SponsorsCountryOrRegionCodeCX SponsorsCountryOrRegionCode = "CX" // Christmas Island. + SponsorsCountryOrRegionCodeCC SponsorsCountryOrRegionCode = "CC" // Cocos (Keeling) Islands. + SponsorsCountryOrRegionCodeCO SponsorsCountryOrRegionCode = "CO" // Colombia. + SponsorsCountryOrRegionCodeKM SponsorsCountryOrRegionCode = "KM" // Comoros. + SponsorsCountryOrRegionCodeCG SponsorsCountryOrRegionCode = "CG" // Congo (Brazzaville). + SponsorsCountryOrRegionCodeCD SponsorsCountryOrRegionCode = "CD" // Congo (Kinshasa). + SponsorsCountryOrRegionCodeCK SponsorsCountryOrRegionCode = "CK" // Cook Islands. + SponsorsCountryOrRegionCodeCR SponsorsCountryOrRegionCode = "CR" // Costa Rica. + SponsorsCountryOrRegionCodeCI SponsorsCountryOrRegionCode = "CI" // Côte d'Ivoire. + SponsorsCountryOrRegionCodeHR SponsorsCountryOrRegionCode = "HR" // Croatia. + SponsorsCountryOrRegionCodeCW SponsorsCountryOrRegionCode = "CW" // Curaçao. + SponsorsCountryOrRegionCodeCY SponsorsCountryOrRegionCode = "CY" // Cyprus. + SponsorsCountryOrRegionCodeCZ SponsorsCountryOrRegionCode = "CZ" // Czech Republic. + SponsorsCountryOrRegionCodeDK SponsorsCountryOrRegionCode = "DK" // Denmark. + SponsorsCountryOrRegionCodeDJ SponsorsCountryOrRegionCode = "DJ" // Djibouti. + SponsorsCountryOrRegionCodeDM SponsorsCountryOrRegionCode = "DM" // Dominica. + SponsorsCountryOrRegionCodeDO SponsorsCountryOrRegionCode = "DO" // Dominican Republic. + SponsorsCountryOrRegionCodeEC SponsorsCountryOrRegionCode = "EC" // Ecuador. + SponsorsCountryOrRegionCodeEG SponsorsCountryOrRegionCode = "EG" // Egypt. + SponsorsCountryOrRegionCodeSV SponsorsCountryOrRegionCode = "SV" // El Salvador. + SponsorsCountryOrRegionCodeGQ SponsorsCountryOrRegionCode = "GQ" // Equatorial Guinea. + SponsorsCountryOrRegionCodeER SponsorsCountryOrRegionCode = "ER" // Eritrea. + SponsorsCountryOrRegionCodeEE SponsorsCountryOrRegionCode = "EE" // Estonia. + SponsorsCountryOrRegionCodeET SponsorsCountryOrRegionCode = "ET" // Ethiopia. + SponsorsCountryOrRegionCodeFK SponsorsCountryOrRegionCode = "FK" // Falkland Islands. + SponsorsCountryOrRegionCodeFO SponsorsCountryOrRegionCode = "FO" // Faroe Islands. + SponsorsCountryOrRegionCodeFJ SponsorsCountryOrRegionCode = "FJ" // Fiji. + SponsorsCountryOrRegionCodeFI SponsorsCountryOrRegionCode = "FI" // Finland. + SponsorsCountryOrRegionCodeFR SponsorsCountryOrRegionCode = "FR" // France. + SponsorsCountryOrRegionCodeGF SponsorsCountryOrRegionCode = "GF" // French Guiana. + SponsorsCountryOrRegionCodePF SponsorsCountryOrRegionCode = "PF" // French Polynesia. + SponsorsCountryOrRegionCodeTF SponsorsCountryOrRegionCode = "TF" // French Southern Lands. + SponsorsCountryOrRegionCodeGA SponsorsCountryOrRegionCode = "GA" // Gabon. + SponsorsCountryOrRegionCodeGM SponsorsCountryOrRegionCode = "GM" // Gambia. + SponsorsCountryOrRegionCodeGE SponsorsCountryOrRegionCode = "GE" // Georgia. + SponsorsCountryOrRegionCodeDE SponsorsCountryOrRegionCode = "DE" // Germany. + SponsorsCountryOrRegionCodeGH SponsorsCountryOrRegionCode = "GH" // Ghana. + SponsorsCountryOrRegionCodeGI SponsorsCountryOrRegionCode = "GI" // Gibraltar. + SponsorsCountryOrRegionCodeGR SponsorsCountryOrRegionCode = "GR" // Greece. + SponsorsCountryOrRegionCodeGL SponsorsCountryOrRegionCode = "GL" // Greenland. + SponsorsCountryOrRegionCodeGD SponsorsCountryOrRegionCode = "GD" // Grenada. + SponsorsCountryOrRegionCodeGP SponsorsCountryOrRegionCode = "GP" // Guadeloupe. + SponsorsCountryOrRegionCodeGU SponsorsCountryOrRegionCode = "GU" // Guam. + SponsorsCountryOrRegionCodeGT SponsorsCountryOrRegionCode = "GT" // Guatemala. + SponsorsCountryOrRegionCodeGG SponsorsCountryOrRegionCode = "GG" // Guernsey. + SponsorsCountryOrRegionCodeGN SponsorsCountryOrRegionCode = "GN" // Guinea. + SponsorsCountryOrRegionCodeGW SponsorsCountryOrRegionCode = "GW" // Guinea-Bissau. + SponsorsCountryOrRegionCodeGY SponsorsCountryOrRegionCode = "GY" // Guyana. + SponsorsCountryOrRegionCodeHT SponsorsCountryOrRegionCode = "HT" // Haiti. + SponsorsCountryOrRegionCodeHM SponsorsCountryOrRegionCode = "HM" // Heard and McDonald Islands. + SponsorsCountryOrRegionCodeHN SponsorsCountryOrRegionCode = "HN" // Honduras. + SponsorsCountryOrRegionCodeHK SponsorsCountryOrRegionCode = "HK" // Hong Kong. + SponsorsCountryOrRegionCodeHU SponsorsCountryOrRegionCode = "HU" // Hungary. + SponsorsCountryOrRegionCodeIS SponsorsCountryOrRegionCode = "IS" // Iceland. + SponsorsCountryOrRegionCodeIN SponsorsCountryOrRegionCode = "IN" // India. + SponsorsCountryOrRegionCodeID SponsorsCountryOrRegionCode = "ID" // Indonesia. + SponsorsCountryOrRegionCodeIR SponsorsCountryOrRegionCode = "IR" // Iran. + SponsorsCountryOrRegionCodeIQ SponsorsCountryOrRegionCode = "IQ" // Iraq. + SponsorsCountryOrRegionCodeIE SponsorsCountryOrRegionCode = "IE" // Ireland. + SponsorsCountryOrRegionCodeIM SponsorsCountryOrRegionCode = "IM" // Isle of Man. + SponsorsCountryOrRegionCodeIL SponsorsCountryOrRegionCode = "IL" // Israel. + SponsorsCountryOrRegionCodeIT SponsorsCountryOrRegionCode = "IT" // Italy. + SponsorsCountryOrRegionCodeJM SponsorsCountryOrRegionCode = "JM" // Jamaica. + SponsorsCountryOrRegionCodeJP SponsorsCountryOrRegionCode = "JP" // Japan. + SponsorsCountryOrRegionCodeJE SponsorsCountryOrRegionCode = "JE" // Jersey. + SponsorsCountryOrRegionCodeJO SponsorsCountryOrRegionCode = "JO" // Jordan. + SponsorsCountryOrRegionCodeKZ SponsorsCountryOrRegionCode = "KZ" // Kazakhstan. + SponsorsCountryOrRegionCodeKE SponsorsCountryOrRegionCode = "KE" // Kenya. + SponsorsCountryOrRegionCodeKI SponsorsCountryOrRegionCode = "KI" // Kiribati. + SponsorsCountryOrRegionCodeKR SponsorsCountryOrRegionCode = "KR" // Korea, South. + SponsorsCountryOrRegionCodeKW SponsorsCountryOrRegionCode = "KW" // Kuwait. + SponsorsCountryOrRegionCodeKG SponsorsCountryOrRegionCode = "KG" // Kyrgyzstan. + SponsorsCountryOrRegionCodeLA SponsorsCountryOrRegionCode = "LA" // Laos. + SponsorsCountryOrRegionCodeLV SponsorsCountryOrRegionCode = "LV" // Latvia. + SponsorsCountryOrRegionCodeLB SponsorsCountryOrRegionCode = "LB" // Lebanon. + SponsorsCountryOrRegionCodeLS SponsorsCountryOrRegionCode = "LS" // Lesotho. + SponsorsCountryOrRegionCodeLR SponsorsCountryOrRegionCode = "LR" // Liberia. + SponsorsCountryOrRegionCodeLY SponsorsCountryOrRegionCode = "LY" // Libya. + SponsorsCountryOrRegionCodeLI SponsorsCountryOrRegionCode = "LI" // Liechtenstein. + SponsorsCountryOrRegionCodeLT SponsorsCountryOrRegionCode = "LT" // Lithuania. + SponsorsCountryOrRegionCodeLU SponsorsCountryOrRegionCode = "LU" // Luxembourg. + SponsorsCountryOrRegionCodeMO SponsorsCountryOrRegionCode = "MO" // Macau. + SponsorsCountryOrRegionCodeMK SponsorsCountryOrRegionCode = "MK" // Macedonia. + SponsorsCountryOrRegionCodeMG SponsorsCountryOrRegionCode = "MG" // Madagascar. + SponsorsCountryOrRegionCodeMW SponsorsCountryOrRegionCode = "MW" // Malawi. + SponsorsCountryOrRegionCodeMY SponsorsCountryOrRegionCode = "MY" // Malaysia. + SponsorsCountryOrRegionCodeMV SponsorsCountryOrRegionCode = "MV" // Maldives. + SponsorsCountryOrRegionCodeML SponsorsCountryOrRegionCode = "ML" // Mali. + SponsorsCountryOrRegionCodeMT SponsorsCountryOrRegionCode = "MT" // Malta. + SponsorsCountryOrRegionCodeMH SponsorsCountryOrRegionCode = "MH" // Marshall Islands. + SponsorsCountryOrRegionCodeMQ SponsorsCountryOrRegionCode = "MQ" // Martinique. + SponsorsCountryOrRegionCodeMR SponsorsCountryOrRegionCode = "MR" // Mauritania. + SponsorsCountryOrRegionCodeMU SponsorsCountryOrRegionCode = "MU" // Mauritius. + SponsorsCountryOrRegionCodeYT SponsorsCountryOrRegionCode = "YT" // Mayotte. + SponsorsCountryOrRegionCodeMX SponsorsCountryOrRegionCode = "MX" // Mexico. + SponsorsCountryOrRegionCodeFM SponsorsCountryOrRegionCode = "FM" // Micronesia. + SponsorsCountryOrRegionCodeMD SponsorsCountryOrRegionCode = "MD" // Moldova. + SponsorsCountryOrRegionCodeMC SponsorsCountryOrRegionCode = "MC" // Monaco. + SponsorsCountryOrRegionCodeMN SponsorsCountryOrRegionCode = "MN" // Mongolia. + SponsorsCountryOrRegionCodeME SponsorsCountryOrRegionCode = "ME" // Montenegro. + SponsorsCountryOrRegionCodeMS SponsorsCountryOrRegionCode = "MS" // Montserrat. + SponsorsCountryOrRegionCodeMA SponsorsCountryOrRegionCode = "MA" // Morocco. + SponsorsCountryOrRegionCodeMZ SponsorsCountryOrRegionCode = "MZ" // Mozambique. + SponsorsCountryOrRegionCodeMM SponsorsCountryOrRegionCode = "MM" // Myanmar. + SponsorsCountryOrRegionCodeNA SponsorsCountryOrRegionCode = "NA" // Namibia. + SponsorsCountryOrRegionCodeNR SponsorsCountryOrRegionCode = "NR" // Nauru. + SponsorsCountryOrRegionCodeNP SponsorsCountryOrRegionCode = "NP" // Nepal. + SponsorsCountryOrRegionCodeNL SponsorsCountryOrRegionCode = "NL" // Netherlands. + SponsorsCountryOrRegionCodeNC SponsorsCountryOrRegionCode = "NC" // New Caledonia. + SponsorsCountryOrRegionCodeNZ SponsorsCountryOrRegionCode = "NZ" // New Zealand. + SponsorsCountryOrRegionCodeNI SponsorsCountryOrRegionCode = "NI" // Nicaragua. + SponsorsCountryOrRegionCodeNE SponsorsCountryOrRegionCode = "NE" // Niger. + SponsorsCountryOrRegionCodeNG SponsorsCountryOrRegionCode = "NG" // Nigeria. + SponsorsCountryOrRegionCodeNU SponsorsCountryOrRegionCode = "NU" // Niue. + SponsorsCountryOrRegionCodeNF SponsorsCountryOrRegionCode = "NF" // Norfolk Island. + SponsorsCountryOrRegionCodeMP SponsorsCountryOrRegionCode = "MP" // Northern Mariana Islands. + SponsorsCountryOrRegionCodeNO SponsorsCountryOrRegionCode = "NO" // Norway. + SponsorsCountryOrRegionCodeOM SponsorsCountryOrRegionCode = "OM" // Oman. + SponsorsCountryOrRegionCodePK SponsorsCountryOrRegionCode = "PK" // Pakistan. + SponsorsCountryOrRegionCodePW SponsorsCountryOrRegionCode = "PW" // Palau. + SponsorsCountryOrRegionCodePS SponsorsCountryOrRegionCode = "PS" // Palestine. + SponsorsCountryOrRegionCodePA SponsorsCountryOrRegionCode = "PA" // Panama. + SponsorsCountryOrRegionCodePG SponsorsCountryOrRegionCode = "PG" // Papua New Guinea. + SponsorsCountryOrRegionCodePY SponsorsCountryOrRegionCode = "PY" // Paraguay. + SponsorsCountryOrRegionCodePE SponsorsCountryOrRegionCode = "PE" // Peru. + SponsorsCountryOrRegionCodePH SponsorsCountryOrRegionCode = "PH" // Philippines. + SponsorsCountryOrRegionCodePN SponsorsCountryOrRegionCode = "PN" // Pitcairn. + SponsorsCountryOrRegionCodePL SponsorsCountryOrRegionCode = "PL" // Poland. + SponsorsCountryOrRegionCodePT SponsorsCountryOrRegionCode = "PT" // Portugal. + SponsorsCountryOrRegionCodePR SponsorsCountryOrRegionCode = "PR" // Puerto Rico. + SponsorsCountryOrRegionCodeQA SponsorsCountryOrRegionCode = "QA" // Qatar. + SponsorsCountryOrRegionCodeRE SponsorsCountryOrRegionCode = "RE" // Reunion. + SponsorsCountryOrRegionCodeRO SponsorsCountryOrRegionCode = "RO" // Romania. + SponsorsCountryOrRegionCodeRU SponsorsCountryOrRegionCode = "RU" // Russian Federation. + SponsorsCountryOrRegionCodeRW SponsorsCountryOrRegionCode = "RW" // Rwanda. + SponsorsCountryOrRegionCodeBL SponsorsCountryOrRegionCode = "BL" // Saint Barthélemy. + SponsorsCountryOrRegionCodeSH SponsorsCountryOrRegionCode = "SH" // Saint Helena. + SponsorsCountryOrRegionCodeKN SponsorsCountryOrRegionCode = "KN" // Saint Kitts and Nevis. + SponsorsCountryOrRegionCodeLC SponsorsCountryOrRegionCode = "LC" // Saint Lucia. + SponsorsCountryOrRegionCodeMF SponsorsCountryOrRegionCode = "MF" // Saint Martin (French part). + SponsorsCountryOrRegionCodePM SponsorsCountryOrRegionCode = "PM" // Saint Pierre and Miquelon. + SponsorsCountryOrRegionCodeVC SponsorsCountryOrRegionCode = "VC" // Saint Vincent and the Grenadines. + SponsorsCountryOrRegionCodeWS SponsorsCountryOrRegionCode = "WS" // Samoa. + SponsorsCountryOrRegionCodeSM SponsorsCountryOrRegionCode = "SM" // San Marino. + SponsorsCountryOrRegionCodeST SponsorsCountryOrRegionCode = "ST" // Sao Tome and Principe. + SponsorsCountryOrRegionCodeSA SponsorsCountryOrRegionCode = "SA" // Saudi Arabia. + SponsorsCountryOrRegionCodeSN SponsorsCountryOrRegionCode = "SN" // Senegal. + SponsorsCountryOrRegionCodeRS SponsorsCountryOrRegionCode = "RS" // Serbia. + SponsorsCountryOrRegionCodeSC SponsorsCountryOrRegionCode = "SC" // Seychelles. + SponsorsCountryOrRegionCodeSL SponsorsCountryOrRegionCode = "SL" // Sierra Leone. + SponsorsCountryOrRegionCodeSG SponsorsCountryOrRegionCode = "SG" // Singapore. + SponsorsCountryOrRegionCodeSX SponsorsCountryOrRegionCode = "SX" // Sint Maarten (Dutch part). + SponsorsCountryOrRegionCodeSK SponsorsCountryOrRegionCode = "SK" // Slovakia. + SponsorsCountryOrRegionCodeSI SponsorsCountryOrRegionCode = "SI" // Slovenia. + SponsorsCountryOrRegionCodeSB SponsorsCountryOrRegionCode = "SB" // Solomon Islands. + SponsorsCountryOrRegionCodeSO SponsorsCountryOrRegionCode = "SO" // Somalia. + SponsorsCountryOrRegionCodeZA SponsorsCountryOrRegionCode = "ZA" // South Africa. + SponsorsCountryOrRegionCodeGS SponsorsCountryOrRegionCode = "GS" // South Georgia and South Sandwich Islands. + SponsorsCountryOrRegionCodeSS SponsorsCountryOrRegionCode = "SS" // South Sudan. + SponsorsCountryOrRegionCodeES SponsorsCountryOrRegionCode = "ES" // Spain. + SponsorsCountryOrRegionCodeLK SponsorsCountryOrRegionCode = "LK" // Sri Lanka. + SponsorsCountryOrRegionCodeSD SponsorsCountryOrRegionCode = "SD" // Sudan. + SponsorsCountryOrRegionCodeSR SponsorsCountryOrRegionCode = "SR" // Suriname. + SponsorsCountryOrRegionCodeSJ SponsorsCountryOrRegionCode = "SJ" // Svalbard and Jan Mayen Islands. + SponsorsCountryOrRegionCodeSZ SponsorsCountryOrRegionCode = "SZ" // Swaziland. + SponsorsCountryOrRegionCodeSE SponsorsCountryOrRegionCode = "SE" // Sweden. + SponsorsCountryOrRegionCodeCH SponsorsCountryOrRegionCode = "CH" // Switzerland. + SponsorsCountryOrRegionCodeTW SponsorsCountryOrRegionCode = "TW" // Taiwan. + SponsorsCountryOrRegionCodeTJ SponsorsCountryOrRegionCode = "TJ" // Tajikistan. + SponsorsCountryOrRegionCodeTZ SponsorsCountryOrRegionCode = "TZ" // Tanzania. + SponsorsCountryOrRegionCodeTH SponsorsCountryOrRegionCode = "TH" // Thailand. + SponsorsCountryOrRegionCodeTL SponsorsCountryOrRegionCode = "TL" // Timor-Leste. + SponsorsCountryOrRegionCodeTG SponsorsCountryOrRegionCode = "TG" // Togo. + SponsorsCountryOrRegionCodeTK SponsorsCountryOrRegionCode = "TK" // Tokelau. + SponsorsCountryOrRegionCodeTO SponsorsCountryOrRegionCode = "TO" // Tonga. + SponsorsCountryOrRegionCodeTT SponsorsCountryOrRegionCode = "TT" // Trinidad and Tobago. + SponsorsCountryOrRegionCodeTN SponsorsCountryOrRegionCode = "TN" // Tunisia. + SponsorsCountryOrRegionCodeTR SponsorsCountryOrRegionCode = "TR" // Türkiye. + SponsorsCountryOrRegionCodeTM SponsorsCountryOrRegionCode = "TM" // Turkmenistan. + SponsorsCountryOrRegionCodeTC SponsorsCountryOrRegionCode = "TC" // Turks and Caicos Islands. + SponsorsCountryOrRegionCodeTV SponsorsCountryOrRegionCode = "TV" // Tuvalu. + SponsorsCountryOrRegionCodeUG SponsorsCountryOrRegionCode = "UG" // Uganda. + SponsorsCountryOrRegionCodeUA SponsorsCountryOrRegionCode = "UA" // Ukraine. + SponsorsCountryOrRegionCodeAE SponsorsCountryOrRegionCode = "AE" // United Arab Emirates. + SponsorsCountryOrRegionCodeGB SponsorsCountryOrRegionCode = "GB" // United Kingdom. + SponsorsCountryOrRegionCodeUM SponsorsCountryOrRegionCode = "UM" // United States Minor Outlying Islands. + SponsorsCountryOrRegionCodeUS SponsorsCountryOrRegionCode = "US" // United States of America. + SponsorsCountryOrRegionCodeUY SponsorsCountryOrRegionCode = "UY" // Uruguay. + SponsorsCountryOrRegionCodeUZ SponsorsCountryOrRegionCode = "UZ" // Uzbekistan. + SponsorsCountryOrRegionCodeVU SponsorsCountryOrRegionCode = "VU" // Vanuatu. + SponsorsCountryOrRegionCodeVA SponsorsCountryOrRegionCode = "VA" // Vatican City. + SponsorsCountryOrRegionCodeVE SponsorsCountryOrRegionCode = "VE" // Venezuela. + SponsorsCountryOrRegionCodeVN SponsorsCountryOrRegionCode = "VN" // Vietnam. + SponsorsCountryOrRegionCodeVG SponsorsCountryOrRegionCode = "VG" // Virgin Islands, British. + SponsorsCountryOrRegionCodeVI SponsorsCountryOrRegionCode = "VI" // Virgin Islands, U.S. + SponsorsCountryOrRegionCodeWF SponsorsCountryOrRegionCode = "WF" // Wallis and Futuna Islands. + SponsorsCountryOrRegionCodeEH SponsorsCountryOrRegionCode = "EH" // Western Sahara. + SponsorsCountryOrRegionCodeYE SponsorsCountryOrRegionCode = "YE" // Yemen. + SponsorsCountryOrRegionCodeZM SponsorsCountryOrRegionCode = "ZM" // Zambia. + SponsorsCountryOrRegionCodeZW SponsorsCountryOrRegionCode = "ZW" // Zimbabwe. +) + // SponsorsGoalKind represents the different kinds of goals a GitHub Sponsors member can have. type SponsorsGoalKind string @@ -1890,6 +2474,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 @@ -1992,6 +2585,15 @@ const ( TeamMembershipTypeAll TeamMembershipType = "ALL" // Includes immediate and child team members for the team. ) +// TeamNotificationSetting represents the possible team notification values. +type TeamNotificationSetting string + +// The possible team notification values. +const ( + TeamNotificationSettingNotificationsEnabled TeamNotificationSetting = "NOTIFICATIONS_ENABLED" // Everyone will receive notifications when the team is @mentioned. + TeamNotificationSettingNotificationsDisabled TeamNotificationSetting = "NOTIFICATIONS_DISABLED" // No one will receive notifications. +) + // TeamOrderField represents properties by which team connections can be ordered. type TeamOrderField string @@ -2022,6 +2624,15 @@ const ( TeamRepositoryOrderFieldStargazers TeamRepositoryOrderField = "STARGAZERS" // Order repositories by number of stargazers. ) +// TeamReviewAssignmentAlgorithm represents the possible team review assignment algorithms. +type TeamReviewAssignmentAlgorithm string + +// The possible team review assignment algorithms. +const ( + TeamReviewAssignmentAlgorithmRoundRobin TeamReviewAssignmentAlgorithm = "ROUND_ROBIN" // Alternate reviews between each team member. + TeamReviewAssignmentAlgorithmLoadBalance TeamReviewAssignmentAlgorithm = "LOAD_BALANCE" // Balance review load across the entire team. +) + // TeamRole represents the role of a user on a team. type TeamRole string @@ -2031,6 +2642,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 @@ -2087,3 +2724,15 @@ type WorkflowRunOrderField string const ( WorkflowRunOrderFieldCreatedAt WorkflowRunOrderField = "CREATED_AT" // Order workflow runs by most recently created. ) + +// WorkflowState represents the possible states for a workflow. +type WorkflowState string + +// The possible states for a workflow. +const ( + WorkflowStateActive WorkflowState = "ACTIVE" // The workflow is active. + WorkflowStateDeleted WorkflowState = "DELETED" // The workflow was deleted from the git repository. + WorkflowStateDisabledFork WorkflowState = "DISABLED_FORK" // The workflow was disabled by default on a fork. + WorkflowStateDisabledInactivity WorkflowState = "DISABLED_INACTIVITY" // The workflow was disabled for inactivity in the repository. + WorkflowStateDisabledManually WorkflowState = "DISABLED_MANUALLY" // The workflow was disabled manually. +) diff --git a/vendor/github.com/shurcooL/githubv4/input.go b/vendor/github.com/shurcooL/githubv4/input.go index be1234827..3b99e7038 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, AddProjectDraftIssueInput, AddProjectNextItemInput, AddProjectV2DraftIssueInput, AddProjectV2ItemByIdInput, AddPullRequestReviewCommentInput, AddPullRequestReviewInput, AddPullRequestReviewThreadInput, AddReactionInput, AddStarInput, AddUpvoteInput, AddVerifiableDomainInput, ApproveDeploymentsInput, ApproveVerifiableDomainInput, ArchiveProjectV2ItemInput, ArchiveRepositoryInput, AuditLogOrder, CancelEnterpriseAdminInvitationInput, CancelSponsorshipInput, ChangeUserStatusInput, CheckAnnotationData, CheckAnnotationRange, CheckRunAction, CheckRunFilter, CheckRunOutput, CheckRunOutputImage, CheckSuiteAutoTriggerPreference, CheckSuiteFilter, ClearLabelsFromLabelableInput, ClearProjectV2ItemFieldValueInput, CloneProjectInput, CloneTemplateRepositoryInput, CloseIssueInput, ClosePullRequestInput, CommitAuthor, CommitContributionOrder, CommitMessage, CommittableBranch, ContributionOrder, ConvertProjectCardNoteToIssueInput, ConvertPullRequestToDraftInput, CreateBranchProtectionRuleInput, CreateCheckRunInput, CreateCheckSuiteInput, CreateCommitOnBranchInput, CreateDiscussionInput, CreateEnterpriseOrganizationInput, CreateEnvironmentInput, CreateIpAllowListEntryInput, CreateIssueInput, CreateLinkedBranchInput, CreateMigrationSourceInput, CreateProjectInput, CreateProjectV2Input, CreatePullRequestInput, CreateRefInput, CreateRepositoryInput, CreateSponsorsTierInput, CreateSponsorshipInput, CreateTeamDiscussionCommentInput, CreateTeamDiscussionInput, DeclineTopicSuggestionInput, DeleteBranchProtectionRuleInput, DeleteDeploymentInput, DeleteDiscussionCommentInput, DeleteDiscussionInput, DeleteEnvironmentInput, DeleteIpAllowListEntryInput, DeleteIssueCommentInput, DeleteIssueInput, DeleteLinkedBranchInput, DeleteProjectCardInput, DeleteProjectColumnInput, DeleteProjectInput, DeleteProjectNextItemInput, DeleteProjectV2ItemInput, DeletePullRequestReviewCommentInput, DeletePullRequestReviewInput, DeleteRefInput, DeleteTeamDiscussionCommentInput, DeleteTeamDiscussionInput, DeleteVerifiableDomainInput, DeploymentOrder, DisablePullRequestAutoMergeInput, DiscussionOrder, DiscussionPollOptionOrder, DismissPullRequestReviewInput, DismissRepositoryVulnerabilityAlertInput, DraftPullRequestReviewComment, DraftPullRequestReviewThread, EnablePullRequestAutoMergeInput, 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, MarkDiscussionCommentAsAnswerInput, MarkFileAsViewedInput, MarkPullRequestReadyForReviewInput, MergeBranchInput, MergePullRequestInput, MilestoneOrder, MinimizeCommentInput, MoveProjectCardInput, MoveProjectColumnInput, OrgEnterpriseOwnerOrder, OrganizationOrder, PackageFileOrder, PackageOrder, PackageVersionOrder, PinIssueInput, ProjectOrder, ProjectV2FieldOrder, ProjectV2FieldValue, ProjectV2Filters, ProjectV2ItemFieldValueOrder, ProjectV2ItemOrder, ProjectV2Order, ProjectV2ViewOrder, PullRequestOrder, ReactionOrder, RefOrder, RegenerateEnterpriseIdentityProviderRecoveryCodesInput, RegenerateVerifiableDomainTokenInput, RejectDeploymentsInput, ReleaseOrder, RemoveAssigneesFromAssignableInput, RemoveEnterpriseAdminInput, RemoveEnterpriseIdentityProviderInput, RemoveEnterpriseOrganizationInput, RemoveEnterpriseSupportEntitlementInput, RemoveLabelsFromLabelableInput, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RemoveUpvoteInput, ReopenIssueInput, ReopenPullRequestInput, RepositoryInvitationOrder, RepositoryMigrationOrder, RepositoryOrder, RequestReviewsInput, RequiredStatusCheckInput, RerequestCheckSuiteInput, ResolveReviewThreadInput, RevokeEnterpriseOrganizationsMigratorRoleInput, RevokeMigratorRoleInput, SavedReplyOrder, SecurityAdvisoryIdentifierFilter, SecurityAdvisoryOrder, SecurityVulnerabilityOrder, SetEnterpriseIdentityProviderInput, SetOrganizationInteractionLimitInput, SetRepositoryInteractionLimitInput, SetUserInteractionLimitInput, SponsorOrder, SponsorableOrder, SponsorsActivityOrder, SponsorsTierOrder, SponsorshipNewsletterOrder, SponsorshipOrder, StarOrder, StartRepositoryMigrationInput, SubmitPullRequestReviewInput, TeamDiscussionCommentOrder, TeamDiscussionOrder, TeamMemberOrder, TeamOrder, TeamRepositoryOrder, TransferEnterpriseOrganizationInput, TransferIssueInput, UnarchiveProjectV2ItemInput, UnarchiveRepositoryInput, UnfollowOrganizationInput, UnfollowUserInput, UnlinkProjectV2FromRepositoryInput, UnlinkProjectV2FromTeamInput, UnlinkRepositoryFromProjectInput, UnlockLockableInput, UnmarkDiscussionCommentAsAnswerInput, UnmarkFileAsViewedInput, UnmarkIssueAsDuplicateInput, 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, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectDraftIssueInput, UpdateProjectInput, UpdateProjectNextInput, UpdateProjectNextItemFieldInput, UpdateProjectV2DraftIssueInput, UpdateProjectV2Input, UpdateProjectV2ItemFieldValueInput, UpdateProjectV2ItemPositionInput, UpdatePullRequestBranchInput, UpdatePullRequestInput, UpdatePullRequestReviewCommentInput, UpdatePullRequestReviewInput, UpdateRefInput, UpdateRepositoryInput, UpdateRepositoryWebCommitSignoffSettingInput, UpdateSponsorshipPreferencesInput, UpdateSubscriptionInput, UpdateTeamDiscussionCommentInput, UpdateTeamDiscussionInput, UpdateTeamsRepositoryInput, UpdateTopicsInput, UserStatusOrder, VerifiableDomainOrder, VerifyVerifiableDomainInput, WorkflowRunOrder. +// AbortQueuedMigrationsInput, AbortRepositoryMigrationInput, AcceptEnterpriseAdministratorInvitationInput, AcceptEnterpriseMemberInvitationInput, 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, CancelEnterpriseMemberInvitationInput, CancelSponsorshipInput, ChangeUserStatusInput, CheckAnnotationData, CheckAnnotationRange, CheckRunAction, CheckRunFilter, CheckRunOutput, CheckRunOutputImage, CheckSuiteAutoTriggerPreference, CheckSuiteFilter, ClearLabelsFromLabelableInput, ClearProjectV2ItemFieldValueInput, CloneProjectInput, CloneTemplateRepositoryInput, CloseDiscussionInput, CloseIssueInput, ClosePullRequestInput, CodeScanningParametersInput, CodeScanningToolInput, CommitAuthor, CommitAuthorEmailPatternParametersInput, CommitContributionOrder, CommitMessage, CommitMessagePatternParametersInput, CommittableBranch, CommitterEmailPatternParametersInput, ContributionOrder, ConvertProjectCardNoteToIssueInput, ConvertProjectV2DraftIssueItemToIssueInput, ConvertPullRequestToDraftInput, CopyProjectV2Input, CreateAttributionInvitationInput, CreateBranchProtectionRuleInput, CreateCheckRunInput, CreateCheckSuiteInput, CreateCommitOnBranchInput, CreateDeploymentInput, CreateDeploymentStatusInput, CreateDiscussionInput, CreateEnterpriseOrganizationInput, CreateEnvironmentInput, CreateIpAllowListEntryInput, CreateIssueInput, CreateLabelInput, CreateLinkedBranchInput, CreateMigrationSourceInput, CreateProjectInput, CreateProjectV2FieldInput, CreateProjectV2Input, CreateProjectV2StatusUpdateInput, CreatePullRequestInput, CreateRefInput, CreateRepositoryInput, CreateRepositoryRulesetInput, CreateSponsorsListingInput, CreateSponsorsTierInput, CreateSponsorshipInput, CreateSponsorshipsInput, CreateTeamDiscussionCommentInput, CreateTeamDiscussionInput, CreateUserListInput, DeclineTopicSuggestionInput, DeleteBranchProtectionRuleInput, DeleteDeploymentInput, DeleteDiscussionCommentInput, DeleteDiscussionInput, DeleteEnvironmentInput, DeleteIpAllowListEntryInput, DeleteIssueCommentInput, DeleteIssueInput, DeleteLabelInput, DeleteLinkedBranchInput, DeletePackageVersionInput, DeleteProjectCardInput, DeleteProjectColumnInput, DeleteProjectInput, DeleteProjectV2FieldInput, DeleteProjectV2Input, DeleteProjectV2ItemInput, DeleteProjectV2StatusUpdateInput, DeleteProjectV2WorkflowInput, DeletePullRequestReviewCommentInput, DeletePullRequestReviewInput, DeleteRefInput, DeleteRepositoryRulesetInput, DeleteTeamDiscussionCommentInput, DeleteTeamDiscussionInput, DeleteUserListInput, DeleteVerifiableDomainInput, DeploymentOrder, DequeuePullRequestInput, DisablePullRequestAutoMergeInput, DiscussionOrder, DiscussionPollOptionOrder, DismissPullRequestReviewInput, DismissRepositoryVulnerabilityAlertInput, DraftPullRequestReviewComment, DraftPullRequestReviewThread, EnablePullRequestAutoMergeInput, EnqueuePullRequestInput, EnterpriseAdministratorInvitationOrder, EnterpriseMemberInvitationOrder, EnterpriseMemberOrder, EnterpriseOrder, EnterpriseServerInstallationOrder, EnterpriseServerUserAccountEmailOrder, EnterpriseServerUserAccountOrder, EnterpriseServerUserAccountsUploadOrder, Environments, FileAddition, FileChanges, FileDeletion, FileExtensionRestrictionParametersInput, FilePathRestrictionParametersInput, FollowOrganizationInput, FollowUserInput, GistOrder, GrantEnterpriseOrganizationsMigratorRoleInput, GrantMigratorRoleInput, ImportProjectInput, InviteEnterpriseAdminInput, InviteEnterpriseMemberInput, IpAllowListEntryOrder, IssueCommentOrder, IssueFilters, IssueOrder, LabelOrder, LanguageOrder, LinkProjectV2ToRepositoryInput, LinkProjectV2ToTeamInput, LinkRepositoryToProjectInput, LockLockableInput, MannequinOrder, MarkDiscussionCommentAsAnswerInput, MarkFileAsViewedInput, MarkNotificationAsDoneInput, MarkProjectV2AsTemplateInput, MarkPullRequestReadyForReviewInput, MaxFilePathLengthParametersInput, MaxFileSizeParametersInput, MergeBranchInput, MergePullRequestInput, MergeQueueParametersInput, MilestoneOrder, MinimizeCommentInput, MoveProjectCardInput, MoveProjectColumnInput, OrgEnterpriseOwnerOrder, OrganizationOrder, PackageFileOrder, PackageOrder, PackageVersionOrder, PinEnvironmentInput, PinIssueInput, PinnedEnvironmentOrder, ProjectCardImport, ProjectColumnImport, ProjectOrder, ProjectV2Collaborator, ProjectV2FieldOrder, ProjectV2FieldValue, ProjectV2Filters, ProjectV2ItemFieldValueOrder, ProjectV2ItemOrder, ProjectV2Order, ProjectV2SingleSelectFieldOptionInput, ProjectV2StatusOrder, ProjectV2ViewOrder, ProjectV2WorkflowOrder, PropertyTargetDefinitionInput, PublishSponsorsTierInput, PullRequestOrder, PullRequestParametersInput, ReactionOrder, RefNameConditionTargetInput, RefOrder, RefUpdate, RegenerateEnterpriseIdentityProviderRecoveryCodesInput, RegenerateVerifiableDomainTokenInput, RejectDeploymentsInput, ReleaseOrder, RemoveAssigneesFromAssignableInput, RemoveEnterpriseAdminInput, RemoveEnterpriseIdentityProviderInput, RemoveEnterpriseMemberInput, RemoveEnterpriseOrganizationInput, RemoveEnterpriseSupportEntitlementInput, RemoveLabelsFromLabelableInput, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RemoveUpvoteInput, ReopenDiscussionInput, ReopenIssueInput, ReopenPullRequestInput, ReorderEnvironmentInput, RepositoryIdConditionTargetInput, RepositoryInvitationOrder, RepositoryMigrationOrder, RepositoryNameConditionTargetInput, RepositoryOrder, RepositoryPropertyConditionTargetInput, RepositoryRuleConditionsInput, RepositoryRuleInput, RepositoryRuleOrder, RepositoryRulesetBypassActorInput, RequestReviewsInput, RequiredDeploymentsParametersInput, RequiredStatusCheckInput, RequiredStatusChecksParametersInput, RerequestCheckSuiteInput, ResolveReviewThreadInput, RetireSponsorsTierInput, RevertPullRequestInput, RevokeEnterpriseOrganizationsMigratorRoleInput, RevokeMigratorRoleInput, RuleParametersInput, SavedReplyOrder, SecurityAdvisoryIdentifierFilter, SecurityAdvisoryOrder, SecurityVulnerabilityOrder, SetEnterpriseIdentityProviderInput, SetOrganizationInteractionLimitInput, SetRepositoryInteractionLimitInput, SetUserInteractionLimitInput, SponsorAndLifetimeValueOrder, 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, UpdateLabelInput, UpdateNotificationRestrictionSettingInput, UpdateOrganizationAllowPrivateRepositoryForkingSettingInput, UpdateOrganizationWebCommitSignoffSettingInput, UpdateParametersInput, UpdatePatreonSponsorabilityInput, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectInput, UpdateProjectV2CollaboratorsInput, UpdateProjectV2DraftIssueInput, UpdateProjectV2Input, UpdateProjectV2ItemFieldValueInput, UpdateProjectV2ItemPositionInput, UpdateProjectV2StatusUpdateInput, UpdatePullRequestBranchInput, UpdatePullRequestInput, UpdatePullRequestReviewCommentInput, UpdatePullRequestReviewInput, UpdateRefInput, UpdateRefsInput, UpdateRepositoryInput, UpdateRepositoryRulesetInput, UpdateRepositoryWebCommitSignoffSettingInput, UpdateSponsorshipPreferencesInput, UpdateSubscriptionInput, UpdateTeamDiscussionCommentInput, UpdateTeamDiscussionInput, UpdateTeamReviewAssignmentInput, UpdateTeamsRepositoryInput, UpdateTopicsInput, UpdateUserListInput, UpdateUserListsForItemInput, 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.) @@ -25,15 +34,24 @@ type AcceptEnterpriseAdministratorInvitationInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// AcceptEnterpriseMemberInvitationInput is an autogenerated input type of AcceptEnterpriseMemberInvitation. +type AcceptEnterpriseMemberInvitationInput struct { + // The id of the invitation being accepted. (Required.) + InvitationID ID `json:"invitationId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // AcceptTopicSuggestionInput is an autogenerated input type of AcceptTopicSuggestion. type AcceptTopicSuggestionInput struct { - // The Node ID of the repository. (Required.) - RepositoryID ID `json:"repositoryId"` - // The name of the suggested topic. (Required.) - Name String `json:"name"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Node ID of the repository. **Upcoming Change on 2024-04-01 UTC** **Description:** `repositoryId` will be removed. **Reason:** Suggested topics are no longer supported. (Optional.) + RepositoryID *ID `json:"repositoryId,omitempty"` + // The name of the suggested topic. **Upcoming Change on 2024-04-01 UTC** **Description:** `name` will be removed. **Reason:** Suggested topics are no longer supported. (Optional.) + Name *String `json:"name,omitempty"` } // AddAssigneesToAssignableInput is an autogenerated input type of AddAssigneesToAssignable. @@ -65,10 +83,10 @@ type AddDiscussionCommentInput struct { // The contents of the comment. (Required.) Body String `json:"body"` - // The Node ID of the discussion comment within this discussion to reply to. (Optional.) - ReplyToID *ID `json:"replyToId,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Node ID of the discussion comment within this discussion to reply to. (Optional.) + ReplyToID *ID `json:"replyToId,omitempty"` } // AddDiscussionPollVoteInput is an autogenerated input type of AddDiscussionPollVote. @@ -89,10 +107,10 @@ type AddEnterpriseOrganizationMemberInput struct { // The IDs of the enterprise members to add. (Required.) UserIDs []ID `json:"userIds"` - // The role to assign the users in the organization. (Optional.) - Role *OrganizationMemberRole `json:"role,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The role to assign the users in the organization. (Optional.) + Role *OrganizationMemberRole `json:"role,omitempty"` } // AddEnterpriseSupportEntitlementInput is an autogenerated input type of AddEnterpriseSupportEntitlement. @@ -122,12 +140,12 @@ type AddProjectCardInput struct { // The Node ID of the ProjectColumn. (Required.) ProjectColumnID ID `json:"projectColumnId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The content of the card. Must be a member of the ProjectCardItem union. (Optional.) ContentID *ID `json:"contentId,omitempty"` // The note on the card. (Optional.) Note *String `json:"note,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // AddProjectColumnInput is an autogenerated input type of AddProjectColumn. @@ -141,45 +159,19 @@ type AddProjectColumnInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } -// AddProjectDraftIssueInput is an autogenerated input type of AddProjectDraftIssue. -type AddProjectDraftIssueInput struct { - - // The ID of the Project to add the draft issue to. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ProjectID *ID `json:"projectId,omitempty"` - // The title of the draft issue. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Title *String `json:"title,omitempty"` - // The body of the draft issue. **Upcoming Change on 2023-01-01 UTC** **Description:** `body` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Body *String `json:"body,omitempty"` - // The IDs of the assignees of the draft issue. **Upcoming Change on 2023-01-01 UTC** **Description:** `assigneeIds` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` -} - -// AddProjectNextItemInput is an autogenerated input type of AddProjectNextItem. -type AddProjectNextItemInput struct { - - // The ID of the Project to add the item to. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ProjectID *ID `json:"projectId,omitempty"` - // The content id of the item (Issue or PullRequest). This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `contentId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ContentID *ID `json:"contentId,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` -} - // AddProjectV2DraftIssueInput is an autogenerated input type of AddProjectV2DraftIssue. type AddProjectV2DraftIssueInput struct { // The ID of the Project to add the draft issue to. (Required.) ProjectID ID `json:"projectId"` - // The title of the draft issue. (Required.) + // The title of the draft issue. A project item can also be created by providing the URL of an Issue or Pull Request if you have access. (Required.) Title String `json:"title"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The body of the draft issue. (Optional.) Body *String `json:"body,omitempty"` // The IDs of the assignees of the draft issue. (Optional.) AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // AddProjectV2ItemByIdInput is an autogenerated input type of AddProjectV2ItemById. @@ -195,23 +187,23 @@ type AddProjectV2ItemByIdInput struct { // AddPullRequestReviewCommentInput is an autogenerated input type of AddPullRequestReviewComment. type AddPullRequestReviewCommentInput struct { - // The text of the comment. (Required.) - Body String `json:"body"` - // The node ID of the pull request reviewing. (Optional.) + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The node ID of the pull request reviewing **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) PullRequestID *ID `json:"pullRequestId,omitempty"` - // The Node ID of the review to modify. (Optional.) + // The Node ID of the review to modify. **Upcoming Change on 2023-10-01 UTC** **Description:** `pullRequestReviewId` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) PullRequestReviewID *ID `json:"pullRequestReviewId,omitempty"` - // The SHA of the commit to comment on. (Optional.) + // The SHA of the commit to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `commitOID` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) CommitOID *GitObjectID `json:"commitOID,omitempty"` - // The relative path of the file to comment on. (Optional.) + // The text of the comment. This field is required **Upcoming Change on 2023-10-01 UTC** **Description:** `body` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) + Body *String `json:"body,omitempty"` + // The relative path of the file to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `path` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) Path *String `json:"path,omitempty"` - // The line index in the diff to comment on. (Optional.) + // The line index in the diff to comment on. **Upcoming Change on 2023-10-01 UTC** **Description:** `position` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) Position *Int `json:"position,omitempty"` - // The comment id to reply to. (Optional.) + // The comment id to reply to. **Upcoming Change on 2023-10-01 UTC** **Description:** `inReplyTo` will be removed. use addPullRequestReviewThread or addPullRequestReviewThreadReply instead **Reason:** We are deprecating the addPullRequestReviewComment mutation. (Optional.) InReplyTo *ID `json:"inReplyTo,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // AddPullRequestReviewInput is an autogenerated input type of AddPullRequestReview. @@ -219,18 +211,18 @@ type AddPullRequestReviewInput struct { // The Node ID of the pull request to modify. (Required.) PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The commit OID the review pertains to. (Optional.) CommitOID *GitObjectID `json:"commitOID,omitempty"` // The contents of the review body comment. (Optional.) Body *String `json:"body,omitempty"` // The event to perform on the pull request review. (Optional.) Event *PullRequestReviewEvent `json:"event,omitempty"` - // The review line comments. (Optional.) + // The review line comments. **Upcoming Change on 2023-10-01 UTC** **Description:** `comments` will be removed. use the `threads` argument instead **Reason:** We are deprecating comment fields that use diff-relative positioning. (Optional.) Comments *[]*DraftPullRequestReviewComment `json:"comments,omitempty"` // The review line comment threads. (Optional.) Threads *[]*DraftPullRequestReviewThread `json:"threads,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // AddPullRequestReviewThreadInput is an autogenerated input type of AddPullRequestReviewThread. @@ -239,21 +231,36 @@ type AddPullRequestReviewThreadInput struct { Path String `json:"path"` // Body of the thread's first comment. (Required.) Body String `json:"body"` - // The line of the blob to which the thread refers. The end of the line range for multi-line comments. (Required.) - Line Int `json:"line"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The node ID of the pull request reviewing. (Optional.) PullRequestID *ID `json:"pullRequestId,omitempty"` // The Node ID of the review to modify. (Optional.) PullRequestReviewID *ID `json:"pullRequestReviewId,omitempty"` + // The line of the blob to which the thread refers, required for line-level threads. The end of the line range for multi-line comments. (Optional.) + Line *Int `json:"line,omitempty"` // The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. (Optional.) Side *DiffSide `json:"side,omitempty"` // The first line of the range to which the comment refers. (Optional.) StartLine *Int `json:"startLine,omitempty"` // The side of the diff on which the start line resides. (Optional.) StartSide *DiffSide `json:"startSide,omitempty"` + // The level at which the comments in the corresponding thread are targeted, can be a diff line or a file. (Optional.) + SubjectType *PullRequestReviewThreadSubjectType `json:"subjectType,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"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Node ID of the pending review to which the reply will belong. (Optional.) + PullRequestReviewID *ID `json:"pullRequestReviewId,omitempty"` } // AddReactionInput is an autogenerated input type of AddReaction. @@ -303,10 +310,10 @@ type ApproveDeploymentsInput struct { // The ids of environments to reject deployments. (Required.) EnvironmentIDs []ID `json:"environmentIds"` - // Optional comment for approving deployments. (Optional.) - Comment *String `json:"comment,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Optional comment for approving deployments. (Optional.) + Comment *String `json:"comment,omitempty"` } // ApproveVerifiableDomainInput is an autogenerated input type of ApproveVerifiableDomain. @@ -347,6 +354,30 @@ type AuditLogOrder struct { Direction *OrderDirection `json:"direction,omitempty"` } +// BranchNamePatternParametersInput represents parameters to be used for the branch_name_pattern rule. +type BranchNamePatternParametersInput struct { + // The operator to use for matching. (Required.) + Operator String `json:"operator"` + // The pattern to match with. (Required.) + Pattern String `json:"pattern"` + + // How this rule will appear to users. (Optional.) + Name *String `json:"name,omitempty"` + // If true, the rule will fail if the pattern matches. (Optional.) + Negate *Boolean `json:"negate,omitempty"` +} + +// BulkSponsorship represents information about a sponsorship to make for a user or organization with a GitHub Sponsors profile, as part of sponsoring many users or organizations at once. +type BulkSponsorship struct { + // The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. (Required.) + Amount Int `json:"amount"` + + // The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. (Optional.) + SponsorableID *ID `json:"sponsorableId,omitempty"` + // The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. (Optional.) + SponsorableLogin *String `json:"sponsorableLogin,omitempty"` +} + // CancelEnterpriseAdminInvitationInput is an autogenerated input type of CancelEnterpriseAdminInvitation. type CancelEnterpriseAdminInvitationInput struct { // The Node ID of the pending enterprise administrator invitation. (Required.) @@ -356,9 +387,20 @@ type CancelEnterpriseAdminInvitationInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// CancelEnterpriseMemberInvitationInput is an autogenerated input type of CancelEnterpriseMemberInvitation. +type CancelEnterpriseMemberInvitationInput struct { + // The Node ID of the pending enterprise member invitation. (Required.) + InvitationID ID `json:"invitationId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // CancelSponsorshipInput is an autogenerated input type of CancelSponsorship. type CancelSponsorshipInput struct { + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. (Optional.) SponsorID *ID `json:"sponsorId,omitempty"` // The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. (Optional.) @@ -367,13 +409,13 @@ type CancelSponsorshipInput struct { SponsorableID *ID `json:"sponsorableId,omitempty"` // The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. (Optional.) SponsorableLogin *String `json:"sponsorableLogin,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // ChangeUserStatusInput is an autogenerated input type of ChangeUserStatus. type ChangeUserStatusInput struct { + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:. (Optional.) Emoji *String `json:"emoji,omitempty"` // A short description of your current status. (Optional.) @@ -384,8 +426,6 @@ type ChangeUserStatusInput struct { LimitedAvailability *Boolean `json:"limitedAvailability,omitempty"` // If set, the user status will not be shown after this date. (Optional.) ExpiresAt *DateTime `json:"expiresAt,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CheckAnnotationData represents information from a check run analysis to specific lines of code. @@ -521,12 +561,12 @@ type CloneProjectInput struct { // The name of the project. (Required.) Name String `json:"name"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The description of the project. (Optional.) Body *String `json:"body,omitempty"` // The visibility of the project, defaults to false (private). (Optional.) Public *Boolean `json:"public,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CloneTemplateRepositoryInput is an autogenerated input type of CloneTemplateRepository. @@ -540,12 +580,23 @@ type CloneTemplateRepositoryInput struct { // Indicates the repository's visibility level. (Required.) Visibility RepositoryVisibility `json:"visibility"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // A short description of the new repository. (Optional.) Description *String `json:"description,omitempty"` // Whether to copy all branches from the template to the new repository. Defaults to copying only the default branch of the template. (Optional.) IncludeAllBranches *Boolean `json:"includeAllBranches,omitempty"` +} + +// CloseDiscussionInput is an autogenerated input type of CloseDiscussion. +type CloseDiscussionInput struct { + // ID of the discussion to be closed. (Required.) + DiscussionID ID `json:"discussionId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The reason why the discussion is being closed. (Optional.) + Reason *DiscussionCloseReason `json:"reason,omitempty"` } // CloseIssueInput is an autogenerated input type of CloseIssue. @@ -553,10 +604,10 @@ type CloseIssueInput struct { // ID of the issue to be closed. (Required.) IssueID ID `json:"issueId"` - // The reason the issue is to be closed. (Optional.) - StateReason *IssueClosedStateReason `json:"stateReason,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The reason the issue is to be closed. (Optional.) + StateReason *IssueClosedStateReason `json:"stateReason,omitempty"` } // ClosePullRequestInput is an autogenerated input type of ClosePullRequest. @@ -568,6 +619,22 @@ type ClosePullRequestInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// CodeScanningParametersInput represents choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. +type CodeScanningParametersInput struct { + // Tools that must provide code scanning results for this rule to pass. (Required.) + CodeScanningTools []CodeScanningToolInput `json:"codeScanningTools"` +} + +// CodeScanningToolInput represents a tool that must provide code scanning results for this rule to pass. +type CodeScanningToolInput struct { + // The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).". (Required.) + AlertsThreshold String `json:"alertsThreshold"` + // The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).". (Required.) + SecurityAlertsThreshold String `json:"securityAlertsThreshold"` + // The name of a code scanning tool. (Required.) + Tool String `json:"tool"` +} + // CommitAuthor specifies an author for filtering Git commits. type CommitAuthor struct { @@ -577,6 +644,19 @@ type CommitAuthor struct { Emails *[]String `json:"emails,omitempty"` } +// CommitAuthorEmailPatternParametersInput represents parameters to be used for the commit_author_email_pattern rule. +type CommitAuthorEmailPatternParametersInput struct { + // The operator to use for matching. (Required.) + Operator String `json:"operator"` + // The pattern to match with. (Required.) + Pattern String `json:"pattern"` + + // How this rule will appear to users. (Optional.) + Name *String `json:"name,omitempty"` + // If true, the rule will fail if the pattern matches. (Optional.) + Negate *Boolean `json:"negate,omitempty"` +} + // CommitContributionOrder represents ordering options for commit contribution connections. type CommitContributionOrder struct { // The field by which to order commit contributions. (Required.) @@ -594,6 +674,19 @@ type CommitMessage struct { Body *String `json:"body,omitempty"` } +// CommitMessagePatternParametersInput represents parameters to be used for the commit_message_pattern rule. +type CommitMessagePatternParametersInput struct { + // The operator to use for matching. (Required.) + Operator String `json:"operator"` + // The pattern to match with. (Required.) + Pattern String `json:"pattern"` + + // How this rule will appear to users. (Optional.) + Name *String `json:"name,omitempty"` + // If true, the rule will fail if the pattern matches. (Optional.) + Negate *Boolean `json:"negate,omitempty"` +} + // CommittableBranch represents a git ref for a commit to be appended to. The ref must be a branch, i.e. its fully qualified name must start with `refs/heads/` (although the input is not required to be fully qualified). The Ref may be specified by its global node ID or by the `repositoryNameWithOwner` and `branchName`. ### Examples Specify a branch using a global node ID: { "id": "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } Specify a branch using `repositoryNameWithOwner` and `branchName`: { "repositoryNameWithOwner": "github/graphql-client", "branchName": "main" }. type CommittableBranch struct { @@ -605,6 +698,19 @@ type CommittableBranch struct { BranchName *String `json:"branchName,omitempty"` } +// CommitterEmailPatternParametersInput represents parameters to be used for the committer_email_pattern rule. +type CommitterEmailPatternParametersInput struct { + // The operator to use for matching. (Required.) + Operator String `json:"operator"` + // The pattern to match with. (Required.) + Pattern String `json:"pattern"` + + // How this rule will appear to users. (Optional.) + Name *String `json:"name,omitempty"` + // If true, the rule will fail if the pattern matches. (Optional.) + Negate *Boolean `json:"negate,omitempty"` +} + // ContributionOrder represents ordering options for contribution connections. type ContributionOrder struct { // The ordering direction. (Required.) @@ -618,10 +724,21 @@ type ConvertProjectCardNoteToIssueInput struct { // The ID of the repository to create the issue in. (Required.) RepositoryID ID `json:"repositoryId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The title of the newly created issue. Defaults to the card's note text. (Optional.) Title *String `json:"title,omitempty"` // The body of the newly created issue. (Optional.) Body *String `json:"body,omitempty"` +} + +// ConvertProjectV2DraftIssueItemToIssueInput is an autogenerated input type of ConvertProjectV2DraftIssueItemToIssue. +type ConvertProjectV2DraftIssueItemToIssueInput struct { + // The ID of the draft issue ProjectV2Item to convert. (Required.) + ItemID ID `json:"itemId"` + // The ID of the repository to create the issue in. (Required.) + RepositoryID ID `json:"repositoryId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -635,6 +752,34 @@ type ConvertPullRequestToDraftInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// CopyProjectV2Input is an autogenerated input type of CopyProjectV2. +type CopyProjectV2Input struct { + // The ID of the source Project to copy. (Required.) + ProjectID ID `json:"projectId"` + // The owner ID of the new project. (Required.) + OwnerID ID `json:"ownerId"` + // The title of the project. (Required.) + Title String `json:"title"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // Include draft issues in the new project. (Optional.) + IncludeDraftIssues *Boolean `json:"includeDraftIssues,omitempty"` +} + +// CreateAttributionInvitationInput is an autogenerated input type of CreateAttributionInvitation. +type CreateAttributionInvitationInput struct { + // The Node ID of the owner scoping the reattributable data. (Required.) + OwnerID ID `json:"ownerId"` + // The Node ID of the account owning the data to reattribute. (Required.) + SourceID ID `json:"sourceId"` + // The Node ID of the account which may claim the data. (Required.) + TargetID ID `json:"targetId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // CreateBranchProtectionRuleInput is an autogenerated input type of CreateBranchProtectionRule. type CreateBranchProtectionRuleInput struct { // The global relay id of the repository in which a new branch protection rule should be created in. (Required.) @@ -642,6 +787,8 @@ type CreateBranchProtectionRuleInput struct { // The glob-like pattern used to determine matching branches. (Required.) Pattern String `json:"pattern"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Are approving reviews required to update matching branches. (Optional.) RequiresApprovingReviews *Boolean `json:"requiresApprovingReviews,omitempty"` // Number of approving reviews required to update matching branches. (Optional.) @@ -656,7 +803,7 @@ type CreateBranchProtectionRuleInput struct { AllowsForcePushes *Boolean `json:"allowsForcePushes,omitempty"` // Can this branch be deleted. (Optional.) AllowsDeletions *Boolean `json:"allowsDeletions,omitempty"` - // Can admins overwrite branch protection. (Optional.) + // Can admins override branch protection. (Optional.) IsAdminEnforced *Boolean `json:"isAdminEnforced,omitempty"` // Are status checks required to update matching branches. (Optional.) RequiresStatusChecks *Boolean `json:"requiresStatusChecks,omitempty"` @@ -682,6 +829,10 @@ type CreateBranchProtectionRuleInput struct { RequiredStatusCheckContexts *[]String `json:"requiredStatusCheckContexts,omitempty"` // The list of required status checks. (Optional.) RequiredStatusChecks *[]RequiredStatusCheckInput `json:"requiredStatusChecks,omitempty"` + // Are successful deployments required before merging. (Optional.) + RequiresDeployments *Boolean `json:"requiresDeployments,omitempty"` + // The list of required deployment environments. (Optional.) + RequiredDeploymentEnvironments *[]String `json:"requiredDeploymentEnvironments,omitempty"` // Are conversations required to be resolved before merging. (Optional.) RequiresConversationResolution *Boolean `json:"requiresConversationResolution,omitempty"` // Whether the most recent push must be approved by someone other than the person who pushed it. (Optional.) @@ -690,8 +841,6 @@ type CreateBranchProtectionRuleInput struct { LockBranch *Boolean `json:"lockBranch,omitempty"` // Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. (Optional.) LockAllowsFetchAndMerge *Boolean `json:"lockAllowsFetchAndMerge,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateCheckRunInput is an autogenerated input type of CreateCheckRun. @@ -703,6 +852,8 @@ type CreateCheckRunInput struct { // The SHA of the head commit. (Required.) HeadSha GitObjectID `json:"headSha"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The URL of the integrator's site that has the full details of the check. (Optional.) DetailsURL *URI `json:"detailsUrl,omitempty"` // A reference for the run on the integrator's system. (Optional.) @@ -719,8 +870,6 @@ type CreateCheckRunInput struct { Output *CheckRunOutput `json:"output,omitempty"` // Possible further actions the integrator can perform, which a user may trigger. (Optional.) Actions *[]CheckRunAction `json:"actions,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateCheckSuiteInput is an autogenerated input type of CreateCheckSuite. @@ -743,10 +892,54 @@ type CreateCommitOnBranchInput struct { // The git commit oid expected at the head of the branch prior to the commit. (Required.) ExpectedHeadOid GitObjectID `json:"expectedHeadOid"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // A description of changes to files in this commit. (Optional.) FileChanges *FileChanges `json:"fileChanges,omitempty"` +} + +// CreateDeploymentInput is an autogenerated input type of CreateDeployment. +type CreateDeploymentInput struct { + // The node ID of the repository. (Required.) + RepositoryID ID `json:"repositoryId"` + // The node ID of the ref to be deployed. (Required.) + RefID ID `json:"refId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Attempt to automatically merge the default branch into the requested ref, defaults to true. (Optional.) + AutoMerge *Boolean `json:"autoMerge,omitempty"` + // The status contexts to verify against commit status checks. To bypass required contexts, pass an empty array. Defaults to all unique contexts. (Optional.) + RequiredContexts *[]String `json:"requiredContexts,omitempty"` + // Short description of the deployment. (Optional.) + Description *String `json:"description,omitempty"` + // Name for the target deployment environment. (Optional.) + Environment *String `json:"environment,omitempty"` + // Specifies a task to execute. (Optional.) + Task *String `json:"task,omitempty"` + // JSON payload with extra information about the deployment. (Optional.) + Payload *String `json:"payload,omitempty"` +} + +// CreateDeploymentStatusInput is an autogenerated input type of CreateDeploymentStatus. +type CreateDeploymentStatusInput struct { + // The node ID of the deployment. (Required.) + DeploymentID ID `json:"deploymentId"` + // The state of the deployment. (Required.) + State DeploymentStatusState `json:"state"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // A short description of the status. Maximum length of 140 characters. (Optional.) + Description *String `json:"description,omitempty"` + // If provided, updates the environment of the deploy. Otherwise, does not modify the environment. (Optional.) + Environment *String `json:"environment,omitempty"` + // Sets the URL for accessing your environment. (Optional.) + EnvironmentURL *String `json:"environmentUrl,omitempty"` + // Adds a new inactive status to all non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. (Optional.) + AutoInactive *Boolean `json:"autoInactive,omitempty"` + // The log URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. (Optional.) + LogURL *String `json:"logUrl,omitempty"` } // CreateDiscussionInput is an autogenerated input type of CreateDiscussion. @@ -801,10 +994,10 @@ type CreateIpAllowListEntryInput struct { // Whether the IP allow list entry is active when an IP allow list is enabled. (Required.) IsActive Boolean `json:"isActive"` - // An optional name for the IP allow list entry. (Optional.) - Name *String `json:"name,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // An optional name for the IP allow list entry. (Optional.) + Name *String `json:"name,omitempty"` } // CreateIssueInput is an autogenerated input type of CreateIssue. @@ -814,6 +1007,8 @@ type CreateIssueInput struct { // The title for the issue. (Required.) Title String `json:"title"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The body for the issue description. (Optional.) Body *String `json:"body,omitempty"` // The Node ID for the user assignee for this issue. (Optional.) @@ -826,8 +1021,21 @@ type CreateIssueInput struct { ProjectIDs *[]ID `json:"projectIds,omitempty"` // The name of an issue template in the repository, assigns labels and assignees from the template to the issue. (Optional.) IssueTemplate *String `json:"issueTemplate,omitempty"` +} + +// CreateLabelInput is an autogenerated input type of CreateLabel. +type CreateLabelInput struct { + // The Node ID of the repository. (Required.) + RepositoryID ID `json:"repositoryId"` + // A 6 character hex code, without the leading #, identifying the color of the label. (Required.) + Color String `json:"color"` + // The name of the label. (Required.) + Name String `json:"name"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // A brief description of the label, such as its purpose. (Optional.) + Description *String `json:"description,omitempty"` } // CreateLinkedBranchInput is an autogenerated input type of CreateLinkedBranch. @@ -837,31 +1045,31 @@ type CreateLinkedBranchInput struct { // The commit SHA to base the new branch on. (Required.) Oid GitObjectID `json:"oid"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The name of the new branch. Defaults to issue number and title. (Optional.) Name *String `json:"name,omitempty"` // ID of the repository to create the branch in. Defaults to the issue repository. (Optional.) RepositoryID *ID `json:"repositoryId,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateMigrationSourceInput is an autogenerated input type of CreateMigrationSource. type CreateMigrationSourceInput struct { - // The Octoshift migration source name. (Required.) + // The migration source name. (Required.) Name String `json:"name"` - // The Octoshift migration source URL. (Required.) - URL String `json:"url"` - // The Octoshift migration source type. (Required.) + // The migration source type. (Required.) Type MigrationSourceType `json:"type"` - // The ID of the organization that will own the Octoshift migration source. (Required.) + // The ID of the organization that will own the migration source. (Required.) OwnerID ID `json:"ownerId"` - // The Octoshift migration source access token. (Optional.) + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The migration source URL, for example `https://github.com` or `https://monalisa.ghe.com`. (Optional.) + URL *String `json:"url,omitempty"` + // The migration source access token. (Optional.) AccessToken *String `json:"accessToken,omitempty"` // The GitHub personal access token of the user importing to the target repository. (Optional.) GitHubPat *String `json:"githubPat,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateProjectInput is an autogenerated input type of CreateProject. @@ -871,14 +1079,29 @@ type CreateProjectInput struct { // The name of project. (Required.) Name String `json:"name"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The description of project. (Optional.) Body *String `json:"body,omitempty"` // The name of the GitHub-provided template. (Optional.) Template *ProjectTemplate `json:"template,omitempty"` // A list of repository IDs to create as linked repositories for the project. (Optional.) RepositoryIDs *[]ID `json:"repositoryIds,omitempty"` +} + +// CreateProjectV2FieldInput is an autogenerated input type of CreateProjectV2Field. +type CreateProjectV2FieldInput struct { + // The ID of the Project to create the field in. (Required.) + ProjectID ID `json:"projectId"` + // The data type of the field. (Required.) + DataType ProjectV2CustomFieldType `json:"dataType"` + // The name of the field. (Required.) + Name String `json:"name"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Options for a single select field. At least one value is required if data_type is SINGLE_SELECT. (Optional.) + SingleSelectOptions *[]ProjectV2SingleSelectFieldOptionInput `json:"singleSelectOptions,omitempty"` } // CreateProjectV2Input is an autogenerated input type of CreateProjectV2. @@ -888,12 +1111,29 @@ type CreateProjectV2Input struct { // The title of the project. (Required.) Title String `json:"title"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The repository to link the project to. (Optional.) RepositoryID *ID `json:"repositoryId,omitempty"` // The team to link the project to. The team will be granted read permissions. (Optional.) TeamID *ID `json:"teamId,omitempty"` +} + +// CreateProjectV2StatusUpdateInput is an autogenerated input type of CreateProjectV2StatusUpdate. +type CreateProjectV2StatusUpdateInput struct { + // The ID of the Project to create the status update in. (Required.) + ProjectID ID `json:"projectId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The start date of the status update. (Optional.) + StartDate *Date `json:"startDate,omitempty"` + // The target date of the status update. (Optional.) + TargetDate *Date `json:"targetDate,omitempty"` + // The status of the status update. (Optional.) + Status *ProjectV2StatusUpdateStatus `json:"status,omitempty"` + // The body of the status update. (Optional.) + Body *String `json:"body,omitempty"` } // CreatePullRequestInput is an autogenerated input type of CreatePullRequest. @@ -907,14 +1147,16 @@ type CreatePullRequestInput struct { // The title of the pull request. (Required.) Title String `json:"title"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Node ID of the head repository. (Optional.) + HeadRepositoryID *ID `json:"headRepositoryId,omitempty"` // The contents of the pull request. (Optional.) Body *String `json:"body,omitempty"` // Indicates whether maintainers can modify the pull request. (Optional.) MaintainerCanModify *Boolean `json:"maintainerCanModify,omitempty"` // Indicates whether this pull request should be a draft. (Optional.) Draft *Boolean `json:"draft,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateRefInput is an autogenerated input type of CreateRef. @@ -937,6 +1179,8 @@ type CreateRepositoryInput struct { // Indicates the repository's visibility level. (Required.) Visibility RepositoryVisibility `json:"visibility"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the owner for the new repository. (Optional.) OwnerID *ID `json:"ownerId,omitempty"` // A short description of the new repository. (Optional.) @@ -951,8 +1195,48 @@ type CreateRepositoryInput struct { HasIssuesEnabled *Boolean `json:"hasIssuesEnabled,omitempty"` // When an organization is specified as the owner, this ID identifies the team that should be granted access to the new repository. (Optional.) TeamID *ID `json:"teamId,omitempty"` +} + +// CreateRepositoryRulesetInput is an autogenerated input type of CreateRepositoryRuleset. +type CreateRepositoryRulesetInput struct { + // The global relay id of the source in which a new ruleset should be created in. (Required.) + SourceID ID `json:"sourceId"` + // The name of the ruleset. (Required.) + Name String `json:"name"` + // The set of conditions for this ruleset. (Required.) + Conditions RepositoryRuleConditionsInput `json:"conditions"` + // The enforcement level for this ruleset. (Required.) + Enforcement RuleEnforcement `json:"enforcement"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The target of the ruleset. (Optional.) + Target *RepositoryRulesetTarget `json:"target,omitempty"` + // The list of rules for this ruleset. (Optional.) + Rules *[]RepositoryRuleInput `json:"rules,omitempty"` + // A list of actors that are allowed to bypass rules in this ruleset. (Optional.) + BypassActors *[]RepositoryRulesetBypassActorInput `json:"bypassActors,omitempty"` +} + +// CreateSponsorsListingInput is an autogenerated input type of CreateSponsorsListing. +type CreateSponsorsListingInput struct { + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The username of the organization to create a GitHub Sponsors profile for, if desired. Defaults to creating a GitHub Sponsors profile for the authenticated user if omitted. (Optional.) + SponsorableLogin *String `json:"sponsorableLogin,omitempty"` + // The username of the supported fiscal host's GitHub organization, if you want to receive sponsorship payouts through a fiscal host rather than directly to a bank account. For example, 'Open-Source-Collective' for Open Source Collective or 'numfocus' for numFOCUS. Case insensitive. See https://docs.github.com/sponsors/receiving-sponsorships-through-github-sponsors/using-a-fiscal-host-to-receive-github-sponsors-payouts for more information. (Optional.) + FiscalHostLogin *String `json:"fiscalHostLogin,omitempty"` + // The URL for your profile page on the fiscal host's website, e.g., https://opencollective.com/babel or https://numfocus.org/project/bokeh. Required if fiscalHostLogin is specified. (Optional.) + FiscallyHostedProjectProfileURL *String `json:"fiscallyHostedProjectProfileUrl,omitempty"` + // The country or region where the sponsorable's bank account is located. Required if fiscalHostLogin is not specified, ignored when fiscalHostLogin is specified. (Optional.) + BillingCountryOrRegionCode *SponsorsCountryOrRegionCode `json:"billingCountryOrRegionCode,omitempty"` + // The country or region where the sponsorable resides. This is for tax purposes. Required if the sponsorable is yourself, ignored when sponsorableLogin specifies an organization. (Optional.) + ResidenceCountryOrRegionCode *SponsorsCountryOrRegionCode `json:"residenceCountryOrRegionCode,omitempty"` + // The email address we should use to contact you about the GitHub Sponsors profile being created. This will not be shared publicly. Must be a verified email address already on your GitHub account. Only relevant when the sponsorable is yourself. Defaults to your primary email address on file if omitted. (Optional.) + ContactEmail *String `json:"contactEmail,omitempty"` + // Provide an introduction to serve as the main focus that appears on your GitHub Sponsors profile. It's a great opportunity to help potential sponsors learn more about you, your work, and why their sponsorship is important to you. GitHub-flavored Markdown is supported. (Optional.) + FullDescription *String `json:"fullDescription,omitempty"` } // CreateSponsorsTierInput is an autogenerated input type of CreateSponsorsTier. @@ -962,6 +1246,8 @@ type CreateSponsorsTierInput struct { // A description of what this tier is, what perks sponsors might receive, what a sponsorship at this tier means for you, etc. (Required.) Description String `json:"description"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableLogin is not given. (Optional.) SponsorableID *ID `json:"sponsorableId,omitempty"` // The username of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableId is not given. (Optional.) @@ -978,13 +1264,13 @@ type CreateSponsorsTierInput struct { WelcomeMessage *String `json:"welcomeMessage,omitempty"` // Whether to make the tier available immediately for sponsors to choose. Defaults to creating a draft tier that will not be publicly visible. (Optional.) Publish *Boolean `json:"publish,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // CreateSponsorshipInput is an autogenerated input type of CreateSponsorship. type CreateSponsorshipInput struct { + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. (Optional.) SponsorID *ID `json:"sponsorId,omitempty"` // The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. (Optional.) @@ -1003,47 +1289,75 @@ type CreateSponsorshipInput struct { ReceiveEmails *Boolean `json:"receiveEmails,omitempty"` // Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. (Optional.) PrivacyLevel *SponsorshipPrivacy `json:"privacyLevel,omitempty"` +} + +// CreateSponsorshipsInput is an autogenerated input type of CreateSponsorships. +type CreateSponsorshipsInput struct { + // The username of the user or organization who is acting as the sponsor, paying for the sponsorships. (Required.) + SponsorLogin String `json:"sponsorLogin"` + // The list of maintainers to sponsor and for how much apiece. (Required.) + Sponsorships []BulkSponsorship `json:"sponsorships"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Whether the sponsor should receive email updates from the sponsorables. (Optional.) + ReceiveEmails *Boolean `json:"receiveEmails,omitempty"` + // Specify whether others should be able to see that the sponsor is sponsoring the sponsorables. Public visibility still does not reveal the dollar value of the sponsorship. (Optional.) + PrivacyLevel *SponsorshipPrivacy `json:"privacyLevel,omitempty"` + // Whether the sponsorships created should continue each billing cycle for the sponsor (monthly or annually), versus lasting only a single month. Defaults to one-time sponsorships. (Optional.) + Recurring *Boolean `json:"recurring,omitempty"` } // 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"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // 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"` } // 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.) + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // 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"` +} + +// CreateUserListInput is an autogenerated input type of CreateUserList. +type CreateUserListInput struct { + // The name of the new list. (Required.) + Name String `json:"name"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // A description of the list. (Optional.) + Description *String `json:"description,omitempty"` + // Whether or not the list is private. (Optional.) + IsPrivate *Boolean `json:"isPrivate,omitempty"` } // DeclineTopicSuggestionInput is an autogenerated input type of DeclineTopicSuggestion. type DeclineTopicSuggestionInput struct { - // The Node ID of the repository. (Required.) - RepositoryID ID `json:"repositoryId"` - // The name of the suggested topic. (Required.) - Name String `json:"name"` - // The reason why the suggested topic is declined. (Required.) - Reason TopicSuggestionDeclineReason `json:"reason"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Node ID of the repository. **Upcoming Change on 2024-04-01 UTC** **Description:** `repositoryId` will be removed. **Reason:** Suggested topics are no longer supported. (Optional.) + RepositoryID *ID `json:"repositoryId,omitempty"` + // The name of the suggested topic. **Upcoming Change on 2024-04-01 UTC** **Description:** `name` will be removed. **Reason:** Suggested topics are no longer supported. (Optional.) + Name *String `json:"name,omitempty"` + // The reason why the suggested topic is declined. **Upcoming Change on 2024-04-01 UTC** **Description:** `reason` will be removed. **Reason:** Suggested topics are no longer supported. (Optional.) + Reason *TopicSuggestionDeclineReason `json:"reason,omitempty"` } // DeleteBranchProtectionRuleInput is an autogenerated input type of DeleteBranchProtectionRule. @@ -1118,6 +1432,15 @@ type DeleteIssueInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeleteLabelInput is an autogenerated input type of DeleteLabel. +type DeleteLabelInput struct { + // The Node ID of the label to be deleted. (Required.) + ID ID `json:"id"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DeleteLinkedBranchInput is an autogenerated input type of DeleteLinkedBranch. type DeleteLinkedBranchInput struct { // The ID of the linked branch. (Required.) @@ -1127,6 +1450,15 @@ type DeleteLinkedBranchInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeletePackageVersionInput is an autogenerated input type of DeletePackageVersion. +type DeletePackageVersionInput struct { + // The ID of the package version to be deleted. (Required.) + PackageVersionID ID `json:"packageVersionId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DeleteProjectCardInput is an autogenerated input type of DeleteProjectCard. type DeleteProjectCardInput struct { // The id of the card to delete. (Required.) @@ -1154,13 +1486,20 @@ type DeleteProjectInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } -// DeleteProjectNextItemInput is an autogenerated input type of DeleteProjectNextItem. -type DeleteProjectNextItemInput struct { +// DeleteProjectV2FieldInput is an autogenerated input type of DeleteProjectV2Field. +type DeleteProjectV2FieldInput struct { + // The ID of the field to delete. (Required.) + FieldID ID `json:"fieldId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// DeleteProjectV2Input is an autogenerated input type of DeleteProjectV2. +type DeleteProjectV2Input struct { + // The ID of the Project to delete. (Required.) + ProjectID ID `json:"projectId"` - // The ID of the Project from which the item should be removed. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ProjectID *ID `json:"projectId,omitempty"` - // The ID of the item to be removed. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ItemID *ID `json:"itemId,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -1176,6 +1515,24 @@ type DeleteProjectV2ItemInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeleteProjectV2StatusUpdateInput is an autogenerated input type of DeleteProjectV2StatusUpdate. +type DeleteProjectV2StatusUpdateInput struct { + // The ID of the status update to be removed. (Required.) + StatusUpdateID ID `json:"statusUpdateId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// DeleteProjectV2WorkflowInput is an autogenerated input type of DeleteProjectV2Workflow. +type DeleteProjectV2WorkflowInput struct { + // The ID of the workflow to be removed. (Required.) + WorkflowID ID `json:"workflowId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DeletePullRequestReviewCommentInput is an autogenerated input type of DeletePullRequestReviewComment. type DeletePullRequestReviewCommentInput struct { // The ID of the comment to delete. (Required.) @@ -1203,6 +1560,15 @@ type DeleteRefInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeleteRepositoryRulesetInput is an autogenerated input type of DeleteRepositoryRuleset. +type DeleteRepositoryRulesetInput struct { + // The global relay id of the repository ruleset to be deleted. (Required.) + RepositoryRulesetID ID `json:"repositoryRulesetId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DeleteTeamDiscussionCommentInput is an autogenerated input type of DeleteTeamDiscussionComment. type DeleteTeamDiscussionCommentInput struct { // The ID of the comment to delete. (Required.) @@ -1221,6 +1587,15 @@ type DeleteTeamDiscussionInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeleteUserListInput is an autogenerated input type of DeleteUserList. +type DeleteUserListInput struct { + // The ID of the list to delete. (Required.) + ListID ID `json:"listId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DeleteVerifiableDomainInput is an autogenerated input type of DeleteVerifiableDomain. type DeleteVerifiableDomainInput struct { // The ID of the verifiable domain to delete. (Required.) @@ -1238,6 +1613,15 @@ type DeploymentOrder struct { Direction OrderDirection `json:"direction"` } +// DequeuePullRequestInput is an autogenerated input type of DequeuePullRequest. +type DequeuePullRequestInput struct { + // The ID of the pull request to be dequeued. (Required.) + ID ID `json:"id"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // DisablePullRequestAutoMergeInput is an autogenerated input type of DisablePullRequestAutoMerge. type DisablePullRequestAutoMergeInput struct { // ID of the pull request to disable auto merge on. (Required.) @@ -1317,6 +1701,8 @@ type EnablePullRequestAutoMergeInput struct { // ID of the pull request to enable auto-merge on. (Required.) PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Commit headline to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit headline is ignored. (Optional.) CommitHeadline *String `json:"commitHeadline,omitempty"` // Commit body to use for the commit when the PR is mergable; if omitted, a default message will be used. NOTE: when merging with a merge queue any input value for commit message is ignored. (Optional.) @@ -1325,8 +1711,21 @@ type EnablePullRequestAutoMergeInput struct { MergeMethod *PullRequestMergeMethod `json:"mergeMethod,omitempty"` // The email address to associate with this merge. (Optional.) AuthorEmail *String `json:"authorEmail,omitempty"` + // The expected head OID of the pull request. (Optional.) + ExpectedHeadOid *GitObjectID `json:"expectedHeadOid,omitempty"` +} + +// EnqueuePullRequestInput is an autogenerated input type of EnqueuePullRequest. +type EnqueuePullRequestInput struct { + // The ID of the pull request to enqueue. (Required.) + PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Add the pull request to the front of the queue. (Optional.) + Jump *Boolean `json:"jump,omitempty"` + // The expected head OID of the pull request. (Optional.) + ExpectedHeadOid *GitObjectID `json:"expectedHeadOid,omitempty"` } // EnterpriseAdministratorInvitationOrder represents ordering options for enterprise administrator invitation connections. @@ -1337,6 +1736,14 @@ type EnterpriseAdministratorInvitationOrder struct { Direction OrderDirection `json:"direction"` } +// EnterpriseMemberInvitationOrder represents ordering options for enterprise administrator invitation connections. +type EnterpriseMemberInvitationOrder struct { + // The field to order enterprise member invitations by. (Required.) + Field EnterpriseMemberInvitationOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + // EnterpriseMemberOrder represents ordering options for enterprise member connections. type EnterpriseMemberOrder struct { // The field to order enterprise members by. (Required.) @@ -1345,6 +1752,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.) @@ -1377,6 +1792,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.) @@ -1400,6 +1823,18 @@ type FileDeletion struct { Path String `json:"path"` } +// FileExtensionRestrictionParametersInput represents prevent commits that include files with specified file extensions from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. +type FileExtensionRestrictionParametersInput struct { + // The file extensions that are restricted from being pushed to the commit graph. (Required.) + RestrictedFileExtensions []String `json:"restrictedFileExtensions"` +} + +// FilePathRestrictionParametersInput represents prevent commits that include changes in specified file paths from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. +type FilePathRestrictionParametersInput struct { + // The file paths that are restricted from being pushed to the commit graph. (Required.) + RestrictedFilePaths []String `json:"restrictedFilePaths"` +} + // FollowOrganizationInput is an autogenerated input type of FollowOrganization. type FollowOrganizationInput struct { // ID of the organization to follow. (Required.) @@ -1450,19 +1885,49 @@ type GrantMigratorRoleInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// ImportProjectInput is an autogenerated input type of ImportProject. +type ImportProjectInput struct { + // The name of the Organization or User to create the Project under. (Required.) + OwnerName String `json:"ownerName"` + // The name of Project. (Required.) + Name String `json:"name"` + // A list of columns containing issues and pull requests. (Required.) + ColumnImports []ProjectColumnImport `json:"columnImports"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The description of Project. (Optional.) + Body *String `json:"body,omitempty"` + // Whether the Project is public or not. (Optional.) + Public *Boolean `json:"public,omitempty"` +} + // InviteEnterpriseAdminInput is an autogenerated input type of InviteEnterpriseAdmin. type InviteEnterpriseAdminInput struct { // The ID of the enterprise to which you want to invite an administrator. (Required.) EnterpriseID ID `json:"enterpriseId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The login of a user to invite as an administrator. (Optional.) Invitee *String `json:"invitee,omitempty"` // The email of the person to invite as an administrator. (Optional.) Email *String `json:"email,omitempty"` // The role of the administrator. (Optional.) Role *EnterpriseAdministratorRole `json:"role,omitempty"` +} + +// InviteEnterpriseMemberInput is an autogenerated input type of InviteEnterpriseMember. +type InviteEnterpriseMemberInput struct { + // The ID of the enterprise to which you want to invite an unaffiliated member. (Required.) + EnterpriseID ID `json:"enterpriseId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The login of a user to invite as an unaffiliated member. (Optional.) + Invitee *String `json:"invitee,omitempty"` + // The email of the person to invite as an unaffiliated member. (Optional.) + Email *String `json:"email,omitempty"` } // IpAllowListEntryOrder represents ordering options for IP allow list entry connections. @@ -1566,10 +2031,18 @@ type LockLockableInput struct { // ID of the item to be locked. (Required.) LockableID ID `json:"lockableId"` - // A reason for why the item will be locked. (Optional.) - LockReason *LockReason `json:"lockReason,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // A reason for why the item will be locked. (Optional.) + LockReason *LockReason `json:"lockReason,omitempty"` +} + +// MannequinOrder represents ordering options for mannequins. +type MannequinOrder struct { + // The field to order mannequins by. (Required.) + Field MannequinOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` } // MarkDiscussionCommentAsAnswerInput is an autogenerated input type of MarkDiscussionCommentAsAnswer. @@ -1592,6 +2065,24 @@ type MarkFileAsViewedInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// MarkNotificationAsDoneInput is an autogenerated input type of MarkNotificationAsDone. +type MarkNotificationAsDoneInput struct { + // The NotificationThread id. (Required.) + ID ID `json:"id"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// MarkProjectV2AsTemplateInput is an autogenerated input type of MarkProjectV2AsTemplate. +type MarkProjectV2AsTemplateInput struct { + // The ID of the Project to mark as a template. (Required.) + ProjectID ID `json:"projectId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // MarkPullRequestReadyForReviewInput is an autogenerated input type of MarkPullRequestReadyForReview. type MarkPullRequestReadyForReviewInput struct { // ID of the pull request to be marked as ready for review. (Required.) @@ -1601,6 +2092,18 @@ type MarkPullRequestReadyForReviewInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// MaxFilePathLengthParametersInput represents prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. NOTE: This rule is in beta and subject to change. +type MaxFilePathLengthParametersInput struct { + // The maximum amount of characters allowed in file paths. (Required.) + MaxFilePathLength Int `json:"maxFilePathLength"` +} + +// MaxFileSizeParametersInput represents prevent commits that exceed a specified file size limit from being pushed to the commit. NOTE: This rule is in beta and subject to change. +type MaxFileSizeParametersInput struct { + // The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS). (Required.) + MaxFileSize Int `json:"maxFileSize"` +} + // MergeBranchInput is an autogenerated input type of MergeBranch. type MergeBranchInput struct { // The Node ID of the Repository containing the base branch that will be modified. (Required.) @@ -1610,12 +2113,12 @@ type MergeBranchInput struct { // The head to merge into the base branch. This can be a branch name or a commit GitObjectID. (Required.) Head String `json:"head"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Message to use for the merge commit. If omitted, a default will be used. (Optional.) CommitMessage *String `json:"commitMessage,omitempty"` // The email address to associate with this commit. (Optional.) AuthorEmail *String `json:"authorEmail,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // MergePullRequestInput is an autogenerated input type of MergePullRequest. @@ -1623,6 +2126,8 @@ type MergePullRequestInput struct { // ID of the pull request to be merged. (Required.) PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Commit headline to use for the merge commit; if omitted, a default message will be used. (Optional.) CommitHeadline *String `json:"commitHeadline,omitempty"` // Commit body to use for the merge commit; if omitted, a default message will be used. (Optional.) @@ -1633,8 +2138,24 @@ type MergePullRequestInput struct { MergeMethod *PullRequestMergeMethod `json:"mergeMethod,omitempty"` // The email address to associate with this merge. (Optional.) AuthorEmail *String `json:"authorEmail,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// MergeQueueParametersInput represents merges must be performed via a merge queue. +type MergeQueueParametersInput struct { + // Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed. (Required.) + CheckResponseTimeoutMinutes Int `json:"checkResponseTimeoutMinutes"` + // When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. (Required.) + GroupingStrategy MergeQueueGroupingStrategy `json:"groupingStrategy"` + // Limit the number of queued pull requests requesting checks and workflow runs at the same time. (Required.) + MaxEntriesToBuild Int `json:"maxEntriesToBuild"` + // The maximum number of PRs that will be merged together in a group. (Required.) + MaxEntriesToMerge Int `json:"maxEntriesToMerge"` + // Method to use when merging changes from queued pull requests. (Required.) + MergeMethod MergeQueueMergeMethod `json:"mergeMethod"` + // The minimum number of PRs that will be merged together in a group. (Required.) + MinEntriesToMerge Int `json:"minEntriesToMerge"` + // The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. (Required.) + MinEntriesToMergeWaitMinutes Int `json:"minEntriesToMergeWaitMinutes"` } // MilestoneOrder represents ordering options for milestone connections. @@ -1663,10 +2184,10 @@ type MoveProjectCardInput struct { // The id of the column to move it into. (Required.) ColumnID ID `json:"columnId"` - // Place the new card after the card with this id. Pass null to place it at the top. (Optional.) - AfterCardID *ID `json:"afterCardId,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Place the new card after the card with this id. Pass null to place it at the top. (Optional.) + AfterCardID *ID `json:"afterCardId,omitempty"` } // MoveProjectColumnInput is an autogenerated input type of MoveProjectColumn. @@ -1674,10 +2195,10 @@ type MoveProjectColumnInput struct { // The id of the column to move. (Required.) ColumnID ID `json:"columnId"` - // Place the new column after the column with this id. Pass null to place it at the front. (Optional.) - AfterColumnID *ID `json:"afterColumnId,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Place the new column after the column with this id. Pass null to place it at the front. (Optional.) + AfterColumnID *ID `json:"afterColumnId,omitempty"` } // OrgEnterpriseOwnerOrder represents ordering options for an organization's enterprise owner connections. @@ -1723,6 +2244,17 @@ type PackageVersionOrder struct { Direction *OrderDirection `json:"direction,omitempty"` } +// PinEnvironmentInput is an autogenerated input type of PinEnvironment. +type PinEnvironmentInput struct { + // The ID of the environment to modify. (Required.) + EnvironmentID ID `json:"environmentId"` + // The desired state of the environment. If true, environment will be pinned. If false, it will be unpinned. (Required.) + Pinned Boolean `json:"pinned"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // PinIssueInput is an autogenerated input type of PinIssue. type PinIssueInput struct { // The ID of the issue to be pinned. (Required.) @@ -1732,6 +2264,33 @@ type PinIssueInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// PinnedEnvironmentOrder represents ordering options for pinned environments. +type PinnedEnvironmentOrder struct { + // The field to order pinned environments by. (Required.) + Field PinnedEnvironmentOrderField `json:"field"` + // The direction in which to order pinned environments by the specified field. (Required.) + Direction OrderDirection `json:"direction"` +} + +// ProjectCardImport represents an issue or PR and its owning repository to be used in a project card. +type ProjectCardImport struct { + // Repository name with owner (owner/repository). (Required.) + Repository String `json:"repository"` + // The issue or pull request number. (Required.) + Number Int `json:"number"` +} + +// ProjectColumnImport represents a project column and a list of its issues and PRs. +type ProjectColumnImport struct { + // The name of the column. (Required.) + ColumnName String `json:"columnName"` + // The position of the column, starting from 0. (Required.) + Position Int `json:"position"` + + // A list of issues and pull requests in the column. (Optional.) + Issues *[]ProjectCardImport `json:"issues,omitempty"` +} + // ProjectOrder represents ways in which lists of projects can be ordered upon return. type ProjectOrder struct { // The field in which to order projects by. (Required.) @@ -1740,6 +2299,17 @@ type ProjectOrder struct { Direction OrderDirection `json:"direction"` } +// ProjectV2Collaborator represents a collaborator to update on a project. Only one of the userId or teamId should be provided. +type ProjectV2Collaborator struct { + // The role to grant the collaborator. (Required.) + Role ProjectV2Roles `json:"role"` + + // The ID of the user as a collaborator. (Optional.) + UserID *ID `json:"userId,omitempty"` + // The ID of the team as a collaborator. (Optional.) + TeamID *ID `json:"teamId,omitempty"` +} + // ProjectV2FieldOrder represents ordering options for project v2 field connections. type ProjectV2FieldOrder struct { // The field to order the project v2 fields by. (Required.) @@ -1794,6 +2364,24 @@ type ProjectV2Order struct { Direction OrderDirection `json:"direction"` } +// ProjectV2SingleSelectFieldOptionInput represents represents a single select field option. +type ProjectV2SingleSelectFieldOptionInput struct { + // The name of the option. (Required.) + Name String `json:"name"` + // The display color of the option. (Required.) + Color ProjectV2SingleSelectFieldOptionColor `json:"color"` + // The description text of the option. (Required.) + Description String `json:"description"` +} + +// ProjectV2StatusOrder represents ways in which project v2 status updates can be ordered. +type ProjectV2StatusOrder struct { + // The field by which to order nodes. (Required.) + Field ProjectV2StatusUpdateOrderField `json:"field"` + // The direction in which to order nodes. (Required.) + Direction OrderDirection `json:"direction"` +} + // ProjectV2ViewOrder represents ordering options for project v2 view connections. type ProjectV2ViewOrder struct { // The field to order the project v2 views by. (Required.) @@ -1802,6 +2390,34 @@ type ProjectV2ViewOrder struct { Direction OrderDirection `json:"direction"` } +// ProjectV2WorkflowOrder represents ordering options for project v2 workflows connections. +type ProjectV2WorkflowOrder struct { + // The field to order the project v2 workflows by. (Required.) + Field ProjectV2WorkflowsOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + +// PropertyTargetDefinitionInput represents a property that must match. +type PropertyTargetDefinitionInput struct { + // The name of the property. (Required.) + Name String `json:"name"` + // The values to match for. (Required.) + PropertyValues []String `json:"propertyValues"` + + // The source of the property. Choose 'custom' or 'system'. Defaults to 'custom' if not specified. (Optional.) + Source *String `json:"source,omitempty"` +} + +// PublishSponsorsTierInput is an autogenerated input type of PublishSponsorsTier. +type PublishSponsorsTierInput struct { + // The ID of the draft tier to publish. (Required.) + TierID ID `json:"tierId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // PullRequestOrder represents ways in which lists of issues can be ordered upon return. type PullRequestOrder struct { // The field in which to order pull requests by. (Required.) @@ -1810,6 +2426,20 @@ type PullRequestOrder struct { Direction OrderDirection `json:"direction"` } +// PullRequestParametersInput represents require all commits be made to a non-target branch and submitted via a pull request before they can be merged. +type PullRequestParametersInput struct { + // New, reviewable commits pushed will dismiss previous pull request review approvals. (Required.) + DismissStaleReviewsOnPush Boolean `json:"dismissStaleReviewsOnPush"` + // Require an approving review in pull requests that modify files that have a designated code owner. (Required.) + RequireCodeOwnerReview Boolean `json:"requireCodeOwnerReview"` + // Whether the most recent reviewable push must be approved by someone other than the person who pushed it. (Required.) + RequireLastPushApproval Boolean `json:"requireLastPushApproval"` + // The number of approving reviews that are required before a pull request can be merged. (Required.) + RequiredApprovingReviewCount Int `json:"requiredApprovingReviewCount"` + // All conversations on code must be resolved before a pull request can be merged. (Required.) + RequiredReviewThreadResolution Boolean `json:"requiredReviewThreadResolution"` +} + // ReactionOrder represents ways in which lists of reactions can be ordered upon return. type ReactionOrder struct { // The field in which to order reactions by. (Required.) @@ -1818,6 +2448,14 @@ type ReactionOrder struct { Direction OrderDirection `json:"direction"` } +// RefNameConditionTargetInput represents parameters to be used for the ref_name condition. +type RefNameConditionTargetInput struct { + // Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. (Required.) + Exclude []String `json:"exclude"` + // Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches. (Required.) + Include []String `json:"include"` +} + // RefOrder represents ways in which lists of git refs can be ordered upon return. type RefOrder struct { // The field in which to order refs by. (Required.) @@ -1826,6 +2464,19 @@ type RefOrder struct { Direction OrderDirection `json:"direction"` } +// RefUpdate represents a ref update. +type RefUpdate struct { + // The fully qualified name of the ref to be update. For example `refs/heads/branch-name`. (Required.) + Name GitRefname `json:"name"` + // The value this ref should be updated to. (Required.) + AfterOid GitObjectID `json:"afterOid"` + + // The value this ref needs to point to before the update. (Optional.) + BeforeOid *GitObjectID `json:"beforeOid,omitempty"` + // Force a non fast-forward update. (Optional.) + Force *Boolean `json:"force,omitempty"` +} + // RegenerateEnterpriseIdentityProviderRecoveryCodesInput is an autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes. type RegenerateEnterpriseIdentityProviderRecoveryCodesInput struct { // The ID of the enterprise on which to set an identity provider. (Required.) @@ -1851,10 +2502,10 @@ type RejectDeploymentsInput struct { // The ids of environments to reject deployments. (Required.) EnvironmentIDs []ID `json:"environmentIds"` - // Optional comment for rejecting deployments. (Optional.) - Comment *String `json:"comment,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Optional comment for rejecting deployments. (Optional.) + Comment *String `json:"comment,omitempty"` } // ReleaseOrder represents ways in which lists of releases can be ordered upon return. @@ -1896,6 +2547,17 @@ type RemoveEnterpriseIdentityProviderInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// RemoveEnterpriseMemberInput is an autogenerated input type of RemoveEnterpriseMember. +type RemoveEnterpriseMemberInput struct { + // The ID of the enterprise from which the user should be removed. (Required.) + EnterpriseID ID `json:"enterpriseId"` + // The ID of the user to remove from the enterprise. (Required.) + UserID ID `json:"userId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // RemoveEnterpriseOrganizationInput is an autogenerated input type of RemoveEnterpriseOrganization. type RemoveEnterpriseOrganizationInput struct { // The ID of the enterprise from which the organization should be removed. (Required.) @@ -1969,6 +2631,15 @@ type RemoveUpvoteInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// ReopenDiscussionInput is an autogenerated input type of ReopenDiscussion. +type ReopenDiscussionInput struct { + // ID of the discussion to be reopened. (Required.) + DiscussionID ID `json:"discussionId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // ReopenIssueInput is an autogenerated input type of ReopenIssue. type ReopenIssueInput struct { // ID of the issue to be opened. (Required.) @@ -1987,6 +2658,23 @@ type ReopenPullRequestInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// ReorderEnvironmentInput is an autogenerated input type of ReorderEnvironment. +type ReorderEnvironmentInput struct { + // The ID of the environment to modify. (Required.) + EnvironmentID ID `json:"environmentId"` + // The desired position of the environment. (Required.) + Position Int `json:"position"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// RepositoryIdConditionTargetInput represents parameters to be used for the repository_id condition. +type RepositoryIdConditionTargetInput struct { + // One of these repo IDs must match the repo. (Required.) + RepositoryIDs []ID `json:"repositoryIds"` +} + // RepositoryInvitationOrder represents ordering options for repository invitation connections. type RepositoryInvitationOrder struct { // The field to order repository invitations by. (Required.) @@ -2003,6 +2691,17 @@ type RepositoryMigrationOrder struct { Direction RepositoryMigrationOrderDirection `json:"direction"` } +// RepositoryNameConditionTargetInput represents parameters to be used for the repository_name condition. +type RepositoryNameConditionTargetInput struct { + // Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. (Required.) + Exclude []String `json:"exclude"` + // Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories. (Required.) + Include []String `json:"include"` + + // Target changes that match these patterns will be prevented except by those with bypass permissions. (Optional.) + Protected *Boolean `json:"protected,omitempty"` +} + // RepositoryOrder represents ordering options for repository connections. type RepositoryOrder struct { // The field to order repositories by. (Required.) @@ -2011,19 +2710,80 @@ type RepositoryOrder struct { Direction OrderDirection `json:"direction"` } +// RepositoryPropertyConditionTargetInput represents parameters to be used for the repository_property condition. +type RepositoryPropertyConditionTargetInput struct { + // Array of repository properties that must not match. (Required.) + Exclude []PropertyTargetDefinitionInput `json:"exclude"` + // Array of repository properties that must match. (Required.) + Include []PropertyTargetDefinitionInput `json:"include"` +} + +// RepositoryRuleConditionsInput specifies the conditions required for a ruleset to evaluate. +type RepositoryRuleConditionsInput struct { + + // Configuration for the ref_name condition. (Optional.) + RefName *RefNameConditionTargetInput `json:"refName,omitempty"` + // Configuration for the repository_name condition. (Optional.) + RepositoryName *RepositoryNameConditionTargetInput `json:"repositoryName,omitempty"` + // Configuration for the repository_id condition. (Optional.) + RepositoryID *RepositoryIdConditionTargetInput `json:"repositoryId,omitempty"` + // Configuration for the repository_property condition. (Optional.) + RepositoryProperty *RepositoryPropertyConditionTargetInput `json:"repositoryProperty,omitempty"` +} + +// RepositoryRuleInput specifies the attributes for a new or updated rule. +type RepositoryRuleInput struct { + // The type of rule to create. (Required.) + Type RepositoryRuleType `json:"type"` + + // Optional ID of this rule when updating. (Optional.) + ID *ID `json:"id,omitempty"` + // The parameters for the rule. (Optional.) + Parameters *RuleParametersInput `json:"parameters,omitempty"` +} + +// RepositoryRuleOrder represents ordering options for repository rules. +type RepositoryRuleOrder struct { + // The field to order repository rules by. (Required.) + Field RepositoryRuleOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + +// RepositoryRulesetBypassActorInput specifies the attributes for a new or updated ruleset bypass actor. Only one of `actor_id`, `repository_role_database_id`, `organization_admin`, or `deploy_key` should be specified. +type RepositoryRulesetBypassActorInput struct { + // The bypass mode for this actor. (Required.) + BypassMode RepositoryRulesetBypassActorBypassMode `json:"bypassMode"` + + // For Team and Integration bypasses, the Team or Integration ID. (Optional.) + ActorID *ID `json:"actorId,omitempty"` + // For role bypasses, the role database ID. (Optional.) + RepositoryRoleDatabaseID *Int `json:"repositoryRoleDatabaseId,omitempty"` + // For organization owner bypasses, true. (Optional.) + OrganizationAdmin *Boolean `json:"organizationAdmin,omitempty"` + // For deploy key bypasses, true. Can only use ALWAYS as the bypass mode. (Optional.) + DeployKey *Boolean `json:"deployKey,omitempty"` +} + // RequestReviewsInput is an autogenerated input type of RequestReviews. type RequestReviewsInput struct { // The Node ID of the pull request to modify. (Required.) PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The Node IDs of the user to request. (Optional.) UserIDs *[]ID `json:"userIds,omitempty"` // The Node IDs of the team to request. (Optional.) TeamIDs *[]ID `json:"teamIds,omitempty"` // Add users to the set rather than replace. (Optional.) Union *Boolean `json:"union,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// 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"` } // RequiredStatusCheckInput specifies the attributes for a new or updated required status check. @@ -2035,6 +2795,17 @@ type RequiredStatusCheckInput struct { AppID *ID `json:"appId,omitempty"` } +// 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"` + // Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. (Required.) + StrictRequiredStatusChecksPolicy Boolean `json:"strictRequiredStatusChecksPolicy"` + + // Allow repositories and branches to be created if a check would otherwise prohibit it. (Optional.) + DoNotEnforceOnCreate *Boolean `json:"doNotEnforceOnCreate,omitempty"` +} + // RerequestCheckSuiteInput is an autogenerated input type of RerequestCheckSuite. type RerequestCheckSuiteInput struct { // The Node ID of the repository. (Required.) @@ -2055,6 +2826,30 @@ type ResolveReviewThreadInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// RetireSponsorsTierInput is an autogenerated input type of RetireSponsorsTier. +type RetireSponsorsTierInput struct { + // The ID of the published tier to retire. (Required.) + TierID ID `json:"tierId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// RevertPullRequestInput is an autogenerated input type of RevertPullRequest. +type RevertPullRequestInput struct { + // The ID of the pull request to revert. (Required.) + PullRequestID ID `json:"pullRequestId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The title of the revert pull request. (Optional.) + Title *String `json:"title,omitempty"` + // The description of the revert pull request. (Optional.) + Body *String `json:"body,omitempty"` + // Indicates whether the revert pull request should be a draft. (Optional.) + Draft *Boolean `json:"draft,omitempty"` +} + // RevokeEnterpriseOrganizationsMigratorRoleInput is an autogenerated input type of RevokeEnterpriseOrganizationsMigratorRole. type RevokeEnterpriseOrganizationsMigratorRoleInput struct { // The ID of the enterprise to which all organizations managed by it will be granted the migrator role. (Required.) @@ -2079,6 +2874,43 @@ type RevokeMigratorRoleInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// RuleParametersInput specifies the parameters for a `RepositoryRule` object. Only one of the fields should be specified. +type RuleParametersInput struct { + + // Parameters used for the `update` rule type. (Optional.) + Update *UpdateParametersInput `json:"update,omitempty"` + // Parameters used for the `merge_queue` rule type. (Optional.) + MergeQueue *MergeQueueParametersInput `json:"mergeQueue,omitempty"` + // Parameters used for the `required_deployments` rule type. (Optional.) + RequiredDeployments *RequiredDeploymentsParametersInput `json:"requiredDeployments,omitempty"` + // Parameters used for the `pull_request` rule type. (Optional.) + PullRequest *PullRequestParametersInput `json:"pullRequest,omitempty"` + // Parameters used for the `required_status_checks` rule type. (Optional.) + RequiredStatusChecks *RequiredStatusChecksParametersInput `json:"requiredStatusChecks,omitempty"` + // Parameters used for the `commit_message_pattern` rule type. (Optional.) + CommitMessagePattern *CommitMessagePatternParametersInput `json:"commitMessagePattern,omitempty"` + // Parameters used for the `commit_author_email_pattern` rule type. (Optional.) + CommitAuthorEmailPattern *CommitAuthorEmailPatternParametersInput `json:"commitAuthorEmailPattern,omitempty"` + // Parameters used for the `committer_email_pattern` rule type. (Optional.) + CommitterEmailPattern *CommitterEmailPatternParametersInput `json:"committerEmailPattern,omitempty"` + // Parameters used for the `branch_name_pattern` rule type. (Optional.) + BranchNamePattern *BranchNamePatternParametersInput `json:"branchNamePattern,omitempty"` + // Parameters used for the `tag_name_pattern` rule type. (Optional.) + TagNamePattern *TagNamePatternParametersInput `json:"tagNamePattern,omitempty"` + // Parameters used for the `file_path_restriction` rule type. (Optional.) + FilePathRestriction *FilePathRestrictionParametersInput `json:"filePathRestriction,omitempty"` + // Parameters used for the `max_file_path_length` rule type. (Optional.) + MaxFilePathLength *MaxFilePathLengthParametersInput `json:"maxFilePathLength,omitempty"` + // Parameters used for the `file_extension_restriction` rule type. (Optional.) + FileExtensionRestriction *FileExtensionRestrictionParametersInput `json:"fileExtensionRestriction,omitempty"` + // Parameters used for the `max_file_size` rule type. (Optional.) + MaxFileSize *MaxFileSizeParametersInput `json:"maxFileSize,omitempty"` + // Parameters used for the `workflows` rule type. (Optional.) + Workflows *WorkflowsParametersInput `json:"workflows,omitempty"` + // Parameters used for the `code_scanning` rule type. (Optional.) + CodeScanning *CodeScanningParametersInput `json:"codeScanning,omitempty"` +} + // SavedReplyOrder represents ordering options for saved reply connections. type SavedReplyOrder struct { // The field to order saved replies by. (Required.) @@ -2124,10 +2956,10 @@ type SetEnterpriseIdentityProviderInput struct { // The digest algorithm used to sign SAML requests for the identity provider. (Required.) DigestMethod SamlDigestAlgorithm `json:"digestMethod"` - // The Issuer Entity ID for the SAML identity provider. (Optional.) - Issuer *String `json:"issuer,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The Issuer Entity ID for the SAML identity provider. (Optional.) + Issuer *String `json:"issuer,omitempty"` } // SetOrganizationInteractionLimitInput is an autogenerated input type of SetOrganizationInteractionLimit. @@ -2137,10 +2969,10 @@ type SetOrganizationInteractionLimitInput struct { // The limit to set. (Required.) Limit RepositoryInteractionLimit `json:"limit"` - // When this limit should expire. (Optional.) - Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // When this limit should expire. (Optional.) + Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` } // SetRepositoryInteractionLimitInput is an autogenerated input type of SetRepositoryInteractionLimit. @@ -2150,10 +2982,10 @@ type SetRepositoryInteractionLimitInput struct { // The limit to set. (Required.) Limit RepositoryInteractionLimit `json:"limit"` - // When this limit should expire. (Optional.) - Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // When this limit should expire. (Optional.) + Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` } // SetUserInteractionLimitInput is an autogenerated input type of SetUserInteractionLimit. @@ -2163,10 +2995,18 @@ type SetUserInteractionLimitInput struct { // The limit to set. (Required.) Limit RepositoryInteractionLimit `json:"limit"` - // When this limit should expire. (Optional.) - Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // When this limit should expire. (Optional.) + Expiry *RepositoryInteractionLimitExpiry `json:"expiry,omitempty"` +} + +// SponsorAndLifetimeValueOrder represents ordering options for connections to get sponsor entities and associated USD amounts for GitHub Sponsors. +type SponsorAndLifetimeValueOrder struct { + // The field to order results by. (Required.) + Field SponsorAndLifetimeValueOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` } // SponsorOrder represents ordering options for connections to get sponsor entities for GitHub Sponsors. @@ -2225,25 +3065,42 @@ type StarOrder struct { Direction OrderDirection `json:"direction"` } +// StartOrganizationMigrationInput is an autogenerated input type of StartOrganizationMigration. +type StartOrganizationMigrationInput struct { + // The URL of the organization to migrate. (Required.) + SourceOrgURL URI `json:"sourceOrgUrl"` + // The name of the target organization. (Required.) + TargetOrgName String `json:"targetOrgName"` + // The ID of the enterprise the target organization belongs to. (Required.) + TargetEnterpriseID ID `json:"targetEnterpriseId"` + // The migration source access token. (Required.) + SourceAccessToken String `json:"sourceAccessToken"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // StartRepositoryMigrationInput is an autogenerated input type of StartRepositoryMigration. type StartRepositoryMigrationInput struct { - // The ID of the Octoshift migration source. (Required.) + // The ID of the migration source. (Required.) SourceID ID `json:"sourceId"` // The ID of the organization that will own the imported repository. (Required.) OwnerID ID `json:"ownerId"` - // The Octoshift migration source repository URL. (Required.) + // The URL of the source repository. (Required.) SourceRepositoryURL URI `json:"sourceRepositoryUrl"` // The name of the imported repository. (Required.) RepositoryName String `json:"repositoryName"` - // The Octoshift migration source access token. (Required.) - AccessToken String `json:"accessToken"` - // Whether to continue the migration on error. (Optional.) + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // 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"` // The signed URL to access the user-uploaded metadata archive. (Optional.) MetadataArchiveURL *String `json:"metadataArchiveUrl,omitempty"` + // The migration source access token. (Optional.) + AccessToken *String `json:"accessToken,omitempty"` // The GitHub personal access token of the user importing to the target repository. (Optional.) GitHubPat *String `json:"githubPat,omitempty"` // Whether to skip migrating releases for the repository. (Optional.) @@ -2252,8 +3109,15 @@ type StartRepositoryMigrationInput struct { TargetRepoVisibility *String `json:"targetRepoVisibility,omitempty"` // Whether to lock the source repository. (Optional.) LockSource *Boolean `json:"lockSource,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// StatusCheckConfigurationInput represents required status check. +type StatusCheckConfigurationInput struct { + // The status check context name that must be present on the commit. (Required.) + Context String `json:"context"` + + // The optional integration ID that this status check must originate from. (Optional.) + IntegrationID *Int `json:"integrationId,omitempty"` } // SubmitPullRequestReviewInput is an autogenerated input type of SubmitPullRequestReview. @@ -2261,14 +3125,27 @@ type SubmitPullRequestReviewInput struct { // The event to send to the Pull Request Review. (Required.) Event PullRequestReviewEvent `json:"event"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The Pull Request ID to submit any pending reviews. (Optional.) PullRequestID *ID `json:"pullRequestId,omitempty"` // The Pull Request Review ID to submit. (Optional.) PullRequestReviewID *ID `json:"pullRequestReviewId,omitempty"` // The text field to set on the Pull Request Review. (Optional.) Body *String `json:"body,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` +} + +// TagNamePatternParametersInput represents parameters to be used for the tag_name_pattern rule. +type TagNamePatternParametersInput struct { + // The operator to use for matching. (Required.) + Operator String `json:"operator"` + // The pattern to match with. (Required.) + Pattern String `json:"pattern"` + + // How this rule will appear to users. (Optional.) + Name *String `json:"name,omitempty"` + // If true, the rule will fail if the pattern matches. (Optional.) + Negate *Boolean `json:"negate,omitempty"` } // TeamDiscussionCommentOrder represents ways in which team discussion comment connections can be ordered. @@ -2329,10 +3206,10 @@ type TransferIssueInput struct { // The Node ID of the repository the issue should be transferred to. (Required.) RepositoryID ID `json:"repositoryId"` - // Whether to create labels if they don't exist in the target repository (matched by name). (Optional.) - CreateLabelsIfMissing *Boolean `json:"createLabelsIfMissing,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Whether to create labels if they don't exist in the target repository (matched by name). (Optional.) + CreateLabelsIfMissing *Boolean `json:"createLabelsIfMissing,omitempty"` } // UnarchiveProjectV2ItemInput is an autogenerated input type of UnarchiveProjectV2Item. @@ -2446,6 +3323,15 @@ type UnmarkIssueAsDuplicateInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UnmarkProjectV2AsTemplateInput is an autogenerated input type of UnmarkProjectV2AsTemplate. +type UnmarkProjectV2AsTemplateInput struct { + // The ID of the Project to unmark as a template. (Required.) + ProjectID ID `json:"projectId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // UnminimizeCommentInput is an autogenerated input type of UnminimizeComment. type UnminimizeCommentInput struct { // The Node ID of the subject to modify. (Required.) @@ -2473,11 +3359,22 @@ 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.) BranchProtectionRuleID ID `json:"branchProtectionRuleId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The glob-like pattern used to determine matching branches. (Optional.) Pattern *String `json:"pattern,omitempty"` // Are approving reviews required to update matching branches. (Optional.) @@ -2494,7 +3391,7 @@ type UpdateBranchProtectionRuleInput struct { AllowsForcePushes *Boolean `json:"allowsForcePushes,omitempty"` // Can this branch be deleted. (Optional.) AllowsDeletions *Boolean `json:"allowsDeletions,omitempty"` - // Can admins overwrite branch protection. (Optional.) + // Can admins override branch protection. (Optional.) IsAdminEnforced *Boolean `json:"isAdminEnforced,omitempty"` // Are status checks required to update matching branches. (Optional.) RequiresStatusChecks *Boolean `json:"requiresStatusChecks,omitempty"` @@ -2520,6 +3417,10 @@ type UpdateBranchProtectionRuleInput struct { RequiredStatusCheckContexts *[]String `json:"requiredStatusCheckContexts,omitempty"` // The list of required status checks. (Optional.) RequiredStatusChecks *[]RequiredStatusCheckInput `json:"requiredStatusChecks,omitempty"` + // Are successful deployments required before merging. (Optional.) + RequiresDeployments *Boolean `json:"requiresDeployments,omitempty"` + // The list of required deployment environments. (Optional.) + RequiredDeploymentEnvironments *[]String `json:"requiredDeploymentEnvironments,omitempty"` // Are conversations required to be resolved before merging. (Optional.) RequiresConversationResolution *Boolean `json:"requiresConversationResolution,omitempty"` // Whether the most recent push must be approved by someone other than the person who pushed it. (Optional.) @@ -2528,8 +3429,6 @@ type UpdateBranchProtectionRuleInput struct { LockBranch *Boolean `json:"lockBranch,omitempty"` // Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. (Optional.) LockAllowsFetchAndMerge *Boolean `json:"lockAllowsFetchAndMerge,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateCheckRunInput is an autogenerated input type of UpdateCheckRun. @@ -2539,6 +3438,8 @@ type UpdateCheckRunInput struct { // The node of the check. (Required.) CheckRunID ID `json:"checkRunId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The name of the check. (Optional.) Name *String `json:"name,omitempty"` // The URL of the integrator's site that has the full details of the check. (Optional.) @@ -2557,8 +3458,6 @@ type UpdateCheckRunInput struct { Output *CheckRunOutput `json:"output,omitempty"` // Possible further actions the integrator can perform, which a user may trigger. (Optional.) Actions *[]CheckRunAction `json:"actions,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateCheckSuitePreferencesInput is an autogenerated input type of UpdateCheckSuitePreferences. @@ -2588,14 +3487,14 @@ type UpdateDiscussionInput struct { // The Node ID of the discussion to update. (Required.) DiscussionID ID `json:"discussionId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The new discussion title. (Optional.) Title *String `json:"title,omitempty"` // The new contents of the discussion body. (Optional.) Body *String `json:"body,omitempty"` // The Node ID of a discussion category within the same repository to change this discussion to. (Optional.) CategoryID *ID `json:"categoryId,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateEnterpriseAdministratorRoleInput is an autogenerated input type of UpdateEnterpriseAdministratorRole. @@ -2618,10 +3517,10 @@ type UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput struct { // The value for the allow private repository forking setting on the enterprise. (Required.) SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue"` - // The value for the allow private repository forking policy on the enterprise. (Optional.) - PolicyValue *EnterpriseAllowPrivateRepositoryForkingPolicyValue `json:"policyValue,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The value for the allow private repository forking policy on the enterprise. (Optional.) + PolicyValue *EnterpriseAllowPrivateRepositoryForkingPolicyValue `json:"policyValue,omitempty"` } // UpdateEnterpriseDefaultRepositoryPermissionSettingInput is an autogenerated input type of UpdateEnterpriseDefaultRepositoryPermissionSetting. @@ -2651,6 +3550,8 @@ type UpdateEnterpriseMembersCanCreateRepositoriesSettingInput struct { // The ID of the enterprise on which to set the members can create repositories setting. (Required.) EnterpriseID ID `json:"enterpriseId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Value for the members can create repositories setting on the enterprise. This or the granular public/private/internal allowed fields (but not both) must be provided. (Optional.) SettingValue *EnterpriseMembersCanCreateRepositoriesSettingValue `json:"settingValue,omitempty"` // When false, allow member organizations to set their own repository creation member privileges. (Optional.) @@ -2661,8 +3562,6 @@ type UpdateEnterpriseMembersCanCreateRepositoriesSettingInput struct { MembersCanCreatePrivateRepositories *Boolean `json:"membersCanCreatePrivateRepositories,omitempty"` // Allow members to create internal repositories. Defaults to current value. (Optional.) MembersCanCreateInternalRepositories *Boolean `json:"membersCanCreateInternalRepositories,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateEnterpriseMembersCanDeleteIssuesSettingInput is an autogenerated input type of UpdateEnterpriseMembersCanDeleteIssuesSetting. @@ -2760,6 +3659,8 @@ type UpdateEnterpriseProfileInput struct { // The Enterprise ID to update. (Required.) EnterpriseID ID `json:"enterpriseId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The name of the enterprise. (Optional.) Name *String `json:"name,omitempty"` // The description of the enterprise. (Optional.) @@ -2768,8 +3669,6 @@ type UpdateEnterpriseProfileInput struct { WebsiteURL *String `json:"websiteUrl,omitempty"` // The location of the enterprise. (Optional.) Location *String `json:"location,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateEnterpriseRepositoryProjectsSettingInput is an autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting. @@ -2810,12 +3709,14 @@ type UpdateEnvironmentInput struct { // The node ID of the environment. (Required.) EnvironmentID ID `json:"environmentId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The wait timer in minutes. (Optional.) WaitTimer *Int `json:"waitTimer,omitempty"` // The ids of users or teams that can approve deployments to this environment. (Optional.) Reviewers *[]ID `json:"reviewers,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` + // Whether deployments to this environment can be approved by the user who created the deployment. (Optional.) + PreventSelfReview *Boolean `json:"preventSelfReview,omitempty"` } // UpdateIpAllowListEnabledSettingInput is an autogenerated input type of UpdateIpAllowListEnabledSetting. @@ -2838,10 +3739,10 @@ type UpdateIpAllowListEntryInput struct { // Whether the IP allow list entry is active when an IP allow list is enabled. (Required.) IsActive Boolean `json:"isActive"` - // An optional name for the IP allow list entry. (Optional.) - Name *String `json:"name,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // An optional name for the IP allow list entry. (Optional.) + Name *String `json:"name,omitempty"` } // UpdateIpAllowListForInstalledAppsEnabledSettingInput is an autogenerated input type of UpdateIpAllowListForInstalledAppsEnabledSetting. @@ -2871,6 +3772,8 @@ type UpdateIssueInput struct { // The ID of the Issue to modify. (Required.) ID ID `json:"id"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The title for the issue. (Optional.) Title *String `json:"title,omitempty"` // The body for the issue description. (Optional.) @@ -2885,8 +3788,21 @@ type UpdateIssueInput struct { State *IssueState `json:"state,omitempty"` // An array of Node IDs for projects associated with this issue. (Optional.) ProjectIDs *[]ID `json:"projectIds,omitempty"` +} + +// UpdateLabelInput is an autogenerated input type of UpdateLabel. +type UpdateLabelInput struct { + // The Node ID of the label to be updated. (Required.) + ID ID `json:"id"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // A 6 character hex code, without the leading #, identifying the updated color of the label. (Optional.) + Color *String `json:"color,omitempty"` + // A brief description of the label, such as its purpose. (Optional.) + Description *String `json:"description,omitempty"` + // The updated name of the label. (Optional.) + Name *String `json:"name,omitempty"` } // UpdateNotificationRestrictionSettingInput is an autogenerated input type of UpdateNotificationRestrictionSetting. @@ -2922,17 +3838,34 @@ type UpdateOrganizationWebCommitSignoffSettingInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UpdateParametersInput represents only allow users with bypass permission to update matching refs. +type UpdateParametersInput struct { + // Branch can pull changes from its upstream repository. (Required.) + 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"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // 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"` +} + // UpdateProjectCardInput is an autogenerated input type of UpdateProjectCard. type UpdateProjectCardInput struct { // The ProjectCard ID to update. (Required.) ProjectCardID ID `json:"projectCardId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Whether or not the ProjectCard should be archived. (Optional.) IsArchived *Boolean `json:"isArchived,omitempty"` // The note of ProjectCard. (Optional.) Note *String `json:"note,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateProjectColumnInput is an autogenerated input type of UpdateProjectColumn. @@ -2946,26 +3879,13 @@ type UpdateProjectColumnInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } -// UpdateProjectDraftIssueInput is an autogenerated input type of UpdateProjectDraftIssue. -type UpdateProjectDraftIssueInput struct { - // The ID of the draft issue to update. (Required.) - DraftIssueID ID `json:"draftIssueId"` - - // The title of the draft issue. (Optional.) - Title *String `json:"title,omitempty"` - // The body of the draft issue. (Optional.) - Body *String `json:"body,omitempty"` - // The IDs of the assignees of the draft issue. (Optional.) - AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` -} - // UpdateProjectInput is an autogenerated input type of UpdateProject. type UpdateProjectInput struct { // The Project ID to update. (Required.) ProjectID ID `json:"projectId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The name of project. (Optional.) Name *String `json:"name,omitempty"` // The description of project. (Optional.) @@ -2974,40 +3894,15 @@ type UpdateProjectInput struct { State *ProjectState `json:"state,omitempty"` // Whether the project is public or not. (Optional.) Public *Boolean `json:"public,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` -} - -// UpdateProjectNextInput is an autogenerated input type of UpdateProjectNext. -type UpdateProjectNextInput struct { - - // The ID of the Project to update. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `projectId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ProjectID *ID `json:"projectId,omitempty"` - // Set the title of the project. **Upcoming Change on 2023-01-01 UTC** **Description:** `title` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Title *String `json:"title,omitempty"` - // Set the readme description of the project. **Upcoming Change on 2023-01-01 UTC** **Description:** `description` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Description *String `json:"description,omitempty"` - // Set the short description of the project. **Upcoming Change on 2023-01-01 UTC** **Description:** `shortDescription` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ShortDescription *String `json:"shortDescription,omitempty"` - // Set the project to closed or open. **Upcoming Change on 2023-01-01 UTC** **Description:** `closed` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Closed *Boolean `json:"closed,omitempty"` - // Set the project to public or private. **Upcoming Change on 2023-01-01 UTC** **Description:** `public` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Public *Boolean `json:"public,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } -// UpdateProjectNextItemFieldInput is an autogenerated input type of UpdateProjectNextItemField. -type UpdateProjectNextItemFieldInput struct { +// UpdateProjectV2CollaboratorsInput is an autogenerated input type of UpdateProjectV2Collaborators. +type UpdateProjectV2CollaboratorsInput struct { + // The ID of the project to update the collaborators for. (Required.) + ProjectID ID `json:"projectId"` + // The collaborators to update. (Required.) + Collaborators []ProjectV2Collaborator `json:"collaborators"` - // The ID of the Project. This field is required. (Optional.) - ProjectID *ID `json:"projectId,omitempty"` - // The id of the item to be updated. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `itemId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - ItemID *ID `json:"itemId,omitempty"` - // The id of the field to be updated. **Upcoming Change on 2023-01-01 UTC** **Description:** `fieldId` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - FieldID *ID `json:"fieldId,omitempty"` - // The value which will be set on the field. This field is required. **Upcoming Change on 2023-01-01 UTC** **Description:** `value` will be removed. Follow the ProjectV2 guide at https://github.blog/changelog/2022-06-23-the-new-github-issues-june-23rd-update/, to find a suitable replacement. **Reason:** The `ProjectNext` API is deprecated in favour of the more capable `ProjectV2` API. (Optional.) - Value *String `json:"value,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -3017,14 +3912,14 @@ type UpdateProjectV2DraftIssueInput struct { // The ID of the draft issue to update. (Required.) DraftIssueID ID `json:"draftIssueId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The title of the draft issue. (Optional.) Title *String `json:"title,omitempty"` // The body of the draft issue. (Optional.) Body *String `json:"body,omitempty"` // The IDs of the assignees of the draft issue. (Optional.) AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateProjectV2Input is an autogenerated input type of UpdateProjectV2. @@ -3032,6 +3927,8 @@ type UpdateProjectV2Input struct { // The ID of the Project to update. (Required.) ProjectID ID `json:"projectId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Set the title of the project. (Optional.) Title *String `json:"title,omitempty"` // Set the short description of the project. (Optional.) @@ -3042,8 +3939,6 @@ type UpdateProjectV2Input struct { Closed *Boolean `json:"closed,omitempty"` // Set the project to public or private. (Optional.) Public *Boolean `json:"public,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateProjectV2ItemFieldValueInput is an autogenerated input type of UpdateProjectV2ItemFieldValue. @@ -3068,10 +3963,27 @@ type UpdateProjectV2ItemPositionInput struct { // The ID of the item to be moved. (Required.) ItemID ID `json:"itemId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the item to position this item after. If omitted or set to null the item will be moved to top. (Optional.) AfterID *ID `json:"afterId,omitempty"` +} + +// UpdateProjectV2StatusUpdateInput is an autogenerated input type of UpdateProjectV2StatusUpdate. +type UpdateProjectV2StatusUpdateInput struct { + // The ID of the status update to be updated. (Required.) + StatusUpdateID ID `json:"statusUpdateId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The start date of the status update. (Optional.) + StartDate *Date `json:"startDate,omitempty"` + // The target date of the status update. (Optional.) + TargetDate *Date `json:"targetDate,omitempty"` + // The status of the status update. (Optional.) + Status *ProjectV2StatusUpdateStatus `json:"status,omitempty"` + // The body of the status update. (Optional.) + Body *String `json:"body,omitempty"` } // UpdatePullRequestBranchInput is an autogenerated input type of UpdatePullRequestBranch. @@ -3079,10 +3991,12 @@ type UpdatePullRequestBranchInput struct { // The Node ID of the pull request. (Required.) PullRequestID ID `json:"pullRequestId"` - // The head ref oid for the upstream branch. (Optional.) - ExpectedHeadOid *GitObjectID `json:"expectedHeadOid,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // 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"` } // UpdatePullRequestInput is an autogenerated input type of UpdatePullRequest. @@ -3090,6 +4004,8 @@ type UpdatePullRequestInput struct { // The Node ID of the pull request. (Required.) PullRequestID ID `json:"pullRequestId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. (Optional.) BaseRefName *String `json:"baseRefName,omitempty"` // The title of the pull request. (Optional.) @@ -3108,8 +4024,6 @@ type UpdatePullRequestInput struct { LabelIDs *[]ID `json:"labelIds,omitempty"` // An array of Node IDs for projects associated with this pull request. (Optional.) ProjectIDs *[]ID `json:"projectIds,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdatePullRequestReviewCommentInput is an autogenerated input type of UpdatePullRequestReviewComment. @@ -3141,8 +4055,19 @@ type UpdateRefInput struct { // The GitObjectID that the Ref shall be updated to target. (Required.) Oid GitObjectID `json:"oid"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // Permit updates of branch Refs that are not fast-forwards?. (Optional.) Force *Boolean `json:"force,omitempty"` +} + +// UpdateRefsInput is an autogenerated input type of UpdateRefs. +type UpdateRefsInput struct { + // The Node ID of the repository. (Required.) + RepositoryID ID `json:"repositoryId"` + // A list of ref updates. (Required.) + RefUpdates []RefUpdate `json:"refUpdates"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } @@ -3152,6 +4077,8 @@ type UpdateRepositoryInput struct { // The ID of the repository to update. (Required.) RepositoryID ID `json:"repositoryId"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The new name of the repository. (Optional.) Name *String `json:"name,omitempty"` // A new description for the repository. Pass an empty string to erase the existing description. (Optional.) @@ -3168,8 +4095,29 @@ type UpdateRepositoryInput struct { HasProjectsEnabled *Boolean `json:"hasProjectsEnabled,omitempty"` // Indicates if the repository should have the discussions feature enabled. (Optional.) HasDiscussionsEnabled *Boolean `json:"hasDiscussionsEnabled,omitempty"` + // Indicates if the repository displays a Sponsor button for financial contributions. (Optional.) + HasSponsorshipsEnabled *Boolean `json:"hasSponsorshipsEnabled,omitempty"` +} + +// UpdateRepositoryRulesetInput is an autogenerated input type of UpdateRepositoryRuleset. +type UpdateRepositoryRulesetInput struct { + // The global relay id of the repository ruleset to be updated. (Required.) + RepositoryRulesetID ID `json:"repositoryRulesetId"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The name of the ruleset. (Optional.) + Name *String `json:"name,omitempty"` + // The target of the ruleset. (Optional.) + Target *RepositoryRulesetTarget `json:"target,omitempty"` + // The list of rules for this ruleset. (Optional.) + Rules *[]RepositoryRuleInput `json:"rules,omitempty"` + // The list of conditions for this ruleset. (Optional.) + Conditions *RepositoryRuleConditionsInput `json:"conditions,omitempty"` + // The enforcement level for this ruleset. (Optional.) + Enforcement *RuleEnforcement `json:"enforcement,omitempty"` + // A list of actors that are allowed to bypass rules in this ruleset. (Optional.) + BypassActors *[]RepositoryRulesetBypassActorInput `json:"bypassActors,omitempty"` } // UpdateRepositoryWebCommitSignoffSettingInput is an autogenerated input type of UpdateRepositoryWebCommitSignoffSetting. @@ -3186,6 +4134,8 @@ type UpdateRepositoryWebCommitSignoffSettingInput struct { // UpdateSponsorshipPreferencesInput is an autogenerated input type of UpdateSponsorshipPreferences. type UpdateSponsorshipPreferencesInput struct { + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. (Optional.) SponsorID *ID `json:"sponsorId,omitempty"` // The username of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorId is not given. (Optional.) @@ -3198,8 +4148,6 @@ type UpdateSponsorshipPreferencesInput struct { ReceiveEmails *Boolean `json:"receiveEmails,omitempty"` // Specify whether others should be able to see that the sponsor is sponsoring the sponsorable. Public visibility still does not reveal which tier is used. (Optional.) PrivacyLevel *SponsorshipPrivacy `json:"privacyLevel,omitempty"` - // A unique identifier for the client performing the mutation. (Optional.) - ClientMutationID *String `json:"clientMutationId,omitempty"` } // UpdateSubscriptionInput is an autogenerated input type of UpdateSubscription. @@ -3220,10 +4168,10 @@ type UpdateTeamDiscussionCommentInput struct { // The updated text of the comment. (Required.) Body String `json:"body"` - // The current version of the body content. (Optional.) - BodyVersion *String `json:"bodyVersion,omitempty"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The current version of the body content. (Optional.) + BodyVersion *String `json:"bodyVersion,omitempty"` } // UpdateTeamDiscussionInput is an autogenerated input type of UpdateTeamDiscussion. @@ -3231,6 +4179,8 @@ type UpdateTeamDiscussionInput struct { // The Node ID of the discussion to modify. (Required.) ID ID `json:"id"` + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` // The updated title of the discussion. (Optional.) Title *String `json:"title,omitempty"` // The updated text of the discussion. (Optional.) @@ -3239,8 +4189,31 @@ type UpdateTeamDiscussionInput struct { BodyVersion *String `json:"bodyVersion,omitempty"` // If provided, sets the pinned state of the updated discussion. (Optional.) Pinned *Boolean `json:"pinned,omitempty"` +} + +// UpdateTeamReviewAssignmentInput is an autogenerated input type of UpdateTeamReviewAssignment. +type UpdateTeamReviewAssignmentInput struct { + // The Node ID of the team to update review assignments of. (Required.) + ID ID `json:"id"` + // Turn on or off review assignment. (Required.) + Enabled Boolean `json:"enabled"` + // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // The algorithm to use for review assignment. (Optional.) + Algorithm *TeamReviewAssignmentAlgorithm `json:"algorithm,omitempty"` + // The number of team members to assign. (Optional.) + TeamMemberCount *Int `json:"teamMemberCount,omitempty"` + // Notify the entire team of the PR if it is delegated. (Optional.) + NotifyTeam *Boolean `json:"notifyTeam,omitempty"` + // Remove the team review request when assigning. (Optional.) + RemoveTeamRequest *Boolean `json:"removeTeamRequest,omitempty"` + // Include the members of any child teams when assigning. (Optional.) + IncludeChildTeamMembers *Boolean `json:"includeChildTeamMembers,omitempty"` + // Count any members whose review has already been requested against the required number of members assigned to review. (Optional.) + CountMembersAlreadyRequested *Boolean `json:"countMembersAlreadyRequested,omitempty"` + // An array of team member IDs to exclude. (Optional.) + ExcludedTeamMemberIDs *[]ID `json:"excludedTeamMemberIds,omitempty"` } // UpdateTeamsRepositoryInput is an autogenerated input type of UpdateTeamsRepository. @@ -3267,6 +4240,34 @@ type UpdateTopicsInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UpdateUserListInput is an autogenerated input type of UpdateUserList. +type UpdateUserListInput struct { + // The ID of the list to update. (Required.) + ListID ID `json:"listId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The name of the list. (Optional.) + Name *String `json:"name,omitempty"` + // A description of the list. (Optional.) + Description *String `json:"description,omitempty"` + // Whether or not the list is private. (Optional.) + IsPrivate *Boolean `json:"isPrivate,omitempty"` +} + +// UpdateUserListsForItemInput is an autogenerated input type of UpdateUserListsForItem. +type UpdateUserListsForItemInput struct { + // The item to add to the list. (Required.) + ItemID ID `json:"itemId"` + // The lists to which this item should belong. (Required.) + ListIDs []ID `json:"listIds"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The suggested lists to create and add this item to. (Optional.) + SuggestedListIDs *[]ID `json:"suggestedListIds,omitempty"` +} + // UserStatusOrder represents ordering options for user status connections. type UserStatusOrder struct { // The field to order user statuses by. (Required.) @@ -3292,6 +4293,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.) @@ -3299,3 +4313,12 @@ 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"` + + // Allow repositories and branches to be created if a check would otherwise prohibit it. (Optional.) + DoNotEnforceOnCreate *Boolean `json:"doNotEnforceOnCreate,omitempty"` +} diff --git a/vendor/github.com/shurcooL/githubv4/scalar.go b/vendor/github.com/shurcooL/githubv4/scalar.go index c91574c93..ac67111c7 100644 --- a/vendor/github.com/shurcooL/githubv4/scalar.go +++ b/vendor/github.com/shurcooL/githubv4/scalar.go @@ -40,6 +40,9 @@ type ( // "912ec1990bd09f8fc128c3fa6b59105085aabc03". GitObjectID string + // GitRefname is a fully qualified reference name (e.g., refs/heads/main). + GitRefname string + // GitTimestamp is an ISO-8601 encoded date. // Unlike the DateTime type, GitTimestamp is not converted in UTC. GitTimestamp struct{ time.Time } @@ -123,6 +126,9 @@ func NewFloat(v Float) *Float { return &v } // NewGitObjectID is a helper to make a new *GitObjectID. func NewGitObjectID(v GitObjectID) *GitObjectID { return &v } +// NewGitRefname is a helper to make a new *GitRefname. +func NewGitRefname(v GitRefname) *GitRefname { return &v } + // NewGitTimestamp is a helper to make a new *GitTimestamp. func NewGitTimestamp(v GitTimestamp) *GitTimestamp { return &v } diff --git a/vendor/modules.txt b/vendor/modules.txt index 6822c1511..9333b1ce5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -848,8 +848,8 @@ github.com/securego/gosec/v2/rules # github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c ## explicit github.com/shazow/go-diff/difflib -# github.com/shurcooL/githubv4 v0.0.0-20221126192849-0b5c4c7994eb -## explicit +# github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7 +## explicit; go 1.19 github.com/shurcooL/githubv4 # github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 ## explicit