@pulumi/github 6.0.0-alpha.1709363818 → 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 +21 -3
- package/getOrganization.js +9 -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/branch.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* import * as github from "@pulumi/github";
|
|
13
13
|
*
|
|
14
14
|
* const development = new github.Branch("development", {
|
|
15
|
-
* branch: "development",
|
|
16
15
|
* repository: "example",
|
|
16
|
+
* branch: "development",
|
|
17
17
|
* });
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
@@ -22,17 +22,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
* GitHub Branch can be imported using an ID made up of `repository:branch`, e.g.
|
|
23
23
|
*
|
|
24
24
|
* ```sh
|
|
25
|
-
*
|
|
25
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:main
|
|
26
26
|
* ```
|
|
27
|
-
*
|
|
27
|
+
* Importing github branch into an instance object (when using a for each block to manage multiple branches)
|
|
28
28
|
*
|
|
29
29
|
* ```sh
|
|
30
|
-
*
|
|
30
|
+
* $ pulumi import github:index/branch:Branch terraform["terraform"] terraform:main
|
|
31
31
|
* ```
|
|
32
|
-
*
|
|
32
|
+
* Optionally, a source branch may be specified using an ID of `repository:branch:source_branch`.
|
|
33
|
+
* This is useful for importing branches that do not branch directly off main.
|
|
33
34
|
*
|
|
34
35
|
* ```sh
|
|
35
|
-
*
|
|
36
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:feature-branch:dev
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
39
|
export declare class Branch extends pulumi.CustomResource {
|
|
@@ -129,6 +130,10 @@ export interface BranchArgs {
|
|
|
129
130
|
* The repository branch to create.
|
|
130
131
|
*/
|
|
131
132
|
branch: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* An etag representing the Branch object.
|
|
135
|
+
*/
|
|
136
|
+
etag?: pulumi.Input<string>;
|
|
132
137
|
/**
|
|
133
138
|
* The GitHub repository name.
|
|
134
139
|
*/
|
package/branch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.Branch = void 0;
|
|
@@ -18,8 +18,8 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* import * as github from "@pulumi/github";
|
|
19
19
|
*
|
|
20
20
|
* const development = new github.Branch("development", {
|
|
21
|
-
* branch: "development",
|
|
22
21
|
* repository: "example",
|
|
22
|
+
* branch: "development",
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
@@ -28,17 +28,18 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* GitHub Branch can be imported using an ID made up of `repository:branch`, e.g.
|
|
29
29
|
*
|
|
30
30
|
* ```sh
|
|
31
|
-
*
|
|
31
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:main
|
|
32
32
|
* ```
|
|
33
|
-
*
|
|
33
|
+
* Importing github branch into an instance object (when using a for each block to manage multiple branches)
|
|
34
34
|
*
|
|
35
35
|
* ```sh
|
|
36
|
-
*
|
|
36
|
+
* $ pulumi import github:index/branch:Branch terraform["terraform"] terraform:main
|
|
37
37
|
* ```
|
|
38
|
-
*
|
|
38
|
+
* Optionally, a source branch may be specified using an ID of `repository:branch:source_branch`.
|
|
39
|
+
* This is useful for importing branches that do not branch directly off main.
|
|
39
40
|
*
|
|
40
41
|
* ```sh
|
|
41
|
-
*
|
|
42
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:feature-branch:dev
|
|
42
43
|
* ```
|
|
43
44
|
*/
|
|
44
45
|
class Branch extends pulumi.CustomResource {
|
|
@@ -52,7 +53,7 @@ class Branch extends pulumi.CustomResource {
|
|
|
52
53
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
54
|
*/
|
|
54
55
|
static get(name, id, state, opts) {
|
|
55
|
-
return new Branch(name, state,
|
|
56
|
+
return new Branch(name, state, { ...opts, id: id });
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* Returns true if the given object is an instance of Branch. This is designed to work even
|
|
@@ -69,27 +70,27 @@ class Branch extends pulumi.CustomResource {
|
|
|
69
70
|
opts = opts || {};
|
|
70
71
|
if (opts.id) {
|
|
71
72
|
const state = argsOrState;
|
|
72
|
-
resourceInputs["branch"] = state
|
|
73
|
-
resourceInputs["etag"] = state
|
|
74
|
-
resourceInputs["ref"] = state
|
|
75
|
-
resourceInputs["repository"] = state
|
|
76
|
-
resourceInputs["sha"] = state
|
|
77
|
-
resourceInputs["sourceBranch"] = state
|
|
78
|
-
resourceInputs["sourceSha"] = state
|
|
73
|
+
resourceInputs["branch"] = state?.branch;
|
|
74
|
+
resourceInputs["etag"] = state?.etag;
|
|
75
|
+
resourceInputs["ref"] = state?.ref;
|
|
76
|
+
resourceInputs["repository"] = state?.repository;
|
|
77
|
+
resourceInputs["sha"] = state?.sha;
|
|
78
|
+
resourceInputs["sourceBranch"] = state?.sourceBranch;
|
|
79
|
+
resourceInputs["sourceSha"] = state?.sourceSha;
|
|
79
80
|
}
|
|
80
81
|
else {
|
|
81
82
|
const args = argsOrState;
|
|
82
|
-
if (
|
|
83
|
+
if (args?.branch === undefined && !opts.urn) {
|
|
83
84
|
throw new Error("Missing required property 'branch'");
|
|
84
85
|
}
|
|
85
|
-
if (
|
|
86
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
86
87
|
throw new Error("Missing required property 'repository'");
|
|
87
88
|
}
|
|
88
|
-
resourceInputs["branch"] = args
|
|
89
|
-
resourceInputs["
|
|
90
|
-
resourceInputs["
|
|
91
|
-
resourceInputs["
|
|
92
|
-
resourceInputs["
|
|
89
|
+
resourceInputs["branch"] = args?.branch;
|
|
90
|
+
resourceInputs["etag"] = args?.etag;
|
|
91
|
+
resourceInputs["repository"] = args?.repository;
|
|
92
|
+
resourceInputs["sourceBranch"] = args?.sourceBranch;
|
|
93
|
+
resourceInputs["sourceSha"] = args?.sourceSha;
|
|
93
94
|
resourceInputs["ref"] = undefined /*out*/;
|
|
94
95
|
resourceInputs["sha"] = undefined /*out*/;
|
|
95
96
|
}
|
package/branch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG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KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AA/FL,wBAgGC;AAlFG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/branchDefault.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* import * as github from "@pulumi/github";
|
|
16
16
|
*
|
|
17
17
|
* const example = new github.Repository("example", {
|
|
18
|
+
* name: "example",
|
|
18
19
|
* description: "My awesome codebase",
|
|
19
20
|
* autoInit: true,
|
|
20
21
|
* });
|
|
@@ -35,6 +36,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
35
36
|
* import * as github from "@pulumi/github";
|
|
36
37
|
*
|
|
37
38
|
* const example = new github.Repository("example", {
|
|
39
|
+
* name: "example",
|
|
38
40
|
* description: "My awesome codebase",
|
|
39
41
|
* autoInit: true,
|
|
40
42
|
* });
|
|
@@ -50,7 +52,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
50
52
|
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
51
53
|
*
|
|
52
54
|
* ```sh
|
|
53
|
-
*
|
|
55
|
+
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
54
56
|
* ```
|
|
55
57
|
*/
|
|
56
58
|
export declare class BranchDefault extends pulumi.CustomResource {
|
|
@@ -117,6 +119,7 @@ export interface BranchDefaultArgs {
|
|
|
117
119
|
* The branch (e.g. `main`)
|
|
118
120
|
*/
|
|
119
121
|
branch: pulumi.Input<string>;
|
|
122
|
+
etag?: pulumi.Input<string>;
|
|
120
123
|
/**
|
|
121
124
|
* Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
|
|
122
125
|
*/
|
package/branchDefault.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.BranchDefault = void 0;
|
|
@@ -21,6 +21,7 @@ const utilities = require("./utilities");
|
|
|
21
21
|
* import * as github from "@pulumi/github";
|
|
22
22
|
*
|
|
23
23
|
* const example = new github.Repository("example", {
|
|
24
|
+
* name: "example",
|
|
24
25
|
* description: "My awesome codebase",
|
|
25
26
|
* autoInit: true,
|
|
26
27
|
* });
|
|
@@ -41,6 +42,7 @@ const utilities = require("./utilities");
|
|
|
41
42
|
* import * as github from "@pulumi/github";
|
|
42
43
|
*
|
|
43
44
|
* const example = new github.Repository("example", {
|
|
45
|
+
* name: "example",
|
|
44
46
|
* description: "My awesome codebase",
|
|
45
47
|
* autoInit: true,
|
|
46
48
|
* });
|
|
@@ -56,7 +58,7 @@ const utilities = require("./utilities");
|
|
|
56
58
|
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
57
59
|
*
|
|
58
60
|
* ```sh
|
|
59
|
-
*
|
|
61
|
+
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
60
62
|
* ```
|
|
61
63
|
*/
|
|
62
64
|
class BranchDefault extends pulumi.CustomResource {
|
|
@@ -70,7 +72,7 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
70
72
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
73
|
*/
|
|
72
74
|
static get(name, id, state, opts) {
|
|
73
|
-
return new BranchDefault(name, state,
|
|
75
|
+
return new BranchDefault(name, state, { ...opts, id: id });
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* Returns true if the given object is an instance of BranchDefault. This is designed to work even
|
|
@@ -87,23 +89,23 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
87
89
|
opts = opts || {};
|
|
88
90
|
if (opts.id) {
|
|
89
91
|
const state = argsOrState;
|
|
90
|
-
resourceInputs["branch"] = state
|
|
91
|
-
resourceInputs["etag"] = state
|
|
92
|
-
resourceInputs["rename"] = state
|
|
93
|
-
resourceInputs["repository"] = state
|
|
92
|
+
resourceInputs["branch"] = state?.branch;
|
|
93
|
+
resourceInputs["etag"] = state?.etag;
|
|
94
|
+
resourceInputs["rename"] = state?.rename;
|
|
95
|
+
resourceInputs["repository"] = state?.repository;
|
|
94
96
|
}
|
|
95
97
|
else {
|
|
96
98
|
const args = argsOrState;
|
|
97
|
-
if (
|
|
99
|
+
if (args?.branch === undefined && !opts.urn) {
|
|
98
100
|
throw new Error("Missing required property 'branch'");
|
|
99
101
|
}
|
|
100
|
-
if (
|
|
102
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
101
103
|
throw new Error("Missing required property 'repository'");
|
|
102
104
|
}
|
|
103
|
-
resourceInputs["branch"] = args
|
|
104
|
-
resourceInputs["
|
|
105
|
-
resourceInputs["
|
|
106
|
-
resourceInputs["
|
|
105
|
+
resourceInputs["branch"] = args?.branch;
|
|
106
|
+
resourceInputs["etag"] = args?.etag;
|
|
107
|
+
resourceInputs["rename"] = args?.rename;
|
|
108
|
+
resourceInputs["repository"] = args?.repository;
|
|
107
109
|
}
|
|
108
110
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
111
|
super(BranchDefault.__pulumiType, name, resourceInputs, opts);
|
package/branchDefault.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAwBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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
9
|
* import * as github from "@pulumi/github";
|
|
10
10
|
*
|
|
11
|
-
* const exampleRepository = new github.Repository("
|
|
12
|
-
* const
|
|
11
|
+
* const exampleRepository = new github.Repository("example", {name: "test"});
|
|
12
|
+
* const example = github.getUser({
|
|
13
13
|
* username: "example",
|
|
14
14
|
* });
|
|
15
|
-
* const exampleTeam = new github.Team("
|
|
15
|
+
* const exampleTeam = new github.Team("example", {name: "Example Name"});
|
|
16
16
|
* // Protect the main branch of the foo repository. Additionally, require that
|
|
17
17
|
* // the "ci/travis" context to be passing and only allow the engineers team merge
|
|
18
18
|
* // to the branch.
|
|
19
|
-
* const exampleBranchProtection = new github.BranchProtection("
|
|
19
|
+
* const exampleBranchProtection = new github.BranchProtection("example", {
|
|
20
20
|
* repositoryId: exampleRepository.nodeId,
|
|
21
21
|
* pattern: "main",
|
|
22
22
|
* enforceAdmins: true,
|
|
@@ -29,7 +29,7 @@ import * as outputs from "./types/output";
|
|
|
29
29
|
* dismissStaleReviews: true,
|
|
30
30
|
* restrictDismissals: true,
|
|
31
31
|
* dismissalRestrictions: [
|
|
32
|
-
*
|
|
32
|
+
* example.then(example => example.nodeId),
|
|
33
33
|
* exampleTeam.nodeId,
|
|
34
34
|
* "/exampleuser",
|
|
35
35
|
* "exampleorganization/exampleteam",
|
|
@@ -37,18 +37,18 @@ import * as outputs from "./types/output";
|
|
|
37
37
|
* }],
|
|
38
38
|
* restrictPushes: [{
|
|
39
39
|
* pushAllowances: [
|
|
40
|
-
*
|
|
40
|
+
* example.then(example => example.nodeId),
|
|
41
41
|
* "/exampleuser",
|
|
42
42
|
* "exampleorganization/exampleteam",
|
|
43
43
|
* ],
|
|
44
44
|
* }],
|
|
45
45
|
* forcePushBypassers: [
|
|
46
|
-
*
|
|
46
|
+
* example.then(example => example.nodeId),
|
|
47
47
|
* "/exampleuser",
|
|
48
48
|
* "exampleorganization/exampleteam",
|
|
49
49
|
* ],
|
|
50
50
|
* });
|
|
51
|
-
* const exampleTeamRepository = new github.TeamRepository("
|
|
51
|
+
* const exampleTeamRepository = new github.TeamRepository("example", {
|
|
52
52
|
* teamId: exampleTeam.id,
|
|
53
53
|
* repository: exampleRepository.name,
|
|
54
54
|
* permission: "pull",
|
|
@@ -60,7 +60,7 @@ import * as outputs from "./types/output";
|
|
|
60
60
|
* GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.
|
|
61
61
|
*
|
|
62
62
|
* ```sh
|
|
63
|
-
*
|
|
63
|
+
* $ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
66
|
export declare class BranchProtection extends pulumi.CustomResource {
|
package/branchProtection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.BranchProtection = void 0;
|
|
@@ -12,15 +12,15 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as github from "@pulumi/github";
|
|
14
14
|
*
|
|
15
|
-
* const exampleRepository = new github.Repository("
|
|
16
|
-
* const
|
|
15
|
+
* const exampleRepository = new github.Repository("example", {name: "test"});
|
|
16
|
+
* const example = github.getUser({
|
|
17
17
|
* username: "example",
|
|
18
18
|
* });
|
|
19
|
-
* const exampleTeam = new github.Team("
|
|
19
|
+
* const exampleTeam = new github.Team("example", {name: "Example Name"});
|
|
20
20
|
* // Protect the main branch of the foo repository. Additionally, require that
|
|
21
21
|
* // the "ci/travis" context to be passing and only allow the engineers team merge
|
|
22
22
|
* // to the branch.
|
|
23
|
-
* const exampleBranchProtection = new github.BranchProtection("
|
|
23
|
+
* const exampleBranchProtection = new github.BranchProtection("example", {
|
|
24
24
|
* repositoryId: exampleRepository.nodeId,
|
|
25
25
|
* pattern: "main",
|
|
26
26
|
* enforceAdmins: true,
|
|
@@ -33,7 +33,7 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* dismissStaleReviews: true,
|
|
34
34
|
* restrictDismissals: true,
|
|
35
35
|
* dismissalRestrictions: [
|
|
36
|
-
*
|
|
36
|
+
* example.then(example => example.nodeId),
|
|
37
37
|
* exampleTeam.nodeId,
|
|
38
38
|
* "/exampleuser",
|
|
39
39
|
* "exampleorganization/exampleteam",
|
|
@@ -41,18 +41,18 @@ const utilities = require("./utilities");
|
|
|
41
41
|
* }],
|
|
42
42
|
* restrictPushes: [{
|
|
43
43
|
* pushAllowances: [
|
|
44
|
-
*
|
|
44
|
+
* example.then(example => example.nodeId),
|
|
45
45
|
* "/exampleuser",
|
|
46
46
|
* "exampleorganization/exampleteam",
|
|
47
47
|
* ],
|
|
48
48
|
* }],
|
|
49
49
|
* forcePushBypassers: [
|
|
50
|
-
*
|
|
50
|
+
* example.then(example => example.nodeId),
|
|
51
51
|
* "/exampleuser",
|
|
52
52
|
* "exampleorganization/exampleteam",
|
|
53
53
|
* ],
|
|
54
54
|
* });
|
|
55
|
-
* const exampleTeamRepository = new github.TeamRepository("
|
|
55
|
+
* const exampleTeamRepository = new github.TeamRepository("example", {
|
|
56
56
|
* teamId: exampleTeam.id,
|
|
57
57
|
* repository: exampleRepository.name,
|
|
58
58
|
* permission: "pull",
|
|
@@ -64,7 +64,7 @@ const utilities = require("./utilities");
|
|
|
64
64
|
* GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.
|
|
65
65
|
*
|
|
66
66
|
* ```sh
|
|
67
|
-
*
|
|
67
|
+
* $ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
class BranchProtection extends pulumi.CustomResource {
|
|
@@ -78,7 +78,7 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
78
78
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
79
|
*/
|
|
80
80
|
static get(name, id, state, opts) {
|
|
81
|
-
return new BranchProtection(name, state,
|
|
81
|
+
return new BranchProtection(name, state, { ...opts, id: id });
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Returns true if the given object is an instance of BranchProtection. This is designed to work even
|
|
@@ -95,41 +95,41 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
95
95
|
opts = opts || {};
|
|
96
96
|
if (opts.id) {
|
|
97
97
|
const state = argsOrState;
|
|
98
|
-
resourceInputs["allowsDeletions"] = state
|
|
99
|
-
resourceInputs["allowsForcePushes"] = state
|
|
100
|
-
resourceInputs["enforceAdmins"] = state
|
|
101
|
-
resourceInputs["forcePushBypassers"] = state
|
|
102
|
-
resourceInputs["lockBranch"] = state
|
|
103
|
-
resourceInputs["pattern"] = state
|
|
104
|
-
resourceInputs["repositoryId"] = state
|
|
105
|
-
resourceInputs["requireConversationResolution"] = state
|
|
106
|
-
resourceInputs["requireSignedCommits"] = state
|
|
107
|
-
resourceInputs["requiredLinearHistory"] = state
|
|
108
|
-
resourceInputs["requiredPullRequestReviews"] = state
|
|
109
|
-
resourceInputs["requiredStatusChecks"] = state
|
|
110
|
-
resourceInputs["restrictPushes"] = state
|
|
98
|
+
resourceInputs["allowsDeletions"] = state?.allowsDeletions;
|
|
99
|
+
resourceInputs["allowsForcePushes"] = state?.allowsForcePushes;
|
|
100
|
+
resourceInputs["enforceAdmins"] = state?.enforceAdmins;
|
|
101
|
+
resourceInputs["forcePushBypassers"] = state?.forcePushBypassers;
|
|
102
|
+
resourceInputs["lockBranch"] = state?.lockBranch;
|
|
103
|
+
resourceInputs["pattern"] = state?.pattern;
|
|
104
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
105
|
+
resourceInputs["requireConversationResolution"] = state?.requireConversationResolution;
|
|
106
|
+
resourceInputs["requireSignedCommits"] = state?.requireSignedCommits;
|
|
107
|
+
resourceInputs["requiredLinearHistory"] = state?.requiredLinearHistory;
|
|
108
|
+
resourceInputs["requiredPullRequestReviews"] = state?.requiredPullRequestReviews;
|
|
109
|
+
resourceInputs["requiredStatusChecks"] = state?.requiredStatusChecks;
|
|
110
|
+
resourceInputs["restrictPushes"] = state?.restrictPushes;
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
const args = argsOrState;
|
|
114
|
-
if (
|
|
114
|
+
if (args?.pattern === undefined && !opts.urn) {
|
|
115
115
|
throw new Error("Missing required property 'pattern'");
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (args?.repositoryId === undefined && !opts.urn) {
|
|
118
118
|
throw new Error("Missing required property 'repositoryId'");
|
|
119
119
|
}
|
|
120
|
-
resourceInputs["allowsDeletions"] = args
|
|
121
|
-
resourceInputs["allowsForcePushes"] = args
|
|
122
|
-
resourceInputs["enforceAdmins"] = args
|
|
123
|
-
resourceInputs["forcePushBypassers"] = args
|
|
124
|
-
resourceInputs["lockBranch"] = args
|
|
125
|
-
resourceInputs["pattern"] = args
|
|
126
|
-
resourceInputs["repositoryId"] = args
|
|
127
|
-
resourceInputs["requireConversationResolution"] = args
|
|
128
|
-
resourceInputs["requireSignedCommits"] = args
|
|
129
|
-
resourceInputs["requiredLinearHistory"] = args
|
|
130
|
-
resourceInputs["requiredPullRequestReviews"] = args
|
|
131
|
-
resourceInputs["requiredStatusChecks"] = args
|
|
132
|
-
resourceInputs["restrictPushes"] = args
|
|
120
|
+
resourceInputs["allowsDeletions"] = args?.allowsDeletions;
|
|
121
|
+
resourceInputs["allowsForcePushes"] = args?.allowsForcePushes;
|
|
122
|
+
resourceInputs["enforceAdmins"] = args?.enforceAdmins;
|
|
123
|
+
resourceInputs["forcePushBypassers"] = args?.forcePushBypassers;
|
|
124
|
+
resourceInputs["lockBranch"] = args?.lockBranch;
|
|
125
|
+
resourceInputs["pattern"] = args?.pattern;
|
|
126
|
+
resourceInputs["repositoryId"] = args?.repositoryId;
|
|
127
|
+
resourceInputs["requireConversationResolution"] = args?.requireConversationResolution;
|
|
128
|
+
resourceInputs["requireSignedCommits"] = args?.requireSignedCommits;
|
|
129
|
+
resourceInputs["requiredLinearHistory"] = args?.requiredLinearHistory;
|
|
130
|
+
resourceInputs["requiredPullRequestReviews"] = args?.requiredPullRequestReviews;
|
|
131
|
+
resourceInputs["requiredStatusChecks"] = args?.requiredStatusChecks;
|
|
132
|
+
resourceInputs["restrictPushes"] = args?.restrictPushes;
|
|
133
133
|
}
|
|
134
134
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
135
135
|
super(BranchProtection.__pulumiType, name, resourceInputs, opts);
|
package/branchProtection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAA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GED
|
@@ -8,12 +8,69 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
|
|
18
|
+
* const example = new github.BranchProtectionV3("example", {
|
|
19
|
+
* repository: exampleGithubRepository.name,
|
|
20
|
+
* branch: "main",
|
|
21
|
+
* restrictions: {
|
|
22
|
+
* users: ["foo-user"],
|
|
23
|
+
* },
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as github from "@pulumi/github";
|
|
30
|
+
*
|
|
31
|
+
* const exampleRepository = new github.Repository("example", {name: "example"});
|
|
32
|
+
* const exampleTeam = new github.Team("example", {name: "Example Name"});
|
|
33
|
+
* // Protect the main branch of the foo repository. Additionally, require that
|
|
34
|
+
* // the "ci/check" check ran by the Github Actions app is passing and only allow
|
|
35
|
+
* // the engineers team merge to the branch.
|
|
36
|
+
* const example = new github.BranchProtectionV3("example", {
|
|
37
|
+
* repository: exampleRepository.name,
|
|
38
|
+
* branch: "main",
|
|
39
|
+
* enforceAdmins: true,
|
|
40
|
+
* requiredStatusChecks: {
|
|
41
|
+
* strict: false,
|
|
42
|
+
* checks: ["ci/check:824642007264"],
|
|
43
|
+
* },
|
|
44
|
+
* requiredPullRequestReviews: {
|
|
45
|
+
* dismissStaleReviews: true,
|
|
46
|
+
* dismissalUsers: ["foo-user"],
|
|
47
|
+
* dismissalTeams: [exampleTeam.slug],
|
|
48
|
+
* dismissalApp: ["foo-app"],
|
|
49
|
+
* bypassPullRequestAllowances: {
|
|
50
|
+
* users: ["foo-user"],
|
|
51
|
+
* teams: [exampleTeam.slug],
|
|
52
|
+
* apps: ["foo-app"],
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* restrictions: {
|
|
56
|
+
* users: ["foo-user"],
|
|
57
|
+
* teams: [exampleTeam.slug],
|
|
58
|
+
* apps: ["foo-app"],
|
|
59
|
+
* },
|
|
60
|
+
* });
|
|
61
|
+
* const exampleTeamRepository = new github.TeamRepository("example", {
|
|
62
|
+
* teamId: exampleTeam.id,
|
|
63
|
+
* repository: exampleRepository.name,
|
|
64
|
+
* permission: "pull",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
11
68
|
* ## Import
|
|
12
69
|
*
|
|
13
70
|
* GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
|
|
14
71
|
*
|
|
15
72
|
* ```sh
|
|
16
|
-
*
|
|
73
|
+
* $ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main
|
|
17
74
|
* ```
|
|
18
75
|
*/
|
|
19
76
|
export declare class BranchProtectionV3 extends pulumi.CustomResource {
|