@pulumi/github 6.0.0-alpha.1709638261 → 6.0.0-alpha.1768023817
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +0 -37
- package/actionsEnvironmentSecret.js +17 -54
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +5 -5
- package/actionsEnvironmentVariable.js +21 -21
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsHostedRunner.d.ts +250 -0
- package/actionsHostedRunner.js +158 -0
- package/actionsHostedRunner.js.map +1 -0
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -2
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +7 -7
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +2 -2
- package/actionsOrganizationPermissions.js +13 -13
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +6 -39
- package/actionsOrganizationSecret.js +21 -55
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +2 -2
- package/actionsOrganizationSecretRepositories.js +10 -10
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +89 -0
- package/actionsOrganizationSecretRepository.js +86 -0
- package/actionsOrganizationSecretRepository.js.map +1 -0
- package/actionsOrganizationVariable.d.ts +4 -4
- package/actionsOrganizationVariable.js +19 -19
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsRepositoryAccessLevel.d.ts +5 -2
- package/actionsRepositoryAccessLevel.js +13 -10
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +3 -3
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +13 -13
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +2 -2
- package/actionsRepositoryPermissions.js +13 -13
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.d.ts +5 -4
- package/actionsRunnerGroup.js +25 -24
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +6 -21
- package/actionsSecret.js +19 -35
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +3 -3
- package/actionsVariable.js +16 -16
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +3 -2
- package/appInstallationRepositories.js +11 -10
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.d.ts +5 -4
- package/appInstallationRepository.js +14 -13
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +11 -6
- package/branch.js +23 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +4 -1
- package/branchDefault.js +15 -13
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +9 -9
- package/branchProtection.js +39 -39
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +58 -1
- package/branchProtectionV3.js +79 -22
- package/branchProtectionV3.js.map +1 -1
- package/codespacesOrganizationSecret.d.ts +2 -39
- package/codespacesOrganizationSecret.js +18 -55
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.d.ts +2 -2
- package/codespacesOrganizationSecretRepositories.js +10 -10
- package/codespacesOrganizationSecretRepositories.js.map +1 -1
- package/codespacesSecret.d.ts +3 -21
- package/codespacesSecret.js +17 -35
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +2 -21
- package/codespacesUserSecret.js +15 -34
- package/codespacesUserSecret.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -9
- package/config/vars.js +9 -5
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +2 -39
- package/dependabotOrganizationSecret.js +18 -55
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +3 -3
- package/dependabotOrganizationSecretRepositories.js +11 -11
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.d.ts +3 -21
- package/dependabotSecret.js +17 -35
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +3 -4
- package/emuGroupMapping.js +12 -13
- package/emuGroupMapping.js.map +1 -1
- package/enterpriseActionsPermissions.d.ts +137 -0
- package/enterpriseActionsPermissions.js +102 -0
- package/enterpriseActionsPermissions.js.map +1 -0
- package/enterpriseActionsRunnerGroup.d.ts +190 -0
- package/enterpriseActionsRunnerGroup.js +113 -0
- package/enterpriseActionsRunnerGroup.js.map +1 -0
- package/enterpriseActionsWorkflowPermissions.d.ts +113 -0
- package/enterpriseActionsWorkflowPermissions.js +97 -0
- package/enterpriseActionsWorkflowPermissions.js.map +1 -0
- package/enterpriseOrganization.d.ts +11 -2
- package/enterpriseOrganization.js +22 -19
- package/enterpriseOrganization.js.map +1 -1
- package/enterpriseSecurityAnalysisSettings.d.ts +162 -0
- package/enterpriseSecurityAnalysisSettings.js +116 -0
- package/enterpriseSecurityAnalysisSettings.js.map +1 -0
- package/getActionsEnvironmentPublicKey.d.ts +80 -0
- package/getActionsEnvironmentPublicKey.js +56 -0
- package/getActionsEnvironmentPublicKey.js.map +1 -0
- package/getActionsEnvironmentSecrets.d.ts +3 -3
- package/getActionsEnvironmentSecrets.js +9 -4
- package/getActionsEnvironmentSecrets.js.map +1 -1
- package/getActionsEnvironmentVariables.d.ts +3 -3
- package/getActionsEnvironmentVariables.js +9 -4
- package/getActionsEnvironmentVariables.js.map +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js +3 -2
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +1 -1
- package/getActionsOrganizationPublicKey.js +3 -2
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +1 -1
- package/getActionsOrganizationRegistrationToken.js +3 -2
- package/getActionsOrganizationRegistrationToken.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +1 -1
- package/getActionsOrganizationSecrets.js +3 -2
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsOrganizationVariables.d.ts +1 -1
- package/getActionsOrganizationVariables.js +3 -2
- package/getActionsOrganizationVariables.js.map +1 -1
- package/getActionsPublicKey.d.ts +1 -1
- package/getActionsPublicKey.js +5 -2
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +1 -1
- package/getActionsRegistrationToken.js +5 -2
- package/getActionsRegistrationToken.js.map +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js +5 -2
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsSecrets.d.ts +1 -1
- package/getActionsSecrets.js +7 -2
- package/getActionsSecrets.js.map +1 -1
- package/getActionsVariables.d.ts +1 -1
- package/getActionsVariables.js +7 -2
- package/getActionsVariables.js.map +1 -1
- package/getAppToken.d.ts +13 -9
- package/getAppToken.js +19 -10
- package/getAppToken.js.map +1 -1
- package/getBranch.d.ts +3 -3
- package/getBranch.js +8 -4
- package/getBranch.js.map +1 -1
- package/getBranchProtectionRules.d.ts +1 -1
- package/getBranchProtectionRules.js +5 -2
- package/getBranchProtectionRules.js.map +1 -1
- package/getCodespacesOrganizationPublicKey.d.ts +1 -1
- package/getCodespacesOrganizationPublicKey.js +3 -2
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesOrganizationSecrets.d.ts +1 -1
- package/getCodespacesOrganizationSecrets.js +3 -2
- package/getCodespacesOrganizationSecrets.js.map +1 -1
- package/getCodespacesPublicKey.d.ts +1 -1
- package/getCodespacesPublicKey.js +5 -2
- package/getCodespacesPublicKey.js.map +1 -1
- package/getCodespacesSecrets.d.ts +1 -1
- package/getCodespacesSecrets.js +7 -2
- package/getCodespacesSecrets.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +1 -1
- package/getCodespacesUserPublicKey.js +3 -2
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCodespacesUserSecrets.d.ts +1 -1
- package/getCodespacesUserSecrets.js +3 -2
- package/getCodespacesUserSecrets.js.map +1 -1
- package/getCollaborators.d.ts +13 -1
- package/getCollaborators.js +9 -2
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationPublicKey.d.ts +1 -1
- package/getDependabotOrganizationPublicKey.js +3 -2
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +1 -1
- package/getDependabotOrganizationSecrets.js +3 -2
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.d.ts +1 -1
- package/getDependabotPublicKey.js +5 -2
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +1 -1
- package/getDependabotSecrets.js +7 -2
- package/getDependabotSecrets.js.map +1 -1
- package/getEnterprise.d.ts +5 -1
- package/getEnterprise.js +5 -2
- package/getEnterprise.js.map +1 -1
- package/getExternalGroups.d.ts +1 -1
- package/getExternalGroups.js +3 -2
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +1 -1
- package/getGithubApp.js +5 -2
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +1 -1
- package/getIpRanges.js +3 -2
- package/getIpRanges.js.map +1 -1
- package/getIssueLabels.d.ts +1 -1
- package/getIssueLabels.js +5 -2
- package/getIssueLabels.js.map +1 -1
- package/getMembership.d.ts +1 -1
- package/getMembership.js +6 -2
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +14 -5
- package/getOrganization.js +8 -2
- package/getOrganization.js.map +1 -1
- package/getOrganizationCustomProperties.d.ts +134 -0
- package/getOrganizationCustomProperties.js +62 -0
- package/getOrganizationCustomProperties.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +5 -1
- package/getOrganizationCustomRole.js +9 -2
- package/getOrganizationCustomRole.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +1 -1
- package/getOrganizationExternalIdentities.js +3 -2
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +1 -1
- package/getOrganizationIpAllowList.js +3 -2
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationRepositoryRole.d.ts +82 -0
- package/getOrganizationRepositoryRole.js +54 -0
- package/getOrganizationRepositoryRole.js.map +1 -0
- package/getOrganizationRepositoryRoles.d.ts +65 -0
- package/getOrganizationRepositoryRoles.js +66 -0
- package/getOrganizationRepositoryRoles.js.map +1 -0
- package/getOrganizationRole.d.ts +82 -0
- package/getOrganizationRole.js +50 -0
- package/getOrganizationRole.js.map +1 -0
- package/getOrganizationRoleTeams.d.ts +85 -0
- package/getOrganizationRoleTeams.js +68 -0
- package/getOrganizationRoleTeams.js.map +1 -0
- package/getOrganizationRoleUsers.d.ts +81 -0
- package/getOrganizationRoleUsers.js +64 -0
- package/getOrganizationRoleUsers.js.map +1 -0
- package/getOrganizationRoles.d.ts +63 -0
- package/getOrganizationRoles.js +64 -0
- package/getOrganizationRoles.js.map +1 -0
- package/getOrganizationSecurityManagers.d.ts +45 -0
- package/getOrganizationSecurityManagers.js +46 -0
- package/getOrganizationSecurityManagers.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +1 -1
- package/getOrganizationTeamSyncGroups.js +3 -2
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +1 -1
- package/getOrganizationTeams.js +8 -2
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +1 -1
- package/getOrganizationWebhooks.js +3 -2
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +3 -3
- package/getRef.js +9 -4
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +64 -2
- package/getRelease.js +71 -2
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +3 -3
- package/getRepositories.js +10 -4
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +3 -1
- package/getRepository.js +9 -2
- package/getRepository.js.map +1 -1
- package/getRepositoryAutolinkReferences.d.ts +1 -1
- package/getRepositoryAutolinkReferences.js +5 -2
- package/getRepositoryAutolinkReferences.js.map +1 -1
- package/getRepositoryBranches.d.ts +1 -1
- package/getRepositoryBranches.js +7 -2
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryCustomProperties.d.ts +64 -0
- package/getRepositoryCustomProperties.js +50 -0
- package/getRepositoryCustomProperties.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +1 -1
- package/getRepositoryDeployKeys.js +5 -2
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryDeploymentBranchPolicies.d.ts +7 -3
- package/getRepositoryDeploymentBranchPolicies.js +12 -4
- package/getRepositoryDeploymentBranchPolicies.js.map +1 -1
- package/getRepositoryEnvironmentDeploymentPolicies.d.ts +75 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js +54 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js.map +1 -0
- package/getRepositoryEnvironments.d.ts +1 -1
- package/getRepositoryEnvironments.js +5 -2
- package/getRepositoryEnvironments.js.map +1 -1
- package/getRepositoryFile.d.ts +3 -3
- package/getRepositoryFile.js +9 -4
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +3 -3
- package/getRepositoryMilestone.js +9 -4
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +1 -1
- package/getRepositoryPullRequest.js +7 -2
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +3 -3
- package/getRepositoryPullRequests.js +13 -4
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +1 -1
- package/getRepositoryTeams.js +7 -2
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +1 -1
- package/getRepositoryWebhooks.js +5 -2
- package/getRepositoryWebhooks.js.map +1 -1
- package/getRestApi.d.ts +1 -1
- package/getRestApi.js +5 -2
- package/getRestApi.js.map +1 -1
- package/getSshKeys.d.ts +1 -1
- package/getSshKeys.js +3 -2
- package/getSshKeys.js.map +1 -1
- package/getTeam.d.ts +5 -3
- package/getTeam.js +8 -2
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +17 -17
- package/getTree.js +23 -18
- package/getTree.js.map +1 -1
- package/getUser.d.ts +5 -1
- package/getUser.js +9 -2
- package/getUser.js.map +1 -1
- package/getUserExternalIdentity.d.ts +1 -1
- package/getUserExternalIdentity.js +5 -2
- package/getUserExternalIdentity.js.map +1 -1
- package/getUsers.d.ts +3 -1
- package/getUsers.js +7 -2
- package/getUsers.js.map +1 -1
- package/index.d.ts +76 -6
- package/index.js +126 -13
- package/index.js.map +1 -1
- package/issue.d.ts +17 -10
- package/issue.js +36 -29
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +20 -3
- package/issueLabel.js +34 -18
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +5 -16
- package/issueLabels.js +12 -23
- package/issueLabels.js.map +1 -1
- package/membership.d.ts +3 -3
- package/membership.js +13 -13
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +1 -1
- package/organizationBlock.js +7 -7
- package/organizationBlock.js.map +1 -1
- package/organizationCustomProperties.d.ts +199 -0
- package/organizationCustomProperties.js +143 -0
- package/organizationCustomProperties.js.map +1 -0
- package/organizationCustomRole.d.ts +7 -3
- package/organizationCustomRole.js +19 -15
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +6 -1
- package/organizationProject.js +14 -9
- package/organizationProject.js.map +1 -1
- package/organizationRepositoryRole.d.ts +121 -0
- package/organizationRepositoryRole.js +92 -0
- package/organizationRepositoryRole.js.map +1 -0
- package/organizationRole.d.ts +121 -0
- package/organizationRole.js +89 -0
- package/organizationRole.js.map +1 -0
- package/organizationRoleTeam.d.ts +83 -0
- package/organizationRoleTeam.js +80 -0
- package/organizationRoleTeam.js.map +1 -0
- package/organizationRoleTeamAssignment.d.ts +94 -0
- package/organizationRoleTeamAssignment.js +91 -0
- package/organizationRoleTeamAssignment.js.map +1 -0
- package/organizationRoleUser.d.ts +83 -0
- package/organizationRoleUser.js +80 -0
- package/organizationRoleUser.js.map +1 -0
- package/organizationRuleset.d.ts +92 -3
- package/organizationRuleset.js +109 -20
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +10 -3
- package/organizationSecurityManager.js +15 -8
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +18 -16
- package/organizationSettings.js +73 -71
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +22 -3
- package/organizationWebhook.js +33 -14
- package/organizationWebhook.js.map +1 -1
- package/package.json +4 -3
- package/projectCard.d.ts +24 -10
- package/projectCard.js +37 -23
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +10 -2
- package/projectColumn.js +19 -11
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +24 -11
- package/provider.js +22 -14
- package/provider.js.map +1 -1
- package/release.d.ts +91 -6
- package/release.js +54 -29
- package/release.js.map +1 -1
- package/repository.d.ts +64 -11
- package/repository.js +110 -88
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +1 -0
- package/repositoryAutolinkReference.js +15 -14
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +3 -28
- package/repositoryCollaborator.js +16 -41
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +28 -38
- package/repositoryCollaborators.js +19 -39
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +115 -0
- package/repositoryCustomProperty.js +98 -0
- package/repositoryCustomProperty.js.map +1 -0
- package/repositoryDependabotSecurityUpdates.d.ts +5 -4
- package/repositoryDependabotSecurityUpdates.js +10 -9
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +6 -16
- package/repositoryDeployKey.js +20 -30
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +10 -1
- package/repositoryDeploymentBranchPolicy.js +18 -13
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +7 -4
- package/repositoryEnvironment.js +25 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +54 -11
- package/repositoryEnvironmentDeploymentPolicy.js +49 -19
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.d.ts +72 -13
- package/repositoryFile.js +63 -34
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +1 -1
- package/repositoryMilestone.js +19 -19
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +6 -1
- package/repositoryProject.js +17 -13
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +2 -2
- package/repositoryPullRequest.js +31 -31
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryRuleset.d.ts +50 -11
- package/repositoryRuleset.js +67 -25
- package/repositoryRuleset.js.map +1 -1
- package/repositoryTopics.d.ts +4 -4
- package/repositoryTopics.js +12 -12
- package/repositoryTopics.js.map +1 -1
- package/repositoryWebhook.d.ts +8 -8
- package/repositoryWebhook.js +20 -21
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +2 -1
- package/team.js +24 -23
- package/team.js.map +1 -1
- package/teamMembers.d.ts +9 -10
- package/teamMembers.js +17 -18
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +7 -4
- package/teamMembership.js +18 -15
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +6 -19
- package/teamRepository.js +17 -30
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +8 -5
- package/teamSettings.js +17 -14
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +18 -1
- package/teamSyncGroupMapping.js +26 -9
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +360 -74
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +495 -84
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/userGpgKey.d.ts +2 -3
- package/userGpgKey.js +9 -10
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +5 -7
- package/userInvitationAccepter.js +11 -13
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +5 -3
- package/userSshKey.js +15 -13
- package/userSshKey.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/workflowRepositoryPermissions.d.ts +98 -0
- package/workflowRepositoryPermissions.js +82 -0
- package/workflowRepositoryPermissions.js.map +1 -0
- package/package.json.bak +0 -27
- package/repositoryTagProtection.d.ts +0 -93
- package/repositoryTagProtection.js +0 -84
- package/repositoryTagProtection.js.map +0 -1
package/types/output.d.ts
CHANGED
|
@@ -1,4 +1,50 @@
|
|
|
1
1
|
import * as outputs from "../types/output";
|
|
2
|
+
export interface ActionsHostedRunnerImage {
|
|
3
|
+
/**
|
|
4
|
+
* The image ID. For GitHub-owned images, use numeric IDs like "2306" for Ubuntu Latest 24.04. To get available images, use the GitHub API: `GET /orgs/{org}/actions/hosted-runners/images/github-owned`.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* The size of the image in gigabytes.
|
|
9
|
+
*/
|
|
10
|
+
sizeGb: number;
|
|
11
|
+
/**
|
|
12
|
+
* The image source. Valid values are "github", "partner", or "custom". Defaults to "github".
|
|
13
|
+
*/
|
|
14
|
+
source?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ActionsHostedRunnerMachineSizeDetail {
|
|
17
|
+
/**
|
|
18
|
+
* Number of CPU cores.
|
|
19
|
+
*/
|
|
20
|
+
cpuCores: number;
|
|
21
|
+
/**
|
|
22
|
+
* Machine size identifier.
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Amount of memory in gigabytes.
|
|
27
|
+
*/
|
|
28
|
+
memoryGb: number;
|
|
29
|
+
/**
|
|
30
|
+
* Amount of storage in gigabytes.
|
|
31
|
+
*/
|
|
32
|
+
storageGb: number;
|
|
33
|
+
}
|
|
34
|
+
export interface ActionsHostedRunnerPublicIp {
|
|
35
|
+
/**
|
|
36
|
+
* Whether this IP range is enabled.
|
|
37
|
+
*/
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Subnet length.
|
|
41
|
+
*/
|
|
42
|
+
length: number;
|
|
43
|
+
/**
|
|
44
|
+
* IP address prefix.
|
|
45
|
+
*/
|
|
46
|
+
prefix: string;
|
|
47
|
+
}
|
|
2
48
|
export interface ActionsOrganizationPermissionsAllowedActionsConfig {
|
|
3
49
|
/**
|
|
4
50
|
* Whether GitHub-owned actions are allowed in the organization.
|
|
@@ -112,13 +158,17 @@ export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
|
112
158
|
*/
|
|
113
159
|
dismissalUsers?: string[];
|
|
114
160
|
/**
|
|
115
|
-
* @deprecated Use
|
|
161
|
+
* @deprecated Use enforceAdmins instead
|
|
116
162
|
*/
|
|
117
163
|
includeAdmins?: boolean;
|
|
118
164
|
/**
|
|
119
165
|
* Require an approved review in pull requests including files with a designated code owner. Defaults to `false`.
|
|
120
166
|
*/
|
|
121
167
|
requireCodeOwnerReviews?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Require that the most recent push must be approved by someone other than the last pusher. Defaults to `false`
|
|
170
|
+
*/
|
|
171
|
+
requireLastPushApproval?: boolean;
|
|
122
172
|
/**
|
|
123
173
|
* Require x number of approvals to satisfy branch protection requirements. If this is specified it must be a number between 0-6. This requirement matches GitHub's API, see the upstream [documentation](https://developer.github.com/v3/repos/branches/#parameters-1) for more information.
|
|
124
174
|
*/
|
|
@@ -142,7 +192,7 @@ export interface BranchProtectionV3RequiredStatusChecks {
|
|
|
142
192
|
/**
|
|
143
193
|
* The list of status checks to require in order to merge into this branch. No status checks are required by default. Checks should be strings containing the context and appId like so "context:app_id".
|
|
144
194
|
*/
|
|
145
|
-
checks
|
|
195
|
+
checks: string[];
|
|
146
196
|
/**
|
|
147
197
|
* [**DEPRECATED**] (Optional) The list of status checks to require in order to merge into this branch. No status checks are required by default.
|
|
148
198
|
*
|
|
@@ -153,9 +203,9 @@ export interface BranchProtectionV3RequiredStatusChecks {
|
|
|
153
203
|
*
|
|
154
204
|
* @deprecated GitHub is deprecating the use of `contexts`. Use a `checks` array instead.
|
|
155
205
|
*/
|
|
156
|
-
contexts
|
|
206
|
+
contexts: string[];
|
|
157
207
|
/**
|
|
158
|
-
* @deprecated Use
|
|
208
|
+
* @deprecated Use enforceAdmins instead
|
|
159
209
|
*/
|
|
160
210
|
includeAdmins?: boolean;
|
|
161
211
|
/**
|
|
@@ -180,6 +230,26 @@ export interface BranchProtectionV3Restrictions {
|
|
|
180
230
|
*/
|
|
181
231
|
users?: string[];
|
|
182
232
|
}
|
|
233
|
+
export interface EnterpriseActionsPermissionsAllowedActionsConfig {
|
|
234
|
+
/**
|
|
235
|
+
* Whether GitHub-owned actions are allowed in the organization.
|
|
236
|
+
*/
|
|
237
|
+
githubOwnedAllowed: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
|
|
240
|
+
*/
|
|
241
|
+
patternsAlloweds?: string[];
|
|
242
|
+
/**
|
|
243
|
+
* Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
|
|
244
|
+
*/
|
|
245
|
+
verifiedAllowed?: boolean;
|
|
246
|
+
}
|
|
247
|
+
export interface EnterpriseActionsPermissionsEnabledOrganizationsConfig {
|
|
248
|
+
/**
|
|
249
|
+
* List of organization IDs to enable for GitHub Actions.
|
|
250
|
+
*/
|
|
251
|
+
organizationIds: number[];
|
|
252
|
+
}
|
|
183
253
|
export interface GetActionsEnvironmentSecretsSecret {
|
|
184
254
|
/**
|
|
185
255
|
* Timestamp of the secret creation
|
|
@@ -374,7 +444,7 @@ export interface GetCollaboratorsCollaborator {
|
|
|
374
444
|
*/
|
|
375
445
|
organizationsUrl: string;
|
|
376
446
|
/**
|
|
377
|
-
*
|
|
447
|
+
* Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission.
|
|
378
448
|
*/
|
|
379
449
|
permission: string;
|
|
380
450
|
/**
|
|
@@ -516,6 +586,100 @@ export interface GetOrganizationIpAllowListIpAllowList {
|
|
|
516
586
|
*/
|
|
517
587
|
updatedAt: string;
|
|
518
588
|
}
|
|
589
|
+
export interface GetOrganizationRepositoryRolesRole {
|
|
590
|
+
/**
|
|
591
|
+
* The system role from which this role inherits permissions.
|
|
592
|
+
*/
|
|
593
|
+
baseRole: string;
|
|
594
|
+
/**
|
|
595
|
+
* The description of the organization repository role.
|
|
596
|
+
*/
|
|
597
|
+
description: string;
|
|
598
|
+
/**
|
|
599
|
+
* The name of the organization repository role.
|
|
600
|
+
*/
|
|
601
|
+
name: string;
|
|
602
|
+
/**
|
|
603
|
+
* The permissions included in this role.
|
|
604
|
+
*/
|
|
605
|
+
permissions: string[];
|
|
606
|
+
/**
|
|
607
|
+
* The ID of the organization repository role.
|
|
608
|
+
*/
|
|
609
|
+
roleId: number;
|
|
610
|
+
}
|
|
611
|
+
export interface GetOrganizationRoleTeamsTeam {
|
|
612
|
+
/**
|
|
613
|
+
* The name of the team.
|
|
614
|
+
*/
|
|
615
|
+
name: string;
|
|
616
|
+
/**
|
|
617
|
+
* The permission that the team will have for its repositories.
|
|
618
|
+
*/
|
|
619
|
+
permission: string;
|
|
620
|
+
/**
|
|
621
|
+
* The Slug of the team name.
|
|
622
|
+
*/
|
|
623
|
+
slug: string;
|
|
624
|
+
/**
|
|
625
|
+
* The ID of the team.
|
|
626
|
+
*/
|
|
627
|
+
teamId: number;
|
|
628
|
+
}
|
|
629
|
+
export interface GetOrganizationRoleUsersUser {
|
|
630
|
+
/**
|
|
631
|
+
* The login for the GitHub user account.
|
|
632
|
+
*/
|
|
633
|
+
login: string;
|
|
634
|
+
/**
|
|
635
|
+
* The ID of the user.
|
|
636
|
+
*/
|
|
637
|
+
userId: number;
|
|
638
|
+
}
|
|
639
|
+
export interface GetOrganizationRolesRole {
|
|
640
|
+
/**
|
|
641
|
+
* The system role from which this role inherits permissions.
|
|
642
|
+
*/
|
|
643
|
+
baseRole: string;
|
|
644
|
+
/**
|
|
645
|
+
* The description of the organization role.
|
|
646
|
+
*/
|
|
647
|
+
description: string;
|
|
648
|
+
/**
|
|
649
|
+
* The name of the organization role.
|
|
650
|
+
*/
|
|
651
|
+
name: string;
|
|
652
|
+
/**
|
|
653
|
+
* A list of permissions included in this role.
|
|
654
|
+
*/
|
|
655
|
+
permissions: string[];
|
|
656
|
+
/**
|
|
657
|
+
* The ID of the organization role.
|
|
658
|
+
*/
|
|
659
|
+
roleId: number;
|
|
660
|
+
/**
|
|
661
|
+
* The source of this role; one of `Predefined`, `Organization`, or `Enterprise`.
|
|
662
|
+
*/
|
|
663
|
+
source: string;
|
|
664
|
+
}
|
|
665
|
+
export interface GetOrganizationSecurityManagersTeam {
|
|
666
|
+
/**
|
|
667
|
+
* Unique identifier of the team.
|
|
668
|
+
*/
|
|
669
|
+
id: number;
|
|
670
|
+
/**
|
|
671
|
+
* Name of the team.
|
|
672
|
+
*/
|
|
673
|
+
name: string;
|
|
674
|
+
/**
|
|
675
|
+
* Permission that the team will have for its repositories.
|
|
676
|
+
*/
|
|
677
|
+
permission: string;
|
|
678
|
+
/**
|
|
679
|
+
* Name based identifier of the team.
|
|
680
|
+
*/
|
|
681
|
+
slug: string;
|
|
682
|
+
}
|
|
519
683
|
export interface GetOrganizationTeamSyncGroupsGroup {
|
|
520
684
|
/**
|
|
521
685
|
* The description of the IdP group.
|
|
@@ -532,11 +696,11 @@ export interface GetOrganizationTeamSyncGroupsGroup {
|
|
|
532
696
|
}
|
|
533
697
|
export interface GetOrganizationTeamsTeam {
|
|
534
698
|
/**
|
|
535
|
-
*
|
|
699
|
+
* The team's description.
|
|
536
700
|
*/
|
|
537
701
|
description: string;
|
|
538
702
|
/**
|
|
539
|
-
*
|
|
703
|
+
* The ID of the team.
|
|
540
704
|
*/
|
|
541
705
|
id: number;
|
|
542
706
|
/**
|
|
@@ -544,21 +708,31 @@ export interface GetOrganizationTeamsTeam {
|
|
|
544
708
|
*/
|
|
545
709
|
members: string[];
|
|
546
710
|
/**
|
|
547
|
-
*
|
|
711
|
+
* The team's full name.
|
|
548
712
|
*/
|
|
549
713
|
name: string;
|
|
550
714
|
/**
|
|
551
|
-
*
|
|
715
|
+
* The Node ID of the team.
|
|
552
716
|
*/
|
|
553
717
|
nodeId: string;
|
|
554
718
|
/**
|
|
555
|
-
*
|
|
719
|
+
* (**DEPRECATED**) The parent team, use `parentTeamId` or `parentTeamSlug` instead.
|
|
720
|
+
*
|
|
721
|
+
* @deprecated Use parentTeamId and parentTeamSlug instead.
|
|
556
722
|
*/
|
|
557
723
|
parent: {
|
|
558
724
|
[key: string]: string;
|
|
559
725
|
};
|
|
560
726
|
/**
|
|
561
|
-
* the team
|
|
727
|
+
* The ID of the parent team, if there is one.
|
|
728
|
+
*/
|
|
729
|
+
parentTeamId: string;
|
|
730
|
+
/**
|
|
731
|
+
* The slug of the parent team, if there is one.
|
|
732
|
+
*/
|
|
733
|
+
parentTeamSlug: string;
|
|
734
|
+
/**
|
|
735
|
+
* The team's privacy type.
|
|
562
736
|
*/
|
|
563
737
|
privacy: string;
|
|
564
738
|
/**
|
|
@@ -566,7 +740,7 @@ export interface GetOrganizationTeamsTeam {
|
|
|
566
740
|
*/
|
|
567
741
|
repositories: string[];
|
|
568
742
|
/**
|
|
569
|
-
*
|
|
743
|
+
* The slug of the team.
|
|
570
744
|
*/
|
|
571
745
|
slug: string;
|
|
572
746
|
}
|
|
@@ -658,6 +832,16 @@ export interface GetRepositoryBranchesBranch {
|
|
|
658
832
|
*/
|
|
659
833
|
protected: boolean;
|
|
660
834
|
}
|
|
835
|
+
export interface GetRepositoryCustomPropertiesProperty {
|
|
836
|
+
/**
|
|
837
|
+
* Name of the property
|
|
838
|
+
*/
|
|
839
|
+
propertyName: string;
|
|
840
|
+
/**
|
|
841
|
+
* Value of the property
|
|
842
|
+
*/
|
|
843
|
+
propertyValues: string[];
|
|
844
|
+
}
|
|
661
845
|
export interface GetRepositoryDeployKeysKey {
|
|
662
846
|
/**
|
|
663
847
|
* Key id
|
|
@@ -686,6 +870,16 @@ export interface GetRepositoryDeploymentBranchPoliciesDeploymentBranchPolicy {
|
|
|
686
870
|
*/
|
|
687
871
|
name: string;
|
|
688
872
|
}
|
|
873
|
+
export interface GetRepositoryEnvironmentDeploymentPoliciesPolicy {
|
|
874
|
+
/**
|
|
875
|
+
* The pattern that branch or tag names must match in order to deploy to the environment.
|
|
876
|
+
*/
|
|
877
|
+
pattern: string;
|
|
878
|
+
/**
|
|
879
|
+
* Type of the policy; this could be `branch` or `tag`.
|
|
880
|
+
*/
|
|
881
|
+
type: string;
|
|
882
|
+
}
|
|
689
883
|
export interface GetRepositoryEnvironmentsEnvironment {
|
|
690
884
|
/**
|
|
691
885
|
* Environment name.
|
|
@@ -926,6 +1120,7 @@ export interface GetRepositoryWebhooksWebhook {
|
|
|
926
1120
|
}
|
|
927
1121
|
export interface GetTeamRepositoriesDetailed {
|
|
928
1122
|
repoId: number;
|
|
1123
|
+
repoName: string;
|
|
929
1124
|
roleName: string;
|
|
930
1125
|
}
|
|
931
1126
|
export interface GetTreeEntry {
|
|
@@ -957,15 +1152,18 @@ export interface OrganizationRulesetBypassActor {
|
|
|
957
1152
|
/**
|
|
958
1153
|
* (Number) The ID of the actor that can bypass a ruleset.
|
|
959
1154
|
*/
|
|
960
|
-
actorId
|
|
1155
|
+
actorId?: number;
|
|
961
1156
|
/**
|
|
962
1157
|
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
963
1158
|
*/
|
|
964
1159
|
actorType: string;
|
|
965
1160
|
/**
|
|
966
|
-
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
1161
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`, `exempt`.
|
|
967
1162
|
*
|
|
968
1163
|
* ~>Note: at the time of writing this, the following actor types correspond to the following actor IDs:
|
|
1164
|
+
*
|
|
1165
|
+
* * `OrganizationAdmin` > `1`
|
|
1166
|
+
* * `RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
|
|
969
1167
|
*/
|
|
970
1168
|
bypassMode: string;
|
|
971
1169
|
}
|
|
@@ -987,21 +1185,21 @@ export interface OrganizationRulesetConditions {
|
|
|
987
1185
|
}
|
|
988
1186
|
export interface OrganizationRulesetConditionsRefName {
|
|
989
1187
|
/**
|
|
990
|
-
*
|
|
1188
|
+
* Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
991
1189
|
*/
|
|
992
1190
|
excludes: string[];
|
|
993
1191
|
/**
|
|
994
|
-
*
|
|
1192
|
+
* Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.
|
|
995
1193
|
*/
|
|
996
1194
|
includes: string[];
|
|
997
1195
|
}
|
|
998
1196
|
export interface OrganizationRulesetConditionsRepositoryName {
|
|
999
1197
|
/**
|
|
1000
|
-
*
|
|
1198
|
+
* Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
1001
1199
|
*/
|
|
1002
1200
|
excludes: string[];
|
|
1003
1201
|
/**
|
|
1004
|
-
*
|
|
1202
|
+
* Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.
|
|
1005
1203
|
*/
|
|
1006
1204
|
includes: string[];
|
|
1007
1205
|
/**
|
|
@@ -1034,6 +1232,22 @@ export interface OrganizationRulesetRules {
|
|
|
1034
1232
|
* (Boolean) Only allow users with bypass permissions to delete matching refs.
|
|
1035
1233
|
*/
|
|
1036
1234
|
deletion?: boolean;
|
|
1235
|
+
/**
|
|
1236
|
+
* (Block List, Max: 1) Prevent commits that include files with specified file extensions from being pushed to the commit graph. This rule only applies to rulesets with target `push`. (see below for nested schema)
|
|
1237
|
+
*/
|
|
1238
|
+
fileExtensionRestriction?: outputs.OrganizationRulesetRulesFileExtensionRestriction;
|
|
1239
|
+
/**
|
|
1240
|
+
* (Block List, Max: 1) Prevent commits that include changes to specified file paths from being pushed to the commit graph. This rule only applies to rulesets with target `push`. (see below for nested schema)
|
|
1241
|
+
*/
|
|
1242
|
+
filePathRestriction?: outputs.OrganizationRulesetRulesFilePathRestriction;
|
|
1243
|
+
/**
|
|
1244
|
+
* (Integer) The maximum number of characters allowed in file paths.
|
|
1245
|
+
*/
|
|
1246
|
+
maxFilePathLength?: outputs.OrganizationRulesetRulesMaxFilePathLength;
|
|
1247
|
+
/**
|
|
1248
|
+
* (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
|
|
1249
|
+
*/
|
|
1250
|
+
maxFileSize?: outputs.OrganizationRulesetRulesMaxFileSize;
|
|
1037
1251
|
/**
|
|
1038
1252
|
* (Boolean) Prevent users with push access from force pushing to branches.
|
|
1039
1253
|
*/
|
|
@@ -1042,6 +1256,10 @@ export interface OrganizationRulesetRules {
|
|
|
1042
1256
|
* (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema)
|
|
1043
1257
|
*/
|
|
1044
1258
|
pullRequest?: outputs.OrganizationRulesetRulesPullRequest;
|
|
1259
|
+
/**
|
|
1260
|
+
* (Block List, Max: 1) Define 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. Multiple code scanning tools can be specified. (see below for nested schema)
|
|
1261
|
+
*/
|
|
1262
|
+
requiredCodeScanning?: outputs.OrganizationRulesetRulesRequiredCodeScanning;
|
|
1045
1263
|
/**
|
|
1046
1264
|
* (Boolean) Prevent merge commits from being pushed to matching branches.
|
|
1047
1265
|
*/
|
|
@@ -1073,15 +1291,15 @@ export interface OrganizationRulesetRulesBranchNamePattern {
|
|
|
1073
1291
|
*/
|
|
1074
1292
|
name?: string;
|
|
1075
1293
|
/**
|
|
1076
|
-
*
|
|
1294
|
+
* If true, the rule will fail if the pattern matches.
|
|
1077
1295
|
*/
|
|
1078
1296
|
negate?: boolean;
|
|
1079
1297
|
/**
|
|
1080
|
-
*
|
|
1298
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1081
1299
|
*/
|
|
1082
1300
|
operator: string;
|
|
1083
1301
|
/**
|
|
1084
|
-
*
|
|
1302
|
+
* The pattern to match with.
|
|
1085
1303
|
*/
|
|
1086
1304
|
pattern: string;
|
|
1087
1305
|
}
|
|
@@ -1091,15 +1309,15 @@ export interface OrganizationRulesetRulesCommitAuthorEmailPattern {
|
|
|
1091
1309
|
*/
|
|
1092
1310
|
name?: string;
|
|
1093
1311
|
/**
|
|
1094
|
-
*
|
|
1312
|
+
* If true, the rule will fail if the pattern matches.
|
|
1095
1313
|
*/
|
|
1096
1314
|
negate?: boolean;
|
|
1097
1315
|
/**
|
|
1098
|
-
*
|
|
1316
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1099
1317
|
*/
|
|
1100
1318
|
operator: string;
|
|
1101
1319
|
/**
|
|
1102
|
-
*
|
|
1320
|
+
* The pattern to match with.
|
|
1103
1321
|
*/
|
|
1104
1322
|
pattern: string;
|
|
1105
1323
|
}
|
|
@@ -1109,15 +1327,15 @@ export interface OrganizationRulesetRulesCommitMessagePattern {
|
|
|
1109
1327
|
*/
|
|
1110
1328
|
name?: string;
|
|
1111
1329
|
/**
|
|
1112
|
-
*
|
|
1330
|
+
* If true, the rule will fail if the pattern matches.
|
|
1113
1331
|
*/
|
|
1114
1332
|
negate?: boolean;
|
|
1115
1333
|
/**
|
|
1116
|
-
*
|
|
1334
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1117
1335
|
*/
|
|
1118
1336
|
operator: string;
|
|
1119
1337
|
/**
|
|
1120
|
-
*
|
|
1338
|
+
* The pattern to match with.
|
|
1121
1339
|
*/
|
|
1122
1340
|
pattern: string;
|
|
1123
1341
|
}
|
|
@@ -1127,77 +1345,129 @@ export interface OrganizationRulesetRulesCommitterEmailPattern {
|
|
|
1127
1345
|
*/
|
|
1128
1346
|
name?: string;
|
|
1129
1347
|
/**
|
|
1130
|
-
*
|
|
1348
|
+
* If true, the rule will fail if the pattern matches.
|
|
1131
1349
|
*/
|
|
1132
1350
|
negate?: boolean;
|
|
1133
1351
|
/**
|
|
1134
|
-
*
|
|
1352
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1135
1353
|
*/
|
|
1136
1354
|
operator: string;
|
|
1137
1355
|
/**
|
|
1138
|
-
*
|
|
1356
|
+
* The pattern to match with.
|
|
1139
1357
|
*/
|
|
1140
1358
|
pattern: string;
|
|
1141
1359
|
}
|
|
1360
|
+
export interface OrganizationRulesetRulesFileExtensionRestriction {
|
|
1361
|
+
/**
|
|
1362
|
+
* The file extensions that are restricted from being pushed to the commit graph.
|
|
1363
|
+
*/
|
|
1364
|
+
restrictedFileExtensions: string[];
|
|
1365
|
+
}
|
|
1366
|
+
export interface OrganizationRulesetRulesFilePathRestriction {
|
|
1367
|
+
/**
|
|
1368
|
+
* The file paths that are restricted from being pushed to the commit graph.
|
|
1369
|
+
*/
|
|
1370
|
+
restrictedFilePaths: string[];
|
|
1371
|
+
}
|
|
1372
|
+
export interface OrganizationRulesetRulesMaxFilePathLength {
|
|
1373
|
+
/**
|
|
1374
|
+
* The maximum allowed length of a file path.
|
|
1375
|
+
*/
|
|
1376
|
+
maxFilePathLength: number;
|
|
1377
|
+
}
|
|
1378
|
+
export interface OrganizationRulesetRulesMaxFileSize {
|
|
1379
|
+
/**
|
|
1380
|
+
* The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
|
|
1381
|
+
*/
|
|
1382
|
+
maxFileSize: number;
|
|
1383
|
+
}
|
|
1142
1384
|
export interface OrganizationRulesetRulesPullRequest {
|
|
1143
1385
|
/**
|
|
1144
|
-
*
|
|
1386
|
+
* New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
|
|
1145
1387
|
*/
|
|
1146
1388
|
dismissStaleReviewsOnPush?: boolean;
|
|
1147
1389
|
/**
|
|
1148
|
-
*
|
|
1390
|
+
* Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`.
|
|
1149
1391
|
*/
|
|
1150
1392
|
requireCodeOwnerReview?: boolean;
|
|
1151
1393
|
/**
|
|
1152
|
-
*
|
|
1394
|
+
* Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
|
|
1153
1395
|
*/
|
|
1154
1396
|
requireLastPushApproval?: boolean;
|
|
1155
1397
|
/**
|
|
1156
|
-
*
|
|
1398
|
+
* The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
|
|
1157
1399
|
*/
|
|
1158
1400
|
requiredApprovingReviewCount?: number;
|
|
1159
1401
|
/**
|
|
1160
|
-
*
|
|
1402
|
+
* All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
|
|
1161
1403
|
*/
|
|
1162
1404
|
requiredReviewThreadResolution?: boolean;
|
|
1163
1405
|
}
|
|
1406
|
+
export interface OrganizationRulesetRulesRequiredCodeScanning {
|
|
1407
|
+
/**
|
|
1408
|
+
* Tools that must provide code scanning results for this rule to pass.
|
|
1409
|
+
*/
|
|
1410
|
+
requiredCodeScanningTools: outputs.OrganizationRulesetRulesRequiredCodeScanningRequiredCodeScanningTool[];
|
|
1411
|
+
}
|
|
1412
|
+
export interface OrganizationRulesetRulesRequiredCodeScanningRequiredCodeScanningTool {
|
|
1413
|
+
/**
|
|
1414
|
+
* The severity level at which code scanning results that raise alerts block a reference update. Can be one of: `none`, `errors`, `errorsAndWarnings`, `all`.
|
|
1415
|
+
*/
|
|
1416
|
+
alertsThreshold: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* The severity level at which code scanning results that raise security alerts block a reference update. Can be one of: `none`, `critical`, `highOrHigher`, `mediumOrHigher`, `all`.
|
|
1419
|
+
*/
|
|
1420
|
+
securityAlertsThreshold: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* The name of a code scanning tool.
|
|
1423
|
+
*/
|
|
1424
|
+
tool: string;
|
|
1425
|
+
}
|
|
1164
1426
|
export interface OrganizationRulesetRulesRequiredStatusChecks {
|
|
1165
1427
|
/**
|
|
1166
|
-
* (
|
|
1428
|
+
* (Boolean) Allow repositories and branches to be created if a check would otherwise prohibit it. Defaults to `false`.
|
|
1429
|
+
*/
|
|
1430
|
+
doNotEnforceOnCreate?: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Status checks that are required. Several can be defined.
|
|
1167
1433
|
*/
|
|
1168
1434
|
requiredChecks: outputs.OrganizationRulesetRulesRequiredStatusChecksRequiredCheck[];
|
|
1169
1435
|
/**
|
|
1170
|
-
*
|
|
1436
|
+
* Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`.
|
|
1171
1437
|
*/
|
|
1172
1438
|
strictRequiredStatusChecksPolicy?: boolean;
|
|
1173
1439
|
}
|
|
1174
1440
|
export interface OrganizationRulesetRulesRequiredStatusChecksRequiredCheck {
|
|
1175
1441
|
/**
|
|
1176
|
-
*
|
|
1442
|
+
* The status check context name that must be present on the commit.
|
|
1177
1443
|
*/
|
|
1178
1444
|
context: string;
|
|
1179
1445
|
/**
|
|
1180
|
-
*
|
|
1446
|
+
* The optional integration ID that this status check must originate from.
|
|
1181
1447
|
*/
|
|
1182
1448
|
integrationId?: number;
|
|
1183
1449
|
}
|
|
1184
1450
|
export interface OrganizationRulesetRulesRequiredWorkflows {
|
|
1185
1451
|
/**
|
|
1186
|
-
*
|
|
1452
|
+
* Allow repositories and branches to be created if a check would otherwise prohibit it.
|
|
1453
|
+
*/
|
|
1454
|
+
doNotEnforceOnCreate?: boolean;
|
|
1455
|
+
/**
|
|
1456
|
+
* Actions workflows that are required. Several can be defined.
|
|
1187
1457
|
*/
|
|
1188
1458
|
requiredWorkflows: outputs.OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow[];
|
|
1189
1459
|
}
|
|
1190
1460
|
export interface OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow {
|
|
1191
1461
|
/**
|
|
1192
|
-
*
|
|
1462
|
+
* The path to the workflow YAML definition file.
|
|
1193
1463
|
*/
|
|
1194
1464
|
path: string;
|
|
1195
1465
|
/**
|
|
1196
|
-
*
|
|
1466
|
+
* The ref (branch or tag) of the workflow file to use.
|
|
1197
1467
|
*/
|
|
1198
1468
|
ref?: string;
|
|
1199
1469
|
/**
|
|
1200
|
-
* The repository
|
|
1470
|
+
* The repository in which the workflow is defined.
|
|
1201
1471
|
*/
|
|
1202
1472
|
repositoryId: number;
|
|
1203
1473
|
}
|
|
@@ -1207,15 +1477,15 @@ export interface OrganizationRulesetRulesTagNamePattern {
|
|
|
1207
1477
|
*/
|
|
1208
1478
|
name?: string;
|
|
1209
1479
|
/**
|
|
1210
|
-
*
|
|
1480
|
+
* If true, the rule will fail if the pattern matches.
|
|
1211
1481
|
*/
|
|
1212
1482
|
negate?: boolean;
|
|
1213
1483
|
/**
|
|
1214
|
-
*
|
|
1484
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1215
1485
|
*/
|
|
1216
1486
|
operator: string;
|
|
1217
1487
|
/**
|
|
1218
|
-
*
|
|
1488
|
+
* The pattern to match with.
|
|
1219
1489
|
*/
|
|
1220
1490
|
pattern: string;
|
|
1221
1491
|
}
|
|
@@ -1237,6 +1507,12 @@ export interface OrganizationWebhookConfiguration {
|
|
|
1237
1507
|
*/
|
|
1238
1508
|
url: string;
|
|
1239
1509
|
}
|
|
1510
|
+
export interface RepositoryCollaboratorsIgnoreTeam {
|
|
1511
|
+
/**
|
|
1512
|
+
* The GitHub team id or the GitHub team slug.
|
|
1513
|
+
*/
|
|
1514
|
+
teamId: string;
|
|
1515
|
+
}
|
|
1240
1516
|
export interface RepositoryCollaboratorsTeam {
|
|
1241
1517
|
/**
|
|
1242
1518
|
* The permission of the outside collaborators for the repository.
|
|
@@ -1245,7 +1521,7 @@ export interface RepositoryCollaboratorsTeam {
|
|
|
1245
1521
|
*/
|
|
1246
1522
|
permission?: string;
|
|
1247
1523
|
/**
|
|
1248
|
-
* The GitHub team id or the GitHub team slug
|
|
1524
|
+
* The GitHub team id or the GitHub team slug.
|
|
1249
1525
|
*/
|
|
1250
1526
|
teamId: string;
|
|
1251
1527
|
}
|
|
@@ -1303,7 +1579,7 @@ export interface RepositoryPages {
|
|
|
1303
1579
|
*/
|
|
1304
1580
|
source?: outputs.RepositoryPagesSource;
|
|
1305
1581
|
/**
|
|
1306
|
-
*
|
|
1582
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1307
1583
|
*/
|
|
1308
1584
|
status: string;
|
|
1309
1585
|
url: string;
|
|
@@ -1320,17 +1596,20 @@ export interface RepositoryPagesSource {
|
|
|
1320
1596
|
}
|
|
1321
1597
|
export interface RepositoryRulesetBypassActor {
|
|
1322
1598
|
/**
|
|
1323
|
-
*
|
|
1599
|
+
* The ID of the actor that can bypass a ruleset. If `actorType` is `Integration`, `actorId` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app)
|
|
1324
1600
|
*/
|
|
1325
|
-
actorId
|
|
1601
|
+
actorId?: number;
|
|
1326
1602
|
/**
|
|
1327
|
-
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
1603
|
+
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`, `DeployKey`.
|
|
1328
1604
|
*/
|
|
1329
1605
|
actorType: string;
|
|
1330
1606
|
/**
|
|
1331
|
-
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
1607
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`, `exempt`.
|
|
1332
1608
|
*
|
|
1333
1609
|
* > Note: at the time of writing this, the following actor types correspond to the following actor IDs:
|
|
1610
|
+
*
|
|
1611
|
+
* * `OrganizationAdmin` > `1`
|
|
1612
|
+
* * `RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
|
|
1334
1613
|
*/
|
|
1335
1614
|
bypassMode: string;
|
|
1336
1615
|
}
|
|
@@ -1342,11 +1621,11 @@ export interface RepositoryRulesetConditions {
|
|
|
1342
1621
|
}
|
|
1343
1622
|
export interface RepositoryRulesetConditionsRefName {
|
|
1344
1623
|
/**
|
|
1345
|
-
*
|
|
1624
|
+
* Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
1346
1625
|
*/
|
|
1347
1626
|
excludes: string[];
|
|
1348
1627
|
/**
|
|
1349
|
-
*
|
|
1628
|
+
* Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.
|
|
1350
1629
|
*/
|
|
1351
1630
|
includes: string[];
|
|
1352
1631
|
}
|
|
@@ -1375,6 +1654,26 @@ export interface RepositoryRulesetRules {
|
|
|
1375
1654
|
* (Boolean) Only allow users with bypass permissions to delete matching refs.
|
|
1376
1655
|
*/
|
|
1377
1656
|
deletion?: boolean;
|
|
1657
|
+
/**
|
|
1658
|
+
* (Block List, Max: 1) Prevent commits that include files with specified file extensions from being pushed to the commit graph. This rule only applies to rulesets with target `push`. (see below for nested schema)
|
|
1659
|
+
*/
|
|
1660
|
+
fileExtensionRestriction?: outputs.RepositoryRulesetRulesFileExtensionRestriction;
|
|
1661
|
+
/**
|
|
1662
|
+
* (Block List, Max 1) Parameters to be used for the filePathRestriction rule. When enabled restricts access to files within the repository. (See below for nested schema)
|
|
1663
|
+
*/
|
|
1664
|
+
filePathRestriction?: outputs.RepositoryRulesetRulesFilePathRestriction;
|
|
1665
|
+
/**
|
|
1666
|
+
* (Integer) The maximum number of characters allowed in file paths.
|
|
1667
|
+
*/
|
|
1668
|
+
maxFilePathLength?: outputs.RepositoryRulesetRulesMaxFilePathLength;
|
|
1669
|
+
/**
|
|
1670
|
+
* (Integer) The maximum allowed size, in megabytes (MB), of a file. Valid range is 1-100 MB.
|
|
1671
|
+
*/
|
|
1672
|
+
maxFileSize?: outputs.RepositoryRulesetRulesMaxFileSize;
|
|
1673
|
+
/**
|
|
1674
|
+
* (Block List, Max: 1) Merges must be performed via a merge queue. (see below for nested schema)
|
|
1675
|
+
*/
|
|
1676
|
+
mergeQueue?: outputs.RepositoryRulesetRulesMergeQueue;
|
|
1378
1677
|
/**
|
|
1379
1678
|
* (Boolean) Prevent users with push access from force pushing to branches.
|
|
1380
1679
|
*/
|
|
@@ -1383,6 +1682,10 @@ export interface RepositoryRulesetRules {
|
|
|
1383
1682
|
* (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema)
|
|
1384
1683
|
*/
|
|
1385
1684
|
pullRequest?: outputs.RepositoryRulesetRulesPullRequest;
|
|
1685
|
+
/**
|
|
1686
|
+
* (Block List, Max: 1) Define 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. Multiple code scanning tools can be specified. (see below for nested schema)
|
|
1687
|
+
*/
|
|
1688
|
+
requiredCodeScanning?: outputs.RepositoryRulesetRulesRequiredCodeScanning;
|
|
1386
1689
|
/**
|
|
1387
1690
|
* (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema)
|
|
1388
1691
|
*/
|
|
@@ -1418,15 +1721,15 @@ export interface RepositoryRulesetRulesBranchNamePattern {
|
|
|
1418
1721
|
*/
|
|
1419
1722
|
name?: string;
|
|
1420
1723
|
/**
|
|
1421
|
-
*
|
|
1724
|
+
* If true, the rule will fail if the pattern matches.
|
|
1422
1725
|
*/
|
|
1423
1726
|
negate?: boolean;
|
|
1424
1727
|
/**
|
|
1425
|
-
*
|
|
1728
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1426
1729
|
*/
|
|
1427
1730
|
operator: string;
|
|
1428
1731
|
/**
|
|
1429
|
-
*
|
|
1732
|
+
* The pattern to match with.
|
|
1430
1733
|
*/
|
|
1431
1734
|
pattern: string;
|
|
1432
1735
|
}
|
|
@@ -1436,15 +1739,15 @@ export interface RepositoryRulesetRulesCommitAuthorEmailPattern {
|
|
|
1436
1739
|
*/
|
|
1437
1740
|
name?: string;
|
|
1438
1741
|
/**
|
|
1439
|
-
*
|
|
1742
|
+
* If true, the rule will fail if the pattern matches.
|
|
1440
1743
|
*/
|
|
1441
1744
|
negate?: boolean;
|
|
1442
1745
|
/**
|
|
1443
|
-
*
|
|
1746
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1444
1747
|
*/
|
|
1445
1748
|
operator: string;
|
|
1446
1749
|
/**
|
|
1447
|
-
*
|
|
1750
|
+
* The pattern to match with.
|
|
1448
1751
|
*/
|
|
1449
1752
|
pattern: string;
|
|
1450
1753
|
}
|
|
@@ -1454,15 +1757,15 @@ export interface RepositoryRulesetRulesCommitMessagePattern {
|
|
|
1454
1757
|
*/
|
|
1455
1758
|
name?: string;
|
|
1456
1759
|
/**
|
|
1457
|
-
*
|
|
1760
|
+
* If true, the rule will fail if the pattern matches.
|
|
1458
1761
|
*/
|
|
1459
1762
|
negate?: boolean;
|
|
1460
1763
|
/**
|
|
1461
|
-
*
|
|
1764
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1462
1765
|
*/
|
|
1463
1766
|
operator: string;
|
|
1464
1767
|
/**
|
|
1465
|
-
*
|
|
1768
|
+
* The pattern to match with.
|
|
1466
1769
|
*/
|
|
1467
1770
|
pattern: string;
|
|
1468
1771
|
}
|
|
@@ -1472,63 +1775,141 @@ export interface RepositoryRulesetRulesCommitterEmailPattern {
|
|
|
1472
1775
|
*/
|
|
1473
1776
|
name?: string;
|
|
1474
1777
|
/**
|
|
1475
|
-
*
|
|
1778
|
+
* If true, the rule will fail if the pattern matches.
|
|
1476
1779
|
*/
|
|
1477
1780
|
negate?: boolean;
|
|
1478
1781
|
/**
|
|
1479
|
-
*
|
|
1782
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1480
1783
|
*/
|
|
1481
1784
|
operator: string;
|
|
1482
1785
|
/**
|
|
1483
|
-
*
|
|
1786
|
+
* The pattern to match with.
|
|
1484
1787
|
*/
|
|
1485
1788
|
pattern: string;
|
|
1486
1789
|
}
|
|
1790
|
+
export interface RepositoryRulesetRulesFileExtensionRestriction {
|
|
1791
|
+
/**
|
|
1792
|
+
* A list of file extensions.
|
|
1793
|
+
*/
|
|
1794
|
+
restrictedFileExtensions: string[];
|
|
1795
|
+
}
|
|
1796
|
+
export interface RepositoryRulesetRulesFilePathRestriction {
|
|
1797
|
+
/**
|
|
1798
|
+
* The file paths that are restricted from being pushed to the commit graph.
|
|
1799
|
+
*/
|
|
1800
|
+
restrictedFilePaths: string[];
|
|
1801
|
+
}
|
|
1802
|
+
export interface RepositoryRulesetRulesMaxFilePathLength {
|
|
1803
|
+
/**
|
|
1804
|
+
* The maximum allowed length of a file path.
|
|
1805
|
+
*/
|
|
1806
|
+
maxFilePathLength: number;
|
|
1807
|
+
}
|
|
1808
|
+
export interface RepositoryRulesetRulesMaxFileSize {
|
|
1809
|
+
/**
|
|
1810
|
+
* The maximum allowed size of a file in megabytes (MB). Valid range is 1-100 MB.
|
|
1811
|
+
*/
|
|
1812
|
+
maxFileSize: number;
|
|
1813
|
+
}
|
|
1814
|
+
export interface RepositoryRulesetRulesMergeQueue {
|
|
1815
|
+
/**
|
|
1816
|
+
* Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed. Defaults to `60`.
|
|
1817
|
+
*/
|
|
1818
|
+
checkResponseTimeoutMinutes?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. Can be one of: ALLGREEN, HEADGREEN. Defaults to `ALLGREEN`.
|
|
1821
|
+
*/
|
|
1822
|
+
groupingStrategy?: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* Limit the number of queued pull requests requesting checks and workflow runs at the same time. Defaults to `5`.
|
|
1825
|
+
*/
|
|
1826
|
+
maxEntriesToBuild?: number;
|
|
1827
|
+
/**
|
|
1828
|
+
* The maximum number of PRs that will be merged together in a group. Defaults to `5`.
|
|
1829
|
+
*/
|
|
1830
|
+
maxEntriesToMerge?: number;
|
|
1831
|
+
/**
|
|
1832
|
+
* Method to use when merging changes from queued pull requests. Can be one of: MERGE, SQUASH, REBASE. Defaults to `MERGE`.
|
|
1833
|
+
*/
|
|
1834
|
+
mergeMethod?: string;
|
|
1835
|
+
/**
|
|
1836
|
+
* The minimum number of PRs that will be merged together in a group. Defaults to `1`.
|
|
1837
|
+
*/
|
|
1838
|
+
minEntriesToMerge?: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. Defaults to `5`.
|
|
1841
|
+
*/
|
|
1842
|
+
minEntriesToMergeWaitMinutes?: number;
|
|
1843
|
+
}
|
|
1487
1844
|
export interface RepositoryRulesetRulesPullRequest {
|
|
1488
1845
|
/**
|
|
1489
|
-
*
|
|
1846
|
+
* New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
|
|
1490
1847
|
*/
|
|
1491
1848
|
dismissStaleReviewsOnPush?: boolean;
|
|
1492
1849
|
/**
|
|
1493
|
-
*
|
|
1850
|
+
* Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`.
|
|
1494
1851
|
*/
|
|
1495
1852
|
requireCodeOwnerReview?: boolean;
|
|
1496
1853
|
/**
|
|
1497
|
-
*
|
|
1854
|
+
* Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
|
|
1498
1855
|
*/
|
|
1499
1856
|
requireLastPushApproval?: boolean;
|
|
1500
1857
|
/**
|
|
1501
|
-
*
|
|
1858
|
+
* The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
|
|
1502
1859
|
*/
|
|
1503
1860
|
requiredApprovingReviewCount?: number;
|
|
1504
1861
|
/**
|
|
1505
|
-
*
|
|
1862
|
+
* All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
|
|
1506
1863
|
*/
|
|
1507
1864
|
requiredReviewThreadResolution?: boolean;
|
|
1508
1865
|
}
|
|
1866
|
+
export interface RepositoryRulesetRulesRequiredCodeScanning {
|
|
1867
|
+
/**
|
|
1868
|
+
* Tools that must provide code scanning results for this rule to pass.
|
|
1869
|
+
*/
|
|
1870
|
+
requiredCodeScanningTools: outputs.RepositoryRulesetRulesRequiredCodeScanningRequiredCodeScanningTool[];
|
|
1871
|
+
}
|
|
1872
|
+
export interface RepositoryRulesetRulesRequiredCodeScanningRequiredCodeScanningTool {
|
|
1873
|
+
/**
|
|
1874
|
+
* The severity level at which code scanning results that raise alerts block a reference update. Can be one of: `none`, `errors`, `errorsAndWarnings`, `all`.
|
|
1875
|
+
*/
|
|
1876
|
+
alertsThreshold: string;
|
|
1877
|
+
/**
|
|
1878
|
+
* The severity level at which code scanning results that raise security alerts block a reference update. Can be one of: `none`, `critical`, `highOrHigher`, `mediumOrHigher`, `all`.
|
|
1879
|
+
*/
|
|
1880
|
+
securityAlertsThreshold: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* The name of a code scanning tool
|
|
1883
|
+
*/
|
|
1884
|
+
tool: string;
|
|
1885
|
+
}
|
|
1509
1886
|
export interface RepositoryRulesetRulesRequiredDeployments {
|
|
1510
1887
|
/**
|
|
1511
|
-
*
|
|
1888
|
+
* The environments that must be successfully deployed to before branches can be merged.
|
|
1512
1889
|
*/
|
|
1513
1890
|
requiredDeploymentEnvironments: string[];
|
|
1514
1891
|
}
|
|
1515
1892
|
export interface RepositoryRulesetRulesRequiredStatusChecks {
|
|
1516
1893
|
/**
|
|
1517
|
-
*
|
|
1894
|
+
* Allow repositories and branches to be created if a check would otherwise prohibit it.
|
|
1895
|
+
*/
|
|
1896
|
+
doNotEnforceOnCreate?: boolean;
|
|
1897
|
+
/**
|
|
1898
|
+
* Status checks that are required. Several can be defined.
|
|
1518
1899
|
*/
|
|
1519
1900
|
requiredChecks: outputs.RepositoryRulesetRulesRequiredStatusChecksRequiredCheck[];
|
|
1520
1901
|
/**
|
|
1521
|
-
*
|
|
1902
|
+
* Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`.
|
|
1522
1903
|
*/
|
|
1523
1904
|
strictRequiredStatusChecksPolicy?: boolean;
|
|
1524
1905
|
}
|
|
1525
1906
|
export interface RepositoryRulesetRulesRequiredStatusChecksRequiredCheck {
|
|
1526
1907
|
/**
|
|
1527
|
-
*
|
|
1908
|
+
* The status check context name that must be present on the commit.
|
|
1528
1909
|
*/
|
|
1529
1910
|
context: string;
|
|
1530
1911
|
/**
|
|
1531
|
-
*
|
|
1912
|
+
* The optional integration ID that this status check must originate from.
|
|
1532
1913
|
*/
|
|
1533
1914
|
integrationId?: number;
|
|
1534
1915
|
}
|
|
@@ -1538,15 +1919,15 @@ export interface RepositoryRulesetRulesTagNamePattern {
|
|
|
1538
1919
|
*/
|
|
1539
1920
|
name?: string;
|
|
1540
1921
|
/**
|
|
1541
|
-
*
|
|
1922
|
+
* If true, the rule will fail if the pattern matches.
|
|
1542
1923
|
*/
|
|
1543
1924
|
negate?: boolean;
|
|
1544
1925
|
/**
|
|
1545
|
-
*
|
|
1926
|
+
* The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
1546
1927
|
*/
|
|
1547
1928
|
operator: string;
|
|
1548
1929
|
/**
|
|
1549
|
-
*
|
|
1930
|
+
* The pattern to match with.
|
|
1550
1931
|
*/
|
|
1551
1932
|
pattern: string;
|
|
1552
1933
|
}
|
|
@@ -1555,10 +1936,22 @@ export interface RepositorySecurityAndAnalysis {
|
|
|
1555
1936
|
* The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is `public`, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.
|
|
1556
1937
|
*/
|
|
1557
1938
|
advancedSecurity?: outputs.RepositorySecurityAndAnalysisAdvancedSecurity;
|
|
1939
|
+
/**
|
|
1940
|
+
* The code security configuration for the repository. See Code Security below for details.
|
|
1941
|
+
*/
|
|
1942
|
+
codeSecurity?: outputs.RepositorySecurityAndAnalysisCodeSecurity;
|
|
1558
1943
|
/**
|
|
1559
1944
|
* The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.
|
|
1560
1945
|
*/
|
|
1561
1946
|
secretScanning?: outputs.RepositorySecurityAndAnalysisSecretScanning;
|
|
1947
|
+
/**
|
|
1948
|
+
* The secret scanning ai detection configuration for the repository. See Secret Scanning AI Detection Configuration below for details.
|
|
1949
|
+
*/
|
|
1950
|
+
secretScanningAiDetection?: outputs.RepositorySecurityAndAnalysisSecretScanningAiDetection;
|
|
1951
|
+
/**
|
|
1952
|
+
* The secret scanning non-provider patterns configuration for this repository. See Secret Scanning Non-Provider Patterns Configuration below for more details.
|
|
1953
|
+
*/
|
|
1954
|
+
secretScanningNonProviderPatterns?: outputs.RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns;
|
|
1562
1955
|
/**
|
|
1563
1956
|
* The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.
|
|
1564
1957
|
*/
|
|
@@ -1570,15 +1963,33 @@ export interface RepositorySecurityAndAnalysisAdvancedSecurity {
|
|
|
1570
1963
|
*/
|
|
1571
1964
|
status: string;
|
|
1572
1965
|
}
|
|
1966
|
+
export interface RepositorySecurityAndAnalysisCodeSecurity {
|
|
1967
|
+
/**
|
|
1968
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1969
|
+
*/
|
|
1970
|
+
status: string;
|
|
1971
|
+
}
|
|
1573
1972
|
export interface RepositorySecurityAndAnalysisSecretScanning {
|
|
1574
1973
|
/**
|
|
1575
|
-
*
|
|
1974
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1975
|
+
*/
|
|
1976
|
+
status: string;
|
|
1977
|
+
}
|
|
1978
|
+
export interface RepositorySecurityAndAnalysisSecretScanningAiDetection {
|
|
1979
|
+
/**
|
|
1980
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1981
|
+
*/
|
|
1982
|
+
status: string;
|
|
1983
|
+
}
|
|
1984
|
+
export interface RepositorySecurityAndAnalysisSecretScanningNonProviderPatterns {
|
|
1985
|
+
/**
|
|
1986
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1576
1987
|
*/
|
|
1577
1988
|
status: string;
|
|
1578
1989
|
}
|
|
1579
1990
|
export interface RepositorySecurityAndAnalysisSecretScanningPushProtection {
|
|
1580
1991
|
/**
|
|
1581
|
-
*
|
|
1992
|
+
* The GitHub Pages site's build status e.g. `building` or `built`.
|
|
1582
1993
|
*/
|
|
1583
1994
|
status: string;
|
|
1584
1995
|
}
|
|
@@ -1627,15 +2038,15 @@ export interface TeamMembersMember {
|
|
|
1627
2038
|
}
|
|
1628
2039
|
export interface TeamSettingsReviewRequestDelegation {
|
|
1629
2040
|
/**
|
|
1630
|
-
* The algorithm to use when assigning pull requests to team members. Supported values are
|
|
2041
|
+
* The algorithm to use when assigning pull requests to team members. Supported values are 'ROUND_ROBIN' and 'LOAD_BALANCE'.
|
|
1631
2042
|
*/
|
|
1632
2043
|
algorithm?: string;
|
|
1633
2044
|
/**
|
|
1634
|
-
* The number of team members to assign to a pull request
|
|
2045
|
+
* The number of team members to assign to a pull request.
|
|
1635
2046
|
*/
|
|
1636
2047
|
memberCount?: number;
|
|
1637
2048
|
/**
|
|
1638
|
-
* whether to notify the entire team when at least one member is also assigned to the pull request
|
|
2049
|
+
* whether to notify the entire team when at least one member is also assigned to the pull request.
|
|
1639
2050
|
*/
|
|
1640
2051
|
notify?: boolean;
|
|
1641
2052
|
}
|