diff --git a/enum.go b/enum.go index 2cc380b..179cebf 100644 --- a/enum.go +++ b/enum.go @@ -332,6 +332,7 @@ type EnterpriseAdministratorRole string const ( EnterpriseAdministratorRoleOwner EnterpriseAdministratorRole = "OWNER" // Represents an owner of the enterprise account. EnterpriseAdministratorRoleBillingManager EnterpriseAdministratorRole = "BILLING_MANAGER" // Represents a billing manager of the enterprise account. + EnterpriseAdministratorRoleUnaffiliated EnterpriseAdministratorRole = "UNAFFILIATED" // Unaffiliated member of the enterprise account without an admin role. ) // EnterpriseAllowPrivateRepositoryForkingPolicyValue represents the possible values for the enterprise allow private repository forking policy value. @@ -359,6 +360,15 @@ const ( EnterpriseDefaultRepositoryPermissionSettingValueNone EnterpriseDefaultRepositoryPermissionSettingValue = "NONE" // Organization members will only be able to clone and pull public repositories. ) +// EnterpriseDisallowedMethodsSettingValue represents the possible values for an enabled/no policy enterprise setting. +type EnterpriseDisallowedMethodsSettingValue string + +// The possible values for an enabled/no policy enterprise setting. +const ( + EnterpriseDisallowedMethodsSettingValueInsecure EnterpriseDisallowedMethodsSettingValue = "INSECURE" // The setting prevents insecure 2FA methods from being used by members of the enterprise. + EnterpriseDisallowedMethodsSettingValueNoPolicy EnterpriseDisallowedMethodsSettingValue = "NO_POLICY" // There is no policy set for preventing insecure 2FA methods from being used by members of the enterprise. +) + // EnterpriseEnabledDisabledSettingValue represents the possible values for an enabled/disabled enterprise setting. type EnterpriseEnabledDisabledSettingValue string @@ -543,6 +553,7 @@ const ( 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. + FundingPlatformThanksDev FundingPlatform = "THANKS_DEV" // thanks.dev funding platform. FundingPlatformCustom FundingPlatform = "CUSTOM" // Custom funding platform. ) @@ -634,6 +645,7 @@ type IssueClosedStateReason string const ( IssueClosedStateReasonCompleted IssueClosedStateReason = "COMPLETED" // An issue that has been closed as completed. IssueClosedStateReasonNotPlanned IssueClosedStateReason = "NOT_PLANNED" // An issue that has been closed as not planned. + IssueClosedStateReasonDuplicate IssueClosedStateReason = "DUPLICATE" // An issue that has been closed as a duplicate. ) // IssueCommentOrderField represents properties by which issue comment connections can be ordered. @@ -644,6 +656,15 @@ const ( IssueCommentOrderFieldUpdatedAt IssueCommentOrderField = "UPDATED_AT" // Order issue comments by update time. ) +// IssueDependencyOrderField represents properties by which issue dependencies can be ordered. +type IssueDependencyOrderField string + +// Properties by which issue dependencies can be ordered. +const ( + IssueDependencyOrderFieldDependencyAddedAt IssueDependencyOrderField = "DEPENDENCY_ADDED_AT" // Order issue dependencies by time of when the dependency relationship was added. + IssueDependencyOrderFieldCreatedAt IssueDependencyOrderField = "CREATED_AT" // Order issue dependencies by the creation time of the dependent issue. +) + // IssueOrderField represents properties by which issue connections can be ordered. type IssueOrderField string @@ -671,6 +692,7 @@ const ( IssueStateReasonReopened IssueStateReason = "REOPENED" // An issue that has been reopened. IssueStateReasonNotPlanned IssueStateReason = "NOT_PLANNED" // An issue that has been closed as not planned. IssueStateReasonCompleted IssueStateReason = "COMPLETED" // An issue that has been closed as completed. + IssueStateReasonDuplicate IssueStateReason = "DUPLICATE" // An issue that has been closed as a duplicate. ) // IssueTimelineItemsItemType represents the possible item types found in a timeline. @@ -678,37 +700,76 @@ type IssueTimelineItemsItemType string // The possible item types found in a timeline. const ( - IssueTimelineItemsItemTypeIssueComment IssueTimelineItemsItemType = "ISSUE_COMMENT" // Represents a comment on an Issue. - IssueTimelineItemsItemTypeCrossReferencedEvent IssueTimelineItemsItemType = "CROSS_REFERENCED_EVENT" // Represents a mention made by one issue or pull request to another. - IssueTimelineItemsItemTypeAddedToProjectEvent IssueTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" // Represents a 'added_to_project' event on a given issue or pull request. - IssueTimelineItemsItemTypeAssignedEvent IssueTimelineItemsItemType = "ASSIGNED_EVENT" // Represents an 'assigned' event on any assignable object. - IssueTimelineItemsItemTypeClosedEvent IssueTimelineItemsItemType = "CLOSED_EVENT" // Represents a 'closed' event on any `Closable`. - IssueTimelineItemsItemTypeCommentDeletedEvent IssueTimelineItemsItemType = "COMMENT_DELETED_EVENT" // Represents a 'comment_deleted' event on a given issue or pull request. - IssueTimelineItemsItemTypeConnectedEvent IssueTimelineItemsItemType = "CONNECTED_EVENT" // Represents a 'connected' event on a given issue or pull request. - IssueTimelineItemsItemTypeConvertedNoteToIssueEvent IssueTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" // Represents a 'converted_note_to_issue' event on a given issue or pull request. - IssueTimelineItemsItemTypeConvertedToDiscussionEvent IssueTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" // Represents a 'converted_to_discussion' event on a given issue. - IssueTimelineItemsItemTypeDemilestonedEvent IssueTimelineItemsItemType = "DEMILESTONED_EVENT" // Represents a 'demilestoned' event on a given issue or pull request. - IssueTimelineItemsItemTypeDisconnectedEvent IssueTimelineItemsItemType = "DISCONNECTED_EVENT" // Represents a 'disconnected' event on a given issue or pull request. - IssueTimelineItemsItemTypeLabeledEvent IssueTimelineItemsItemType = "LABELED_EVENT" // Represents a 'labeled' event on a given issue or pull request. - IssueTimelineItemsItemTypeLockedEvent IssueTimelineItemsItemType = "LOCKED_EVENT" // Represents a 'locked' event on a given issue or pull request. - IssueTimelineItemsItemTypeMarkedAsDuplicateEvent IssueTimelineItemsItemType = "MARKED_AS_DUPLICATE_EVENT" // Represents a 'marked_as_duplicate' event on a given issue or pull request. - IssueTimelineItemsItemTypeMentionedEvent IssueTimelineItemsItemType = "MENTIONED_EVENT" // Represents a 'mentioned' event on a given issue or pull request. - IssueTimelineItemsItemTypeMilestonedEvent IssueTimelineItemsItemType = "MILESTONED_EVENT" // Represents a 'milestoned' event on a given issue or pull request. - IssueTimelineItemsItemTypeMovedColumnsInProjectEvent IssueTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" // Represents a 'moved_columns_in_project' event on a given issue or pull request. - IssueTimelineItemsItemTypePinnedEvent IssueTimelineItemsItemType = "PINNED_EVENT" // Represents a 'pinned' event on a given issue or pull request. - IssueTimelineItemsItemTypeReferencedEvent IssueTimelineItemsItemType = "REFERENCED_EVENT" // Represents a 'referenced' event on a given `ReferencedSubject`. - IssueTimelineItemsItemTypeRemovedFromProjectEvent IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" // Represents a 'removed_from_project' event on a given issue or pull request. - IssueTimelineItemsItemTypeRenamedTitleEvent IssueTimelineItemsItemType = "RENAMED_TITLE_EVENT" // Represents a 'renamed' event on a given issue or pull request. - IssueTimelineItemsItemTypeReopenedEvent IssueTimelineItemsItemType = "REOPENED_EVENT" // Represents a 'reopened' event on any `Closable`. - IssueTimelineItemsItemTypeSubscribedEvent IssueTimelineItemsItemType = "SUBSCRIBED_EVENT" // Represents a 'subscribed' event on a given `Subscribable`. - IssueTimelineItemsItemTypeTransferredEvent IssueTimelineItemsItemType = "TRANSFERRED_EVENT" // Represents a 'transferred' event on a given issue or pull request. - IssueTimelineItemsItemTypeUnassignedEvent IssueTimelineItemsItemType = "UNASSIGNED_EVENT" // Represents an 'unassigned' event on any assignable object. - IssueTimelineItemsItemTypeUnlabeledEvent IssueTimelineItemsItemType = "UNLABELED_EVENT" // Represents an 'unlabeled' event on a given issue or pull request. - IssueTimelineItemsItemTypeUnlockedEvent IssueTimelineItemsItemType = "UNLOCKED_EVENT" // Represents an 'unlocked' event on a given issue or pull request. - IssueTimelineItemsItemTypeUserBlockedEvent IssueTimelineItemsItemType = "USER_BLOCKED_EVENT" // Represents a 'user_blocked' event on a given user. - IssueTimelineItemsItemTypeUnmarkedAsDuplicateEvent IssueTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" // Represents an 'unmarked_as_duplicate' event on a given issue or pull request. - IssueTimelineItemsItemTypeUnpinnedEvent IssueTimelineItemsItemType = "UNPINNED_EVENT" // Represents an 'unpinned' event on a given issue or pull request. - IssueTimelineItemsItemTypeUnsubscribedEvent IssueTimelineItemsItemType = "UNSUBSCRIBED_EVENT" // Represents an 'unsubscribed' event on a given `Subscribable`. + IssueTimelineItemsItemTypeIssueComment IssueTimelineItemsItemType = "ISSUE_COMMENT" // Represents a comment on an Issue. + IssueTimelineItemsItemTypeCrossReferencedEvent IssueTimelineItemsItemType = "CROSS_REFERENCED_EVENT" // Represents a mention made by one issue or pull request to another. + IssueTimelineItemsItemTypeAddedToProjectEvent IssueTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" // Represents a 'added_to_project' event on a given issue or pull request. + IssueTimelineItemsItemTypeAddedToProjectV2Event IssueTimelineItemsItemType = "ADDED_TO_PROJECT_V2_EVENT" // Represents a 'added_to_project_v2' event on a given issue or pull request. + IssueTimelineItemsItemTypeAssignedEvent IssueTimelineItemsItemType = "ASSIGNED_EVENT" // Represents an 'assigned' event on any assignable object. + IssueTimelineItemsItemTypeClosedEvent IssueTimelineItemsItemType = "CLOSED_EVENT" // Represents a 'closed' event on any `Closable`. + IssueTimelineItemsItemTypeCommentDeletedEvent IssueTimelineItemsItemType = "COMMENT_DELETED_EVENT" // Represents a 'comment_deleted' event on a given issue or pull request. + IssueTimelineItemsItemTypeConnectedEvent IssueTimelineItemsItemType = "CONNECTED_EVENT" // Represents a 'connected' event on a given issue or pull request. + IssueTimelineItemsItemTypeConvertedFromDraftEvent IssueTimelineItemsItemType = "CONVERTED_FROM_DRAFT_EVENT" // Represents a 'converted_from_draft' event on a given issue or pull request. + IssueTimelineItemsItemTypeConvertedNoteToIssueEvent IssueTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" // Represents a 'converted_note_to_issue' event on a given issue or pull request. + IssueTimelineItemsItemTypeConvertedToDiscussionEvent IssueTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" // Represents a 'converted_to_discussion' event on a given issue. + IssueTimelineItemsItemTypeDemilestonedEvent IssueTimelineItemsItemType = "DEMILESTONED_EVENT" // Represents a 'demilestoned' event on a given issue or pull request. + IssueTimelineItemsItemTypeDisconnectedEvent IssueTimelineItemsItemType = "DISCONNECTED_EVENT" // Represents a 'disconnected' event on a given issue or pull request. + IssueTimelineItemsItemTypeLabeledEvent IssueTimelineItemsItemType = "LABELED_EVENT" // Represents a 'labeled' event on a given issue or pull request. + IssueTimelineItemsItemTypeLockedEvent IssueTimelineItemsItemType = "LOCKED_EVENT" // Represents a 'locked' event on a given issue or pull request. + IssueTimelineItemsItemTypeMarkedAsDuplicateEvent IssueTimelineItemsItemType = "MARKED_AS_DUPLICATE_EVENT" // Represents a 'marked_as_duplicate' event on a given issue or pull request. + IssueTimelineItemsItemTypeMentionedEvent IssueTimelineItemsItemType = "MENTIONED_EVENT" // Represents a 'mentioned' event on a given issue or pull request. + IssueTimelineItemsItemTypeMilestonedEvent IssueTimelineItemsItemType = "MILESTONED_EVENT" // Represents a 'milestoned' event on a given issue or pull request. + IssueTimelineItemsItemTypeMovedColumnsInProjectEvent IssueTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" // Represents a 'moved_columns_in_project' event on a given issue or pull request. + IssueTimelineItemsItemTypePinnedEvent IssueTimelineItemsItemType = "PINNED_EVENT" // Represents a 'pinned' event on a given issue or pull request. + IssueTimelineItemsItemTypeProjectV2ItemStatusChangedEvent IssueTimelineItemsItemType = "PROJECT_V2_ITEM_STATUS_CHANGED_EVENT" // Represents a 'project_v2_item_status_changed' event on a given issue or pull request. + IssueTimelineItemsItemTypeReferencedEvent IssueTimelineItemsItemType = "REFERENCED_EVENT" // Represents a 'referenced' event on a given `ReferencedSubject`. + IssueTimelineItemsItemTypeRemovedFromProjectEvent IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" // Represents a 'removed_from_project' event on a given issue or pull request. + IssueTimelineItemsItemTypeRemovedFromProjectV2Event IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_V2_EVENT" // Represents a 'removed_from_project_v2' event on a given issue or pull request. + IssueTimelineItemsItemTypeRenamedTitleEvent IssueTimelineItemsItemType = "RENAMED_TITLE_EVENT" // Represents a 'renamed' event on a given issue or pull request. + IssueTimelineItemsItemTypeReopenedEvent IssueTimelineItemsItemType = "REOPENED_EVENT" // Represents a 'reopened' event on any `Closable`. + IssueTimelineItemsItemTypeSubscribedEvent IssueTimelineItemsItemType = "SUBSCRIBED_EVENT" // Represents a 'subscribed' event on a given `Subscribable`. + IssueTimelineItemsItemTypeTransferredEvent IssueTimelineItemsItemType = "TRANSFERRED_EVENT" // Represents a 'transferred' event on a given issue or pull request. + IssueTimelineItemsItemTypeUnassignedEvent IssueTimelineItemsItemType = "UNASSIGNED_EVENT" // Represents an 'unassigned' event on any assignable object. + IssueTimelineItemsItemTypeUnlabeledEvent IssueTimelineItemsItemType = "UNLABELED_EVENT" // Represents an 'unlabeled' event on a given issue or pull request. + IssueTimelineItemsItemTypeUnlockedEvent IssueTimelineItemsItemType = "UNLOCKED_EVENT" // Represents an 'unlocked' event on a given issue or pull request. + IssueTimelineItemsItemTypeUserBlockedEvent IssueTimelineItemsItemType = "USER_BLOCKED_EVENT" // Represents a 'user_blocked' event on a given user. + IssueTimelineItemsItemTypeUnmarkedAsDuplicateEvent IssueTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" // Represents an 'unmarked_as_duplicate' event on a given issue or pull request. + IssueTimelineItemsItemTypeUnpinnedEvent IssueTimelineItemsItemType = "UNPINNED_EVENT" // Represents an 'unpinned' event on a given issue or pull request. + IssueTimelineItemsItemTypeUnsubscribedEvent IssueTimelineItemsItemType = "UNSUBSCRIBED_EVENT" // Represents an 'unsubscribed' event on a given `Subscribable`. + IssueTimelineItemsItemTypeIssueTypeAddedEvent IssueTimelineItemsItemType = "ISSUE_TYPE_ADDED_EVENT" // Represents a 'issue_type_added' event on a given issue. + IssueTimelineItemsItemTypeIssueTypeRemovedEvent IssueTimelineItemsItemType = "ISSUE_TYPE_REMOVED_EVENT" // Represents a 'issue_type_removed' event on a given issue. + IssueTimelineItemsItemTypeIssueTypeChangedEvent IssueTimelineItemsItemType = "ISSUE_TYPE_CHANGED_EVENT" // Represents a 'issue_type_changed' event on a given issue. + IssueTimelineItemsItemTypeSubIssueAddedEvent IssueTimelineItemsItemType = "SUB_ISSUE_ADDED_EVENT" // Represents a 'sub_issue_added' event on a given issue. + IssueTimelineItemsItemTypeSubIssueRemovedEvent IssueTimelineItemsItemType = "SUB_ISSUE_REMOVED_EVENT" // Represents a 'sub_issue_removed' event on a given issue. + IssueTimelineItemsItemTypeParentIssueAddedEvent IssueTimelineItemsItemType = "PARENT_ISSUE_ADDED_EVENT" // Represents a 'parent_issue_added' event on a given issue. + IssueTimelineItemsItemTypeParentIssueRemovedEvent IssueTimelineItemsItemType = "PARENT_ISSUE_REMOVED_EVENT" // Represents a 'parent_issue_removed' event on a given issue. + IssueTimelineItemsItemTypeBlockedByAddedEvent IssueTimelineItemsItemType = "BLOCKED_BY_ADDED_EVENT" // Represents a 'blocked_by_added' event on a given issue. + IssueTimelineItemsItemTypeBlockingAddedEvent IssueTimelineItemsItemType = "BLOCKING_ADDED_EVENT" // Represents a 'blocking_added' event on a given issue. + IssueTimelineItemsItemTypeBlockedByRemovedEvent IssueTimelineItemsItemType = "BLOCKED_BY_REMOVED_EVENT" // Represents a 'blocked_by_removed' event on a given issue. + IssueTimelineItemsItemTypeBlockingRemovedEvent IssueTimelineItemsItemType = "BLOCKING_REMOVED_EVENT" // Represents a 'blocking_removed' event on a given issue. +) + +// IssueTypeColor represents the possible color for an issue type. +type IssueTypeColor string + +// The possible color for an issue type. +const ( + IssueTypeColorGray IssueTypeColor = "GRAY" // gray. + IssueTypeColorBlue IssueTypeColor = "BLUE" // blue. + IssueTypeColorGreen IssueTypeColor = "GREEN" // green. + IssueTypeColorYellow IssueTypeColor = "YELLOW" // yellow. + IssueTypeColorOrange IssueTypeColor = "ORANGE" // orange. + IssueTypeColorRed IssueTypeColor = "RED" // red. + IssueTypeColorPink IssueTypeColor = "PINK" // pink. + IssueTypeColorPurple IssueTypeColor = "PURPLE" // purple. +) + +// IssueTypeOrderField represents properties by which issue type connections can be ordered. +type IssueTypeOrderField string + +// Properties by which issue type connections can be ordered. +const ( + IssueTypeOrderFieldCreatedAt IssueTypeOrderField = "CREATED_AT" // Order issue types by creation time. + IssueTypeOrderFieldName IssueTypeOrderField = "NAME" // Order issue types by name. ) // LabelOrderField represents properties by which label connections can be ordered. @@ -716,8 +777,9 @@ type LabelOrderField string // Properties by which label connections can be ordered. const ( - LabelOrderFieldName LabelOrderField = "NAME" // Order labels by name. - LabelOrderFieldCreatedAt LabelOrderField = "CREATED_AT" // Order labels by creation time. + LabelOrderFieldName LabelOrderField = "NAME" // Order labels by name. + LabelOrderFieldCreatedAt LabelOrderField = "CREATED_AT" // Order labels by creation time. + LabelOrderFieldIssueCount LabelOrderField = "ISSUE_COUNT" // Order labels by issue count. ) // LanguageOrderField represents properties by which language connections can be ordered. @@ -1287,6 +1349,7 @@ const ( ProjectV2CustomFieldTypeSingleSelect ProjectV2CustomFieldType = "SINGLE_SELECT" // Single Select. ProjectV2CustomFieldTypeNumber ProjectV2CustomFieldType = "NUMBER" // Number. ProjectV2CustomFieldTypeDate ProjectV2CustomFieldType = "DATE" // Date. + ProjectV2CustomFieldTypeIteration ProjectV2CustomFieldType = "ITERATION" // Iteration. ) // ProjectV2FieldOrderField represents properties by which project v2 field connections can be ordered. @@ -1318,6 +1381,9 @@ const ( ProjectV2FieldTypeIteration ProjectV2FieldType = "ITERATION" // Iteration. ProjectV2FieldTypeTracks ProjectV2FieldType = "TRACKS" // Tracks. ProjectV2FieldTypeTrackedBy ProjectV2FieldType = "TRACKED_BY" // Tracked by. + ProjectV2FieldTypeIssueType ProjectV2FieldType = "ISSUE_TYPE" // Issue type. + ProjectV2FieldTypeParentIssue ProjectV2FieldType = "PARENT_ISSUE" // Parent issue. + ProjectV2FieldTypeSubIssuesProgress ProjectV2FieldType = "SUB_ISSUES_PROGRESS" // Sub-issues progress. ) // ProjectV2ItemFieldValueOrderField represents properties by which project v2 item field value connections can be ordered. @@ -1454,6 +1520,16 @@ const ( ProjectV2WorkflowsOrderFieldCreatedAt ProjectV2WorkflowsOrderField = "CREATED_AT" // The date and time of the workflow creation. ) +// PullRequestAllowedMergeMethods represents array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. +type PullRequestAllowedMergeMethods string + +// Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. +const ( + PullRequestAllowedMergeMethodsMerge PullRequestAllowedMergeMethods = "MERGE" // Add all commits from the head branch to the base branch with a merge commit. + PullRequestAllowedMergeMethodsSquash PullRequestAllowedMergeMethods = "SQUASH" // Combine all commits from the head branch into a single commit in the base branch. + PullRequestAllowedMergeMethodsRebase PullRequestAllowedMergeMethods = "REBASE" // Add all commits from the head branch onto the base branch individually. +) + // PullRequestBranchUpdateMethod represents the possible methods for updating a pull request's head branch with the base branch. type PullRequestBranchUpdateMethod string @@ -1553,6 +1629,7 @@ const ( PullRequestTimelineItemsItemTypePullRequestReview PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW" // A review object for a given pull request. PullRequestTimelineItemsItemTypePullRequestReviewThread PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW_THREAD" // A threaded list of comments for a given pull request. PullRequestTimelineItemsItemTypePullRequestRevisionMarker PullRequestTimelineItemsItemType = "PULL_REQUEST_REVISION_MARKER" // Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. + PullRequestTimelineItemsItemTypeAddedToMergeQueueEvent PullRequestTimelineItemsItemType = "ADDED_TO_MERGE_QUEUE_EVENT" // Represents an 'added_to_merge_queue' event on a given pull request. PullRequestTimelineItemsItemTypeAutomaticBaseChangeFailedEvent PullRequestTimelineItemsItemType = "AUTOMATIC_BASE_CHANGE_FAILED_EVENT" // Represents a 'automatic_base_change_failed' event on a given pull request. PullRequestTimelineItemsItemTypeAutomaticBaseChangeSucceededEvent PullRequestTimelineItemsItemType = "AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT" // Represents a 'automatic_base_change_succeeded' event on a given pull request. PullRequestTimelineItemsItemTypeAutoMergeDisabledEvent PullRequestTimelineItemsItemType = "AUTO_MERGE_DISABLED_EVENT" // Represents a 'auto_merge_disabled' event on a given pull request. @@ -1562,26 +1639,27 @@ const ( PullRequestTimelineItemsItemTypeBaseRefChangedEvent PullRequestTimelineItemsItemType = "BASE_REF_CHANGED_EVENT" // Represents a 'base_ref_changed' event on a given issue or pull request. PullRequestTimelineItemsItemTypeBaseRefForcePushedEvent PullRequestTimelineItemsItemType = "BASE_REF_FORCE_PUSHED_EVENT" // Represents a 'base_ref_force_pushed' event on a given pull request. PullRequestTimelineItemsItemTypeBaseRefDeletedEvent PullRequestTimelineItemsItemType = "BASE_REF_DELETED_EVENT" // Represents a 'base_ref_deleted' event on a given pull request. + PullRequestTimelineItemsItemTypeConvertToDraftEvent PullRequestTimelineItemsItemType = "CONVERT_TO_DRAFT_EVENT" // Represents a 'convert_to_draft' event on a given pull request. PullRequestTimelineItemsItemTypeDeployedEvent PullRequestTimelineItemsItemType = "DEPLOYED_EVENT" // Represents a 'deployed' event on a given pull request. PullRequestTimelineItemsItemTypeDeploymentEnvironmentChangedEvent PullRequestTimelineItemsItemType = "DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT" // Represents a 'deployment_environment_changed' event on a given pull request. PullRequestTimelineItemsItemTypeHeadRefDeletedEvent PullRequestTimelineItemsItemType = "HEAD_REF_DELETED_EVENT" // Represents a 'head_ref_deleted' event on a given pull request. PullRequestTimelineItemsItemTypeHeadRefForcePushedEvent PullRequestTimelineItemsItemType = "HEAD_REF_FORCE_PUSHED_EVENT" // Represents a 'head_ref_force_pushed' event on a given pull request. PullRequestTimelineItemsItemTypeHeadRefRestoredEvent PullRequestTimelineItemsItemType = "HEAD_REF_RESTORED_EVENT" // Represents a 'head_ref_restored' event on a given pull request. PullRequestTimelineItemsItemTypeMergedEvent PullRequestTimelineItemsItemType = "MERGED_EVENT" // Represents a 'merged' event on a given pull request. + PullRequestTimelineItemsItemTypeReadyForReviewEvent PullRequestTimelineItemsItemType = "READY_FOR_REVIEW_EVENT" // Represents a 'ready_for_review' event on a given pull request. + PullRequestTimelineItemsItemTypeRemovedFromMergeQueueEvent PullRequestTimelineItemsItemType = "REMOVED_FROM_MERGE_QUEUE_EVENT" // Represents a 'removed_from_merge_queue' event on a given pull request. PullRequestTimelineItemsItemTypeReviewDismissedEvent PullRequestTimelineItemsItemType = "REVIEW_DISMISSED_EVENT" // Represents a 'review_dismissed' event on a given issue or pull request. PullRequestTimelineItemsItemTypeReviewRequestedEvent PullRequestTimelineItemsItemType = "REVIEW_REQUESTED_EVENT" // Represents an 'review_requested' event on a given pull request. PullRequestTimelineItemsItemTypeReviewRequestRemovedEvent PullRequestTimelineItemsItemType = "REVIEW_REQUEST_REMOVED_EVENT" // Represents an 'review_request_removed' event on a given pull request. - PullRequestTimelineItemsItemTypeReadyForReviewEvent PullRequestTimelineItemsItemType = "READY_FOR_REVIEW_EVENT" // Represents a 'ready_for_review' event on a given pull request. - PullRequestTimelineItemsItemTypeConvertToDraftEvent PullRequestTimelineItemsItemType = "CONVERT_TO_DRAFT_EVENT" // Represents a 'convert_to_draft' event on a given pull request. - PullRequestTimelineItemsItemTypeAddedToMergeQueueEvent PullRequestTimelineItemsItemType = "ADDED_TO_MERGE_QUEUE_EVENT" // Represents an 'added_to_merge_queue' event on a given pull request. - PullRequestTimelineItemsItemTypeRemovedFromMergeQueueEvent PullRequestTimelineItemsItemType = "REMOVED_FROM_MERGE_QUEUE_EVENT" // Represents a 'removed_from_merge_queue' event on a given pull request. PullRequestTimelineItemsItemTypeIssueComment PullRequestTimelineItemsItemType = "ISSUE_COMMENT" // Represents a comment on an Issue. PullRequestTimelineItemsItemTypeCrossReferencedEvent PullRequestTimelineItemsItemType = "CROSS_REFERENCED_EVENT" // Represents a mention made by one issue or pull request to another. PullRequestTimelineItemsItemTypeAddedToProjectEvent PullRequestTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT" // Represents a 'added_to_project' event on a given issue or pull request. + PullRequestTimelineItemsItemTypeAddedToProjectV2Event PullRequestTimelineItemsItemType = "ADDED_TO_PROJECT_V2_EVENT" // Represents a 'added_to_project_v2' event on a given issue or pull request. PullRequestTimelineItemsItemTypeAssignedEvent PullRequestTimelineItemsItemType = "ASSIGNED_EVENT" // Represents an 'assigned' event on any assignable object. PullRequestTimelineItemsItemTypeClosedEvent PullRequestTimelineItemsItemType = "CLOSED_EVENT" // Represents a 'closed' event on any `Closable`. PullRequestTimelineItemsItemTypeCommentDeletedEvent PullRequestTimelineItemsItemType = "COMMENT_DELETED_EVENT" // Represents a 'comment_deleted' event on a given issue or pull request. PullRequestTimelineItemsItemTypeConnectedEvent PullRequestTimelineItemsItemType = "CONNECTED_EVENT" // Represents a 'connected' event on a given issue or pull request. + PullRequestTimelineItemsItemTypeConvertedFromDraftEvent PullRequestTimelineItemsItemType = "CONVERTED_FROM_DRAFT_EVENT" // Represents a 'converted_from_draft' event on a given issue or pull request. PullRequestTimelineItemsItemTypeConvertedNoteToIssueEvent PullRequestTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT" // Represents a 'converted_note_to_issue' event on a given issue or pull request. PullRequestTimelineItemsItemTypeConvertedToDiscussionEvent PullRequestTimelineItemsItemType = "CONVERTED_TO_DISCUSSION_EVENT" // Represents a 'converted_to_discussion' event on a given issue. PullRequestTimelineItemsItemTypeDemilestonedEvent PullRequestTimelineItemsItemType = "DEMILESTONED_EVENT" // Represents a 'demilestoned' event on a given issue or pull request. @@ -1593,8 +1671,10 @@ const ( PullRequestTimelineItemsItemTypeMilestonedEvent PullRequestTimelineItemsItemType = "MILESTONED_EVENT" // Represents a 'milestoned' event on a given issue or pull request. PullRequestTimelineItemsItemTypeMovedColumnsInProjectEvent PullRequestTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" // Represents a 'moved_columns_in_project' event on a given issue or pull request. PullRequestTimelineItemsItemTypePinnedEvent PullRequestTimelineItemsItemType = "PINNED_EVENT" // Represents a 'pinned' event on a given issue or pull request. + PullRequestTimelineItemsItemTypeProjectV2ItemStatusChangedEvent PullRequestTimelineItemsItemType = "PROJECT_V2_ITEM_STATUS_CHANGED_EVENT" // Represents a 'project_v2_item_status_changed' event on a given issue or pull request. PullRequestTimelineItemsItemTypeReferencedEvent PullRequestTimelineItemsItemType = "REFERENCED_EVENT" // Represents a 'referenced' event on a given `ReferencedSubject`. PullRequestTimelineItemsItemTypeRemovedFromProjectEvent PullRequestTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT" // Represents a 'removed_from_project' event on a given issue or pull request. + PullRequestTimelineItemsItemTypeRemovedFromProjectV2Event PullRequestTimelineItemsItemType = "REMOVED_FROM_PROJECT_V2_EVENT" // Represents a 'removed_from_project_v2' event on a given issue or pull request. PullRequestTimelineItemsItemTypeRenamedTitleEvent PullRequestTimelineItemsItemType = "RENAMED_TITLE_EVENT" // Represents a 'renamed' event on a given issue or pull request. PullRequestTimelineItemsItemTypeReopenedEvent PullRequestTimelineItemsItemType = "REOPENED_EVENT" // Represents a 'reopened' event on any `Closable`. PullRequestTimelineItemsItemTypeSubscribedEvent PullRequestTimelineItemsItemType = "SUBSCRIBED_EVENT" // Represents a 'subscribed' event on a given `Subscribable`. @@ -1606,6 +1686,17 @@ const ( PullRequestTimelineItemsItemTypeUnmarkedAsDuplicateEvent PullRequestTimelineItemsItemType = "UNMARKED_AS_DUPLICATE_EVENT" // Represents an 'unmarked_as_duplicate' event on a given issue or pull request. PullRequestTimelineItemsItemTypeUnpinnedEvent PullRequestTimelineItemsItemType = "UNPINNED_EVENT" // Represents an 'unpinned' event on a given issue or pull request. PullRequestTimelineItemsItemTypeUnsubscribedEvent PullRequestTimelineItemsItemType = "UNSUBSCRIBED_EVENT" // Represents an 'unsubscribed' event on a given `Subscribable`. + PullRequestTimelineItemsItemTypeIssueTypeAddedEvent PullRequestTimelineItemsItemType = "ISSUE_TYPE_ADDED_EVENT" // Represents a 'issue_type_added' event on a given issue. + PullRequestTimelineItemsItemTypeIssueTypeRemovedEvent PullRequestTimelineItemsItemType = "ISSUE_TYPE_REMOVED_EVENT" // Represents a 'issue_type_removed' event on a given issue. + PullRequestTimelineItemsItemTypeIssueTypeChangedEvent PullRequestTimelineItemsItemType = "ISSUE_TYPE_CHANGED_EVENT" // Represents a 'issue_type_changed' event on a given issue. + PullRequestTimelineItemsItemTypeSubIssueAddedEvent PullRequestTimelineItemsItemType = "SUB_ISSUE_ADDED_EVENT" // Represents a 'sub_issue_added' event on a given issue. + PullRequestTimelineItemsItemTypeSubIssueRemovedEvent PullRequestTimelineItemsItemType = "SUB_ISSUE_REMOVED_EVENT" // Represents a 'sub_issue_removed' event on a given issue. + PullRequestTimelineItemsItemTypeParentIssueAddedEvent PullRequestTimelineItemsItemType = "PARENT_ISSUE_ADDED_EVENT" // Represents a 'parent_issue_added' event on a given issue. + PullRequestTimelineItemsItemTypeParentIssueRemovedEvent PullRequestTimelineItemsItemType = "PARENT_ISSUE_REMOVED_EVENT" // Represents a 'parent_issue_removed' event on a given issue. + PullRequestTimelineItemsItemTypeBlockedByAddedEvent PullRequestTimelineItemsItemType = "BLOCKED_BY_ADDED_EVENT" // Represents a 'blocked_by_added' event on a given issue. + PullRequestTimelineItemsItemTypeBlockingAddedEvent PullRequestTimelineItemsItemType = "BLOCKING_ADDED_EVENT" // Represents a 'blocking_added' event on a given issue. + PullRequestTimelineItemsItemTypeBlockedByRemovedEvent PullRequestTimelineItemsItemType = "BLOCKED_BY_REMOVED_EVENT" // Represents a 'blocked_by_removed' event on a given issue. + PullRequestTimelineItemsItemTypeBlockingRemovedEvent PullRequestTimelineItemsItemType = "BLOCKING_REMOVED_EVENT" // Represents a 'blocking_removed' event on a given issue. ) // PullRequestUpdateState represents the possible target states when updating a pull request. @@ -1663,7 +1754,7 @@ type RepoAccessAuditEntryVisibility string // The privacy of a repository. const ( - RepoAccessAuditEntryVisibilityInternal RepoAccessAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoAccessAuditEntryVisibilityInternal RepoAccessAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoAccessAuditEntryVisibilityPrivate RepoAccessAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoAccessAuditEntryVisibilityPublic RepoAccessAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1673,7 +1764,7 @@ type RepoAddMemberAuditEntryVisibility string // The privacy of a repository. const ( - RepoAddMemberAuditEntryVisibilityInternal RepoAddMemberAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoAddMemberAuditEntryVisibilityInternal RepoAddMemberAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoAddMemberAuditEntryVisibilityPrivate RepoAddMemberAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoAddMemberAuditEntryVisibilityPublic RepoAddMemberAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1683,7 +1774,7 @@ type RepoArchivedAuditEntryVisibility string // The privacy of a repository. const ( - RepoArchivedAuditEntryVisibilityInternal RepoArchivedAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoArchivedAuditEntryVisibilityInternal RepoArchivedAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoArchivedAuditEntryVisibilityPrivate RepoArchivedAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoArchivedAuditEntryVisibilityPublic RepoArchivedAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1703,7 +1794,7 @@ type RepoCreateAuditEntryVisibility string // The privacy of a repository. const ( - RepoCreateAuditEntryVisibilityInternal RepoCreateAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoCreateAuditEntryVisibilityInternal RepoCreateAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoCreateAuditEntryVisibilityPrivate RepoCreateAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoCreateAuditEntryVisibilityPublic RepoCreateAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1713,7 +1804,7 @@ type RepoDestroyAuditEntryVisibility string // The privacy of a repository. const ( - RepoDestroyAuditEntryVisibilityInternal RepoDestroyAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoDestroyAuditEntryVisibilityInternal RepoDestroyAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoDestroyAuditEntryVisibilityPrivate RepoDestroyAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoDestroyAuditEntryVisibilityPublic RepoDestroyAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1723,7 +1814,7 @@ type RepoRemoveMemberAuditEntryVisibility string // The privacy of a repository. const ( - RepoRemoveMemberAuditEntryVisibilityInternal RepoRemoveMemberAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepoRemoveMemberAuditEntryVisibilityInternal RepoRemoveMemberAuditEntryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. RepoRemoveMemberAuditEntryVisibilityPrivate RepoRemoveMemberAuditEntryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepoRemoveMemberAuditEntryVisibilityPublic RepoRemoveMemberAuditEntryVisibility = "PUBLIC" // The repository is visible to everyone. ) @@ -1904,14 +1995,15 @@ const ( 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. + RepositoryRuleTypeFilePathRestriction RepositoryRuleType = "FILE_PATH_RESTRICTION" // Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names. + RepositoryRuleTypeMaxFilePathLength RepositoryRuleType = "MAX_FILE_PATH_LENGTH" // Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. + RepositoryRuleTypeFileExtensionRestriction RepositoryRuleType = "FILE_EXTENSION_RESTRICTION" // Prevent commits that include files with specified file extensions from being pushed to the commit graph. + RepositoryRuleTypeMaxFileSize RepositoryRuleType = "MAX_FILE_SIZE" // Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph. 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. + RepositoryRuleTypeCopilotCodeReview RepositoryRuleType = "COPILOT_CODE_REVIEW" // Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. ) // RepositoryRulesetBypassActorBypassMode represents the bypass mode for a specific actor on a ruleset. @@ -1921,16 +2013,27 @@ type RepositoryRulesetBypassActorBypassMode string const ( RepositoryRulesetBypassActorBypassModeAlways RepositoryRulesetBypassActorBypassMode = "ALWAYS" // The actor can always bypass rules. RepositoryRulesetBypassActorBypassModePullRequest RepositoryRulesetBypassActorBypassMode = "PULL_REQUEST" // The actor can only bypass rules via a pull request. + RepositoryRulesetBypassActorBypassModeExempt RepositoryRulesetBypassActorBypassMode = "EXEMPT" // The actor is exempt from rules without generating a pass / fail result. ) -// RepositoryRulesetTarget represents the targets supported for rulesets. NOTE: The push target is in beta and subject to change. +// RepositoryRulesetTarget represents the targets supported for rulesets. type RepositoryRulesetTarget string -// The targets supported for rulesets. NOTE: The push target is in beta and subject to change. +// The targets supported for rulesets. const ( - RepositoryRulesetTargetBranch RepositoryRulesetTarget = "BRANCH" // Branch. - RepositoryRulesetTargetTag RepositoryRulesetTarget = "TAG" // Tag. - RepositoryRulesetTargetPush RepositoryRulesetTarget = "PUSH" // Push. + RepositoryRulesetTargetBranch RepositoryRulesetTarget = "BRANCH" // Branch. + RepositoryRulesetTargetTag RepositoryRulesetTarget = "TAG" // Tag. + RepositoryRulesetTargetPush RepositoryRulesetTarget = "PUSH" // Push. + RepositoryRulesetTargetRepository RepositoryRulesetTarget = "REPOSITORY" // repository. +) + +// RepositorySuggestedActorFilter represents the possible filters for suggested actors in a repository. +type RepositorySuggestedActorFilter string + +// The possible filters for suggested actors in a repository. +const ( + RepositorySuggestedActorFilterCanBeAssigned RepositorySuggestedActorFilter = "CAN_BE_ASSIGNED" // Actors that can be assigned to issues and pull requests. + RepositorySuggestedActorFilterCanBeAuthor RepositorySuggestedActorFilter = "CAN_BE_AUTHOR" // Actors that can be the author of issues and pull requests. ) // RepositoryVisibility represents the repository's visibility level. @@ -1940,7 +2043,18 @@ type RepositoryVisibility string const ( RepositoryVisibilityPrivate RepositoryVisibility = "PRIVATE" // The repository is visible only to those with explicit access. RepositoryVisibilityPublic RepositoryVisibility = "PUBLIC" // The repository is visible to everyone. - RepositoryVisibilityInternal RepositoryVisibility = "INTERNAL" // The repository is visible only to users in the same business. + RepositoryVisibilityInternal RepositoryVisibility = "INTERNAL" // The repository is visible only to users in the same enterprise. +) + +// RepositoryVulnerabilityAlertDependencyRelationship represents the possible relationships of an alert's dependency. +type RepositoryVulnerabilityAlertDependencyRelationship string + +// The possible relationships of an alert's dependency. +const ( + RepositoryVulnerabilityAlertDependencyRelationshipUnknown RepositoryVulnerabilityAlertDependencyRelationship = "UNKNOWN" // The relationship is unknown. + RepositoryVulnerabilityAlertDependencyRelationshipDirect RepositoryVulnerabilityAlertDependencyRelationship = "DIRECT" // A direct dependency of your project. + RepositoryVulnerabilityAlertDependencyRelationshipTransitive RepositoryVulnerabilityAlertDependencyRelationship = "TRANSITIVE" // A transitive dependency of your project. + RepositoryVulnerabilityAlertDependencyRelationshipInconclusive RepositoryVulnerabilityAlertDependencyRelationship = "INCONCLUSIVE" // The relationship could not be determined. ) // RepositoryVulnerabilityAlertDependencyScope represents the possible scopes of an alert's dependency. @@ -2030,10 +2144,11 @@ type SearchType string // Represents the individual results of a search. const ( - SearchTypeIssue SearchType = "ISSUE" // Returns results matching issues in repositories. - SearchTypeRepository SearchType = "REPOSITORY" // Returns results matching repositories. - SearchTypeUser SearchType = "USER" // Returns results matching users and organizations on GitHub. - SearchTypeDiscussion SearchType = "DISCUSSION" // Returns matching discussions in repositories. + SearchTypeIssue SearchType = "ISSUE" // Returns results matching issues in repositories. + SearchTypeIssueAdvanced SearchType = "ISSUE_ADVANCED" // Returns results matching issues in repositories. + SearchTypeRepository SearchType = "REPOSITORY" // Returns results matching repositories. + SearchTypeUser SearchType = "USER" // Returns results matching users and organizations on GitHub. + SearchTypeDiscussion SearchType = "DISCUSSION" // Returns matching discussions in repositories. ) // SecurityAdvisoryClassification represents classification of the advisory. @@ -2078,8 +2193,10 @@ type SecurityAdvisoryOrderField string // Properties by which security advisory connections can be ordered. const ( - SecurityAdvisoryOrderFieldPublishedAt SecurityAdvisoryOrderField = "PUBLISHED_AT" // Order advisories by publication time. - SecurityAdvisoryOrderFieldUpdatedAt SecurityAdvisoryOrderField = "UPDATED_AT" // Order advisories by update time. + SecurityAdvisoryOrderFieldPublishedAt SecurityAdvisoryOrderField = "PUBLISHED_AT" // Order advisories by publication time. + SecurityAdvisoryOrderFieldUpdatedAt SecurityAdvisoryOrderField = "UPDATED_AT" // Order advisories by update time. + SecurityAdvisoryOrderFieldEpssPercentage SecurityAdvisoryOrderField = "EPSS_PERCENTAGE" // Order advisories by EPSS percentage. + SecurityAdvisoryOrderFieldEpssPercentile SecurityAdvisoryOrderField = "EPSS_PERCENTILE" // Order advisories by EPSS percentile. ) // SecurityAdvisorySeverity represents severity of the vulnerability. @@ -2116,6 +2233,7 @@ const ( SocialAccountProviderTwitch SocialAccountProvider = "TWITCH" // Live-streaming service. SocialAccountProviderTwitter SocialAccountProvider = "TWITTER" // Microblogging website. SocialAccountProviderYouTube SocialAccountProvider = "YOUTUBE" // Online video platform. + SocialAccountProviderBluesky SocialAccountProvider = "BLUESKY" // Decentralized microblogging social platform. SocialAccountProviderNpm SocialAccountProvider = "NPM" // JavaScript package registry. ) @@ -2396,6 +2514,7 @@ const ( SponsorsCountryOrRegionCodeSZ SponsorsCountryOrRegionCode = "SZ" // Swaziland. SponsorsCountryOrRegionCodeSE SponsorsCountryOrRegionCode = "SE" // Sweden. SponsorsCountryOrRegionCodeCH SponsorsCountryOrRegionCode = "CH" // Switzerland. + SponsorsCountryOrRegionCodeSY SponsorsCountryOrRegionCode = "SY" // Syria. SponsorsCountryOrRegionCodeTW SponsorsCountryOrRegionCode = "TW" // Taiwan. SponsorsCountryOrRegionCodeTJ SponsorsCountryOrRegionCode = "TJ" // Tajikistan. SponsorsCountryOrRegionCodeTZ SponsorsCountryOrRegionCode = "TZ" // Tanzania. @@ -2688,6 +2807,16 @@ const ( TrackedIssueStatesClosed TrackedIssueStates = "CLOSED" // The tracked issue is closed. ) +// TwoFactorCredentialSecurityType represents filters by whether or not 2FA is enabled and if the method configured is considered secure or insecure. +type TwoFactorCredentialSecurityType string + +// Filters by whether or not 2FA is enabled and if the method configured is considered secure or insecure. +const ( + TwoFactorCredentialSecurityTypeSecure TwoFactorCredentialSecurityType = "SECURE" // Has only secure methods of two-factor authentication. + TwoFactorCredentialSecurityTypeInsecure TwoFactorCredentialSecurityType = "INSECURE" // Has an insecure method of two-factor authentication. GitHub currently defines this as SMS two-factor authentication. + TwoFactorCredentialSecurityTypeDisabled TwoFactorCredentialSecurityType = "DISABLED" // No method of two-factor authentication. +) + // UserBlockDuration represents the possible durations that a user can be blocked for. type UserBlockDuration string @@ -2708,6 +2837,15 @@ const ( UserStatusOrderFieldUpdatedAt UserStatusOrderField = "UPDATED_AT" // Order user statuses by when they were updated. ) +// UserViewType represents whether a user being viewed contains public or private information. +type UserViewType string + +// Whether a user being viewed contains public or private information. +const ( + UserViewTypePublic UserViewType = "PUBLIC" // A user that is publicly visible. + UserViewTypePrivate UserViewType = "PRIVATE" // A user containing information only visible to the authenticated user. +) + // VerifiableDomainOrderField represents properties by which verifiable domain connections can be ordered. type VerifiableDomainOrderField string diff --git a/go.mod b/go.mod index cecc058..02ac794 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,8 @@ module github.com/shurcooL/githubv4 go 1.19 + +require ( + github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 + golang.org/x/oauth2 v0.33.0 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fb1de97 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 h1:17JxqqJY66GmZVHkmAsGEkcIu0oCe3AM420QDgGwZx0= +github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466/go.mod h1:9dIRpgIY7hVhoqfe0/FcYp0bpInZaT7dc3BYOprrIUE= +golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo= +golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= diff --git a/input.go b/input.go index 3b99e70..46b99dc 100644 --- a/input.go +++ b/input.go @@ -4,7 +4,7 @@ package githubv4 // Input represents one of the Input structs: // -// 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. +// AbortQueuedMigrationsInput, AbortRepositoryMigrationInput, AcceptEnterpriseAdministratorInvitationInput, AcceptEnterpriseMemberInvitationInput, AcceptTopicSuggestionInput, AccessUserNamespaceRepositoryInput, AddAssigneesToAssignableInput, AddBlockedByInput, AddCommentInput, AddDiscussionCommentInput, AddDiscussionPollVoteInput, AddEnterpriseOrganizationMemberInput, AddEnterpriseSupportEntitlementInput, AddLabelsToLabelableInput, AddProjectCardInput, AddProjectColumnInput, AddProjectV2DraftIssueInput, AddProjectV2ItemByIdInput, AddPullRequestReviewCommentInput, AddPullRequestReviewInput, AddPullRequestReviewThreadInput, AddPullRequestReviewThreadReplyInput, AddReactionInput, AddStarInput, AddSubIssueInput, 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, CopilotCodeReviewParametersInput, CopyProjectV2Input, CreateAttributionInvitationInput, CreateBranchProtectionRuleInput, CreateCheckRunInput, CreateCheckSuiteInput, CreateCommitOnBranchInput, CreateDeploymentInput, CreateDeploymentStatusInput, CreateDiscussionInput, CreateEnterpriseOrganizationInput, CreateEnvironmentInput, CreateIpAllowListEntryInput, CreateIssueInput, CreateIssueTypeInput, 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, DeleteIssueTypeInput, 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, IssueDependencyOrder, IssueFilters, IssueOrder, IssueTypeOrder, LabelOrder, LanguageOrder, LinkProjectV2ToRepositoryInput, LinkProjectV2ToTeamInput, LinkRepositoryToProjectInput, LockLockableInput, MannequinOrder, MarkDiscussionCommentAsAnswerInput, MarkFileAsViewedInput, MarkProjectV2AsTemplateInput, MarkPullRequestReadyForReviewInput, MaxFilePathLengthParametersInput, MaxFileSizeParametersInput, MergeBranchInput, MergePullRequestInput, MergeQueueParametersInput, MilestoneOrder, MinimizeCommentInput, MoveProjectCardInput, MoveProjectColumnInput, OrgEnterpriseOwnerOrder, OrganizationOrder, OrganizationPropertyConditionTargetInput, OrganizationPropertyTargetDefinitionInput, PackageFileOrder, PackageOrder, PackageVersionOrder, PinEnvironmentInput, PinIssueInput, PinnedEnvironmentOrder, ProjectCardImport, ProjectColumnImport, ProjectOrder, ProjectV2Collaborator, ProjectV2FieldOrder, ProjectV2FieldValue, ProjectV2Filters, ProjectV2ItemFieldValueOrder, ProjectV2ItemOrder, ProjectV2Iteration, ProjectV2IterationFieldConfigurationInput, ProjectV2Order, ProjectV2SingleSelectFieldOptionInput, ProjectV2StatusOrder, ProjectV2ViewOrder, ProjectV2WorkflowOrder, PropertyTargetDefinitionInput, PublishSponsorsTierInput, PullRequestOrder, PullRequestParametersInput, ReactionOrder, RefNameConditionTargetInput, RefOrder, RefUpdate, RegenerateEnterpriseIdentityProviderRecoveryCodesInput, RegenerateVerifiableDomainTokenInput, RejectDeploymentsInput, ReleaseOrder, RemoveAssigneesFromAssignableInput, RemoveBlockedByInput, RemoveEnterpriseAdminInput, RemoveEnterpriseIdentityProviderInput, RemoveEnterpriseMemberInput, RemoveEnterpriseOrganizationInput, RemoveEnterpriseSupportEntitlementInput, RemoveLabelsFromLabelableInput, RemoveOutsideCollaboratorInput, RemoveReactionInput, RemoveStarInput, RemoveSubIssueInput, RemoveUpvoteInput, ReopenDiscussionInput, ReopenIssueInput, ReopenPullRequestInput, ReorderEnvironmentInput, ReplaceActorsForAssignableInput, RepositoryIdConditionTargetInput, RepositoryInvitationOrder, RepositoryMigrationOrder, RepositoryNameConditionTargetInput, RepositoryOrder, RepositoryPropertyConditionTargetInput, RepositoryRuleConditionsInput, RepositoryRuleInput, RepositoryRuleOrder, RepositoryRulesetBypassActorInput, ReprioritizeSubIssueInput, RequestReviewsInput, RequiredDeploymentsParametersInput, RequiredReviewerConfigurationInput, 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, UpdateBranchProtectionRuleInput, UpdateCheckRunInput, UpdateCheckSuitePreferencesInput, UpdateDiscussionCommentInput, UpdateDiscussionInput, UpdateEnterpriseAdministratorRoleInput, UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput, UpdateEnterpriseDefaultRepositoryPermissionSettingInput, UpdateEnterpriseDeployKeySettingInput, UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput, UpdateEnterpriseMembersCanCreateRepositoriesSettingInput, UpdateEnterpriseMembersCanDeleteIssuesSettingInput, UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput, UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput, UpdateEnterpriseMembersCanMakePurchasesSettingInput, UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput, UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput, UpdateEnterpriseOrganizationProjectsSettingInput, UpdateEnterpriseOwnerOrganizationRoleInput, UpdateEnterpriseProfileInput, UpdateEnterpriseRepositoryProjectsSettingInput, UpdateEnterpriseTeamDiscussionsSettingInput, UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput, UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput, UpdateEnvironmentInput, UpdateIpAllowListEnabledSettingInput, UpdateIpAllowListEntryInput, UpdateIpAllowListForInstalledAppsEnabledSettingInput, UpdateIssueCommentInput, UpdateIssueInput, UpdateIssueIssueTypeInput, UpdateIssueTypeInput, UpdateLabelInput, UpdateNotificationRestrictionSettingInput, UpdateOrganizationAllowPrivateRepositoryForkingSettingInput, UpdateOrganizationWebCommitSignoffSettingInput, UpdateParametersInput, UpdatePatreonSponsorabilityInput, UpdateProjectCardInput, UpdateProjectColumnInput, UpdateProjectInput, UpdateProjectV2CollaboratorsInput, UpdateProjectV2DraftIssueInput, UpdateProjectV2FieldInput, 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. @@ -54,17 +54,39 @@ type AcceptTopicSuggestionInput struct { Name *String `json:"name,omitempty"` } +// AccessUserNamespaceRepositoryInput is an autogenerated input type of AccessUserNamespaceRepository. +type AccessUserNamespaceRepositoryInput struct { + // The ID of the enterprise owning the user namespace repository. (Required.) + EnterpriseID ID `json:"enterpriseId"` + // The ID of the user namespace repository to access. (Required.) + RepositoryID ID `json:"repositoryId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // AddAssigneesToAssignableInput is an autogenerated input type of AddAssigneesToAssignable. type AddAssigneesToAssignableInput struct { // The id of the assignable object to add assignees to. (Required.) AssignableID ID `json:"assignableId"` - // The id of users to add as assignees. (Required.) + // The ids of actors (users or bots) to add as assignees. (Required.) AssigneeIDs []ID `json:"assigneeIds"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` } +// AddBlockedByInput is an autogenerated input type of AddBlockedBy. +type AddBlockedByInput struct { + // The ID of the issue to be blocked. (Required.) + IssueID ID `json:"issueId"` + // The ID of the issue that blocks the given issue. (Required.) + BlockingIssueID ID `json:"blockingIssueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // AddCommentInput is an autogenerated input type of AddComment. type AddCommentInput struct { // The Node ID of the subject to modify. (Required.) @@ -227,13 +249,13 @@ type AddPullRequestReviewInput struct { // AddPullRequestReviewThreadInput is an autogenerated input type of AddPullRequestReviewThread. type AddPullRequestReviewThreadInput struct { - // Path to the file being commented on. (Required.) - Path String `json:"path"` // Body of the thread's first comment. (Required.) Body String `json:"body"` // A unique identifier for the client performing the mutation. (Optional.) ClientMutationID *String `json:"clientMutationId,omitempty"` + // Path to the file being commented on. (Optional.) + Path *String `json:"path,omitempty"` // The node ID of the pull request reviewing. (Optional.) PullRequestID *ID `json:"pullRequestId,omitempty"` // The Node ID of the review to modify. (Optional.) @@ -283,6 +305,21 @@ type AddStarInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// AddSubIssueInput is an autogenerated input type of AddSubIssue. +type AddSubIssueInput struct { + // The id of the issue. (Required.) + IssueID ID `json:"issueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The id of the sub-issue. (Optional.) + SubIssueID *ID `json:"subIssueId,omitempty"` + // The url of the sub-issue. (Optional.) + SubIssueURL *String `json:"subIssueUrl,omitempty"` + // Option to replace parent issue if one already exists. (Optional.) + ReplaceParent *Boolean `json:"replaceParent,omitempty"` +} + // AddUpvoteInput is an autogenerated input type of AddUpvote. type AddUpvoteInput struct { // The Node ID of the discussion or comment to upvote. (Required.) @@ -608,6 +645,8 @@ type CloseIssueInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` // The reason the issue is to be closed. (Optional.) StateReason *IssueClosedStateReason `json:"stateReason,omitempty"` + // ID of the issue that this is a duplicate of. (Optional.) + DuplicateIssueID *ID `json:"duplicateIssueId,omitempty"` } // ClosePullRequestInput is an autogenerated input type of ClosePullRequest. @@ -752,6 +791,15 @@ type ConvertPullRequestToDraftInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// CopilotCodeReviewParametersInput represents request Copilot code review for new pull requests automatically if the author has access to Copilot code review. +type CopilotCodeReviewParametersInput struct { + + // Copilot automatically reviews draft pull requests before they are marked as ready for review. (Optional.) + ReviewDraftPullRequests *Boolean `json:"reviewDraftPullRequests,omitempty"` + // Copilot automatically reviews each new push to the pull request. (Optional.) + ReviewOnPush *Boolean `json:"reviewOnPush,omitempty"` +} + // CopyProjectV2Input is an autogenerated input type of CopyProjectV2. type CopyProjectV2Input struct { // The ID of the source Project to copy. (Required.) @@ -1011,7 +1059,7 @@ type CreateIssueInput struct { 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.) + // The Node ID of assignees for this issue. (Optional.) AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` // The Node ID of the milestone for this issue. (Optional.) MilestoneID *ID `json:"milestoneId,omitempty"` @@ -1019,8 +1067,31 @@ type CreateIssueInput struct { LabelIDs *[]ID `json:"labelIds,omitempty"` // An array of Node IDs for projects associated with this issue. (Optional.) ProjectIDs *[]ID `json:"projectIds,omitempty"` + // An array of Node IDs for Projects V2 associated with this issue. (Optional.) + ProjectV2IDs *[]ID `json:"projectV2Ids,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"` + // The Node ID of the issue type for this issue. (Optional.) + IssueTypeID *ID `json:"issueTypeId,omitempty"` + // The Node ID of the parent issue to add this new issue to. (Optional.) + ParentIssueID *ID `json:"parentIssueId,omitempty"` +} + +// CreateIssueTypeInput is an autogenerated input type of CreateIssueType. +type CreateIssueTypeInput struct { + // The ID for the organization on which the issue type is created. (Required.) + OwnerID ID `json:"ownerId"` + // Whether or not the issue type is enabled on the org level. (Required.) + IsEnabled Boolean `json:"isEnabled"` + // Name of the new issue type. (Required.) + Name String `json:"name"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // Description of the new issue type. (Optional.) + Description *String `json:"description,omitempty"` + // Color for the issue type. (Optional.) + Color *IssueTypeColor `json:"color,omitempty"` } // CreateLabelInput is an autogenerated input type of CreateLabel. @@ -1102,6 +1173,8 @@ type CreateProjectV2FieldInput struct { 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"` + // Configuration for an iteration field. (Optional.) + IterationConfiguration *ProjectV2IterationFieldConfigurationInput `json:"iterationConfiguration,omitempty"` } // CreateProjectV2Input is an autogenerated input type of CreateProjectV2. @@ -1432,6 +1505,15 @@ type DeleteIssueInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// DeleteIssueTypeInput is an autogenerated input type of DeleteIssueType. +type DeleteIssueTypeInput struct { + // The ID of the issue type to delete. (Required.) + IssueTypeID ID `json:"issueTypeId"` + + // A unique identifier for the client performing the mutation. (Optional.) + 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.) @@ -1681,13 +1763,13 @@ type DraftPullRequestReviewComment struct { // DraftPullRequestReviewThread specifies a review comment thread to be left with a Pull Request Review. type DraftPullRequestReviewThread struct { - // Path to the file being commented on. (Required.) - Path String `json:"path"` - // 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"` // Body of the comment to leave. (Required.) Body String `json:"body"` + // Path to the file being commented on. Required if not using positioning. (Optional.) + Path *String `json:"path,omitempty"` + // The line of the blob to which the thread refers. The end of the line range for multi-line comments. Required if not using positioning. (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.) @@ -1823,13 +1905,13 @@ 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. +// FileExtensionRestrictionParametersInput represents prevent commits that include files with specified file extensions from being pushed to the commit graph. 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. +// FilePathRestrictionParametersInput represents prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names. type FilePathRestrictionParametersInput struct { // The file paths that are restricted from being pushed to the commit graph. (Required.) RestrictedFilePaths []String `json:"restrictedFilePaths"` @@ -1946,6 +2028,14 @@ type IssueCommentOrder struct { Direction OrderDirection `json:"direction"` } +// IssueDependencyOrder represents ordering options issue dependencies. +type IssueDependencyOrder struct { + // The field to order issue dependencies by. (Required.) + Field IssueDependencyOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + // IssueFilters represents ways in which to filter lists of issues. type IssueFilters struct { @@ -1965,6 +2055,8 @@ type IssueFilters struct { Since *DateTime `json:"since,omitempty"` // List issues filtered by the list of states given. (Optional.) States *[]IssueState `json:"states,omitempty"` + // List issues filtered by the type given, only supported by searches on repositories. (Optional.) + Type *String `json:"type,omitempty"` // List issues subscribed to by viewer. (Optional.) ViewerSubscribed *Boolean `json:"viewerSubscribed,omitempty"` } @@ -1977,6 +2069,14 @@ type IssueOrder struct { Direction OrderDirection `json:"direction"` } +// IssueTypeOrder represents ordering options for issue types connections. +type IssueTypeOrder struct { + // The field to order issue types by. (Required.) + Field IssueTypeOrderField `json:"field"` + // The ordering direction. (Required.) + Direction OrderDirection `json:"direction"` +} + // LabelOrder represents ways in which lists of labels can be ordered upon return. type LabelOrder struct { // The field in which to order labels by. (Required.) @@ -2065,15 +2165,6 @@ 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.) @@ -2092,13 +2183,13 @@ 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. +// MaxFilePathLengthParametersInput represents prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. 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. +// MaxFileSizeParametersInput represents prevent commits with individual files that exceed the specified limit from being pushed to the commit graph. 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"` @@ -2217,6 +2308,22 @@ type OrganizationOrder struct { Direction OrderDirection `json:"direction"` } +// OrganizationPropertyConditionTargetInput represents parameters to be used for the organization_property condition. +type OrganizationPropertyConditionTargetInput struct { + // Array of organization properties that must not match. (Required.) + Exclude []OrganizationPropertyTargetDefinitionInput `json:"exclude"` + // Array of organization properties that must match. (Required.) + Include []OrganizationPropertyTargetDefinitionInput `json:"include"` +} + +// OrganizationPropertyTargetDefinitionInput represents a property that must match. +type OrganizationPropertyTargetDefinitionInput struct { + // The name of the property. (Required.) + Name String `json:"name"` + // The values to match for. (Required.) + PropertyValues []String `json:"propertyValues"` +} + // PackageFileOrder represents ways in which lists of package files can be ordered upon return. type PackageFileOrder struct { @@ -2356,6 +2463,26 @@ type ProjectV2ItemOrder struct { Direction OrderDirection `json:"direction"` } +// ProjectV2Iteration represents represents an iteration. +type ProjectV2Iteration struct { + // The start date for the iteration. (Required.) + StartDate Date `json:"startDate"` + // The duration of the iteration, in days. (Required.) + Duration Int `json:"duration"` + // The title for the iteration. (Required.) + Title String `json:"title"` +} + +// ProjectV2IterationFieldConfigurationInput represents represents an iteration field configuration. +type ProjectV2IterationFieldConfigurationInput struct { + // The start date for the first iteration. (Required.) + StartDate Date `json:"startDate"` + // The duration of each iteration, in days. (Required.) + Duration Int `json:"duration"` + // Zero or more iterations for the field. (Required.) + Iterations []ProjectV2Iteration `json:"iterations"` +} + // ProjectV2Order represents ways in which lists of projects can be ordered upon return. type ProjectV2Order struct { // The field in which to order projects by. (Required.) @@ -2438,6 +2565,13 @@ type PullRequestParametersInput struct { RequiredApprovingReviewCount Int `json:"requiredApprovingReviewCount"` // All conversations on code must be resolved before a pull request can be merged. (Required.) RequiredReviewThreadResolution Boolean `json:"requiredReviewThreadResolution"` + + // Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled. (Optional.) + AllowedMergeMethods *[]PullRequestAllowedMergeMethods `json:"allowedMergeMethods,omitempty"` + // Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. (Optional.) + AutomaticCopilotCodeReviewEnabled *Boolean `json:"automaticCopilotCodeReviewEnabled,omitempty"` + // This argument is in beta and subject to change. A collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review. (Optional.) + RequiredReviewers *[]RequiredReviewerConfigurationInput `json:"requiredReviewers,omitempty"` } // ReactionOrder represents ways in which lists of reactions can be ordered upon return. @@ -2527,6 +2661,17 @@ type RemoveAssigneesFromAssignableInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// RemoveBlockedByInput is an autogenerated input type of RemoveBlockedBy. +type RemoveBlockedByInput struct { + // The ID of the blocked issue. (Required.) + IssueID ID `json:"issueId"` + // The ID of the blocking issue. (Required.) + BlockingIssueID ID `json:"blockingIssueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // RemoveEnterpriseAdminInput is an autogenerated input type of RemoveEnterpriseAdmin. type RemoveEnterpriseAdminInput struct { // The Enterprise ID from which to remove the administrator. (Required.) @@ -2622,6 +2767,17 @@ type RemoveStarInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// RemoveSubIssueInput is an autogenerated input type of RemoveSubIssue. +type RemoveSubIssueInput struct { + // The id of the issue. (Required.) + IssueID ID `json:"issueId"` + // The id of the sub-issue. (Required.) + SubIssueID ID `json:"subIssueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // RemoveUpvoteInput is an autogenerated input type of RemoveUpvote. type RemoveUpvoteInput struct { // The Node ID of the discussion or comment to remove upvote. (Required.) @@ -2669,6 +2825,17 @@ type ReorderEnvironmentInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// ReplaceActorsForAssignableInput is an autogenerated input type of ReplaceActorsForAssignable. +type ReplaceActorsForAssignableInput struct { + // The id of the assignable object to replace the assignees for. (Required.) + AssignableID ID `json:"assignableId"` + // The ids of the actors to replace the existing assignees. (Required.) + ActorIDs []ID `json:"actorIds"` + + // 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.) @@ -2729,6 +2896,8 @@ type RepositoryRuleConditionsInput struct { RepositoryID *RepositoryIdConditionTargetInput `json:"repositoryId,omitempty"` // Configuration for the repository_property condition. (Optional.) RepositoryProperty *RepositoryPropertyConditionTargetInput `json:"repositoryProperty,omitempty"` + // Configuration for the organization_property condition. (Optional.) + OrganizationProperty *OrganizationPropertyConditionTargetInput `json:"organizationProperty,omitempty"` } // RepositoryRuleInput specifies the attributes for a new or updated rule. @@ -2761,10 +2930,27 @@ type RepositoryRulesetBypassActorInput struct { RepositoryRoleDatabaseID *Int `json:"repositoryRoleDatabaseId,omitempty"` // For organization owner bypasses, true. (Optional.) OrganizationAdmin *Boolean `json:"organizationAdmin,omitempty"` + // For enterprise owner bypasses, true. (Optional.) + EnterpriseOwner *Boolean `json:"enterpriseOwner,omitempty"` // For deploy key bypasses, true. Can only use ALWAYS as the bypass mode. (Optional.) DeployKey *Boolean `json:"deployKey,omitempty"` } +// ReprioritizeSubIssueInput is an autogenerated input type of ReprioritizeSubIssue. +type ReprioritizeSubIssueInput struct { + // The id of the parent issue. (Required.) + IssueID ID `json:"issueId"` + // The id of the sub-issue to reprioritize. (Required.) + SubIssueID ID `json:"subIssueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). (Optional.) + AfterID *ID `json:"afterId,omitempty"` + // The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). (Optional.) + BeforeID *ID `json:"beforeId,omitempty"` +} + // RequestReviewsInput is an autogenerated input type of RequestReviews. type RequestReviewsInput struct { // The Node ID of the pull request to modify. (Required.) @@ -2774,6 +2960,8 @@ type RequestReviewsInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` // The Node IDs of the user to request. (Optional.) UserIDs *[]ID `json:"userIds,omitempty"` + // The Node IDs of the bot to request. (Optional.) + BotIDs *[]ID `json:"botIds,omitempty"` // The Node IDs of the team to request. (Optional.) TeamIDs *[]ID `json:"teamIds,omitempty"` // Add users to the set rather than replace. (Optional.) @@ -2786,6 +2974,16 @@ type RequiredDeploymentsParametersInput struct { RequiredDeploymentEnvironments []String `json:"requiredDeploymentEnvironments"` } +// RequiredReviewerConfigurationInput represents a reviewing team, and file patterns describing which files they must approve changes to. +type RequiredReviewerConfigurationInput struct { + // Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax. (Required.) + FilePatterns []String `json:"filePatterns"` + // Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional. (Required.) + MinimumApprovals Int `json:"minimumApprovals"` + // Node ID of the team which must review changes to matching files. (Required.) + ReviewerID ID `json:"reviewerId"` +} + // RequiredStatusCheckInput specifies the attributes for a new or updated required status check. type RequiredStatusCheckInput struct { // Status check context that must pass for commits to be accepted to the matching branch. (Required.) @@ -2909,6 +3107,8 @@ type RuleParametersInput struct { Workflows *WorkflowsParametersInput `json:"workflows,omitempty"` // Parameters used for the `code_scanning` rule type. (Optional.) CodeScanning *CodeScanningParametersInput `json:"codeScanning,omitempty"` + // Parameters used for the `copilot_code_review` rule type. (Optional.) + CopilotCodeReview *CopilotCodeReviewParametersInput `json:"copilotCodeReview,omitempty"` } // SavedReplyOrder represents ordering options for saved reply connections. @@ -3359,15 +3559,6 @@ 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.) @@ -3534,6 +3725,17 @@ type UpdateEnterpriseDefaultRepositoryPermissionSettingInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UpdateEnterpriseDeployKeySettingInput is an autogenerated input type of UpdateEnterpriseDeployKeySetting. +type UpdateEnterpriseDeployKeySettingInput struct { + // The ID of the enterprise on which to set the deploy key setting. (Required.) + EnterpriseID ID `json:"enterpriseId"` + // The value for the deploy key setting on the enterprise. (Required.) + SettingValue EnterpriseEnabledDisabledSettingValue `json:"settingValue"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput is an autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting. type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput struct { // The ID of the enterprise on which to set the members can change repository visibility setting. (Required.) @@ -3669,6 +3871,8 @@ type UpdateEnterpriseProfileInput struct { WebsiteURL *String `json:"websiteUrl,omitempty"` // The location of the enterprise. (Optional.) Location *String `json:"location,omitempty"` + // The security contact email address of the enterprise. (Optional.) + SecurityContactEmail *String `json:"securityContactEmail,omitempty"` } // UpdateEnterpriseRepositoryProjectsSettingInput is an autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting. @@ -3693,6 +3897,17 @@ type UpdateEnterpriseTeamDiscussionsSettingInput struct { ClientMutationID *String `json:"clientMutationId,omitempty"` } +// UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput is an autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSetting. +type UpdateEnterpriseTwoFactorAuthenticationDisallowedMethodsSettingInput struct { + // The ID of the enterprise on which to set the two-factor authentication disallowed methods setting. (Required.) + EnterpriseID ID `json:"enterpriseId"` + // The value for the two-factor authentication disallowed methods setting on the enterprise. (Required.) + SettingValue EnterpriseDisallowedMethodsSettingValue `json:"settingValue"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` +} + // UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput is an autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting. type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput struct { // The ID of the enterprise on which to set the two factor authentication required setting. (Required.) @@ -3788,6 +4003,36 @@ 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"` + // The ID of the Issue Type for this issue. (Optional.) + IssueTypeID *ID `json:"issueTypeId,omitempty"` +} + +// UpdateIssueIssueTypeInput is an autogenerated input type of UpdateIssueIssueType. +type UpdateIssueIssueTypeInput struct { + // The ID of the issue to update. (Required.) + IssueID ID `json:"issueId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The ID of the issue type to update on the issue. (Optional.) + IssueTypeID *ID `json:"issueTypeId,omitempty"` +} + +// UpdateIssueTypeInput is an autogenerated input type of UpdateIssueType. +type UpdateIssueTypeInput struct { + // The ID of the issue type to update. (Required.) + IssueTypeID ID `json:"issueTypeId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // Whether or not the issue type is enabled for the organization. (Optional.) + IsEnabled *Boolean `json:"isEnabled,omitempty"` + // The name of the issue type. (Optional.) + Name *String `json:"name,omitempty"` + // The description of the issue type. (Optional.) + Description *String `json:"description,omitempty"` + // Color for the issue type. (Optional.) + Color *IssueTypeColor `json:"color,omitempty"` } // UpdateLabelInput is an autogenerated input type of UpdateLabel. @@ -3922,6 +4167,21 @@ type UpdateProjectV2DraftIssueInput struct { AssigneeIDs *[]ID `json:"assigneeIds,omitempty"` } +// UpdateProjectV2FieldInput is an autogenerated input type of UpdateProjectV2Field. +type UpdateProjectV2FieldInput struct { + // The ID of the field to update. (Required.) + FieldID ID `json:"fieldId"` + + // A unique identifier for the client performing the mutation. (Optional.) + ClientMutationID *String `json:"clientMutationId,omitempty"` + // The name to update. (Optional.) + Name *String `json:"name,omitempty"` + // Options for a field of type SINGLE_SELECT. Empty input is ignored, provided values overwrite existing options, and existing options should be fetched for partial updates. (Optional.) + SingleSelectOptions *[]ProjectV2SingleSelectFieldOptionInput `json:"singleSelectOptions,omitempty"` + // Configuration for a field of type ITERATION. Empty input is ignored, provided values overwrite the existing configuration, and existing configuration should be fetched for partial updates. (Optional.) + IterationConfiguration *ProjectV2IterationFieldConfigurationInput `json:"iterationConfiguration,omitempty"` +} + // UpdateProjectV2Input is an autogenerated input type of UpdateProjectV2. type UpdateProjectV2Input struct { // The ID of the Project to update. (Required.)