@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/issue.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.Issue = void 0;
|
|
@@ -18,37 +18,44 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* import * as github from "@pulumi/github";
|
|
19
19
|
*
|
|
20
20
|
* // Create a simple issue
|
|
21
|
-
* const
|
|
21
|
+
* const test = new github.Repository("test", {
|
|
22
|
+
* name: "tf-acc-test-%s",
|
|
22
23
|
* autoInit: true,
|
|
23
24
|
* hasIssues: true,
|
|
24
25
|
* });
|
|
25
|
-
* const testIssue = new github.Issue("
|
|
26
|
-
* repository:
|
|
26
|
+
* const testIssue = new github.Issue("test", {
|
|
27
|
+
* repository: test.name,
|
|
27
28
|
* title: "My issue title",
|
|
28
29
|
* body: "The body of my issue",
|
|
29
30
|
* });
|
|
30
31
|
* ```
|
|
32
|
+
*
|
|
31
33
|
* ### With Milestone And Project Assignment
|
|
32
34
|
*
|
|
33
35
|
* ```typescript
|
|
34
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
35
37
|
* import * as github from "@pulumi/github";
|
|
38
|
+
* import * as std from "@pulumi/std";
|
|
36
39
|
*
|
|
37
40
|
* // Create an issue with milestone and project assignment
|
|
38
|
-
* const
|
|
41
|
+
* const test = new github.Repository("test", {
|
|
42
|
+
* name: "tf-acc-test-%s",
|
|
39
43
|
* autoInit: true,
|
|
40
44
|
* hasIssues: true,
|
|
41
45
|
* });
|
|
42
|
-
* const testRepositoryMilestone = new github.RepositoryMilestone("
|
|
43
|
-
* owner:
|
|
44
|
-
*
|
|
46
|
+
* const testRepositoryMilestone = new github.RepositoryMilestone("test", {
|
|
47
|
+
* owner: std.splitOutput({
|
|
48
|
+
* separator: "/",
|
|
49
|
+
* text: test.fullName,
|
|
50
|
+
* }).apply(invoke => invoke.result?.[0]),
|
|
51
|
+
* repository: test.name,
|
|
45
52
|
* title: "v1.0.0",
|
|
46
53
|
* description: "General Availability",
|
|
47
54
|
* dueDate: "2022-11-22",
|
|
48
55
|
* state: "open",
|
|
49
56
|
* });
|
|
50
|
-
* const testIssue = new github.Issue("
|
|
51
|
-
* repository:
|
|
57
|
+
* const testIssue = new github.Issue("test", {
|
|
58
|
+
* repository: test.name,
|
|
52
59
|
* title: "My issue",
|
|
53
60
|
* body: "My issue body",
|
|
54
61
|
* labels: [
|
|
@@ -65,7 +72,7 @@ const utilities = require("./utilities");
|
|
|
65
72
|
* GitHub Issues can be imported using an ID made up of `repository:number`, e.g.
|
|
66
73
|
*
|
|
67
74
|
* ```sh
|
|
68
|
-
*
|
|
75
|
+
* $ pulumi import github:index/issue:Issue issue_15 myrepo:15
|
|
69
76
|
* ```
|
|
70
77
|
*/
|
|
71
78
|
class Issue extends pulumi.CustomResource {
|
|
@@ -79,7 +86,7 @@ class Issue extends pulumi.CustomResource {
|
|
|
79
86
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
80
87
|
*/
|
|
81
88
|
static get(name, id, state, opts) {
|
|
82
|
-
return new Issue(name, state,
|
|
89
|
+
return new Issue(name, state, { ...opts, id: id });
|
|
83
90
|
}
|
|
84
91
|
/**
|
|
85
92
|
* Returns true if the given object is an instance of Issue. This is designed to work even
|
|
@@ -96,30 +103,30 @@ class Issue extends pulumi.CustomResource {
|
|
|
96
103
|
opts = opts || {};
|
|
97
104
|
if (opts.id) {
|
|
98
105
|
const state = argsOrState;
|
|
99
|
-
resourceInputs["assignees"] = state
|
|
100
|
-
resourceInputs["body"] = state
|
|
101
|
-
resourceInputs["etag"] = state
|
|
102
|
-
resourceInputs["issueId"] = state
|
|
103
|
-
resourceInputs["labels"] = state
|
|
104
|
-
resourceInputs["milestoneNumber"] = state
|
|
105
|
-
resourceInputs["number"] = state
|
|
106
|
-
resourceInputs["repository"] = state
|
|
107
|
-
resourceInputs["title"] = state
|
|
106
|
+
resourceInputs["assignees"] = state?.assignees;
|
|
107
|
+
resourceInputs["body"] = state?.body;
|
|
108
|
+
resourceInputs["etag"] = state?.etag;
|
|
109
|
+
resourceInputs["issueId"] = state?.issueId;
|
|
110
|
+
resourceInputs["labels"] = state?.labels;
|
|
111
|
+
resourceInputs["milestoneNumber"] = state?.milestoneNumber;
|
|
112
|
+
resourceInputs["number"] = state?.number;
|
|
113
|
+
resourceInputs["repository"] = state?.repository;
|
|
114
|
+
resourceInputs["title"] = state?.title;
|
|
108
115
|
}
|
|
109
116
|
else {
|
|
110
117
|
const args = argsOrState;
|
|
111
|
-
if (
|
|
118
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
112
119
|
throw new Error("Missing required property 'repository'");
|
|
113
120
|
}
|
|
114
|
-
if (
|
|
121
|
+
if (args?.title === undefined && !opts.urn) {
|
|
115
122
|
throw new Error("Missing required property 'title'");
|
|
116
123
|
}
|
|
117
|
-
resourceInputs["assignees"] = args
|
|
118
|
-
resourceInputs["body"] = args
|
|
119
|
-
resourceInputs["labels"] = args
|
|
120
|
-
resourceInputs["milestoneNumber"] = args
|
|
121
|
-
resourceInputs["repository"] = args
|
|
122
|
-
resourceInputs["title"] = args
|
|
124
|
+
resourceInputs["assignees"] = args?.assignees;
|
|
125
|
+
resourceInputs["body"] = args?.body;
|
|
126
|
+
resourceInputs["labels"] = args?.labels;
|
|
127
|
+
resourceInputs["milestoneNumber"] = args?.milestoneNumber;
|
|
128
|
+
resourceInputs["repository"] = args?.repository;
|
|
129
|
+
resourceInputs["title"] = args?.title;
|
|
123
130
|
resourceInputs["etag"] = undefined /*out*/;
|
|
124
131
|
resourceInputs["issueId"] = undefined /*out*/;
|
|
125
132
|
resourceInputs["number"] = undefined /*out*/;
|
package/issue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IA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ACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAxGL,sBAyGC;AA3FG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/issueLabel.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* Provides a GitHub issue label resource.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage issue labels within your
|
|
6
|
+
* GitHub organization.
|
|
7
|
+
*
|
|
8
|
+
* Issue labels are keyed off of their "name", so pre-existing issue labels result
|
|
9
|
+
* in a 422 HTTP error if they exist outside of Pulumi. Normally this would not
|
|
10
|
+
* be an issue, except new repositories are created with a "default" set of labels,
|
|
11
|
+
* and those labels easily conflict with custom ones.
|
|
12
|
+
*
|
|
13
|
+
* This resource will first check if the label exists, and then issue an update,
|
|
14
|
+
* otherwise it will create.
|
|
15
|
+
*
|
|
16
|
+
* > **Note:** When a repository is archived, Pulumi will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Pulumi state without attempting to delete them from GitHub.
|
|
17
|
+
*
|
|
3
18
|
* ## Example Usage
|
|
4
19
|
*
|
|
5
20
|
* ```typescript
|
|
@@ -7,9 +22,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
22
|
* import * as github from "@pulumi/github";
|
|
8
23
|
*
|
|
9
24
|
* // Create a new, red colored label
|
|
10
|
-
* const testRepo = new github.IssueLabel("
|
|
11
|
-
* color: "FF0000",
|
|
25
|
+
* const testRepo = new github.IssueLabel("test_repo", {
|
|
12
26
|
* repository: "test-repo",
|
|
27
|
+
* name: "Urgent",
|
|
28
|
+
* color: "FF0000",
|
|
13
29
|
* });
|
|
14
30
|
* ```
|
|
15
31
|
*
|
|
@@ -18,7 +34,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
34
|
* GitHub Issue Labels can be imported using an ID made up of `repository:name`, e.g.
|
|
19
35
|
*
|
|
20
36
|
* ```sh
|
|
21
|
-
*
|
|
37
|
+
* $ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panic
|
|
22
38
|
* ```
|
|
23
39
|
*/
|
|
24
40
|
export declare class IssueLabel extends pulumi.CustomResource {
|
|
@@ -105,6 +121,7 @@ export interface IssueLabelArgs {
|
|
|
105
121
|
* A short description of the label.
|
|
106
122
|
*/
|
|
107
123
|
description?: pulumi.Input<string>;
|
|
124
|
+
etag?: pulumi.Input<string>;
|
|
108
125
|
/**
|
|
109
126
|
* The name of the label.
|
|
110
127
|
*/
|
package/issueLabel.js
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
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.IssueLabel = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Provides a GitHub issue label resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage issue labels within your
|
|
12
|
+
* GitHub organization.
|
|
13
|
+
*
|
|
14
|
+
* Issue labels are keyed off of their "name", so pre-existing issue labels result
|
|
15
|
+
* in a 422 HTTP error if they exist outside of Pulumi. Normally this would not
|
|
16
|
+
* be an issue, except new repositories are created with a "default" set of labels,
|
|
17
|
+
* and those labels easily conflict with custom ones.
|
|
18
|
+
*
|
|
19
|
+
* This resource will first check if the label exists, and then issue an update,
|
|
20
|
+
* otherwise it will create.
|
|
21
|
+
*
|
|
22
|
+
* > **Note:** When a repository is archived, Pulumi will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Pulumi state without attempting to delete them from GitHub.
|
|
23
|
+
*
|
|
9
24
|
* ## Example Usage
|
|
10
25
|
*
|
|
11
26
|
* ```typescript
|
|
@@ -13,9 +28,10 @@ const utilities = require("./utilities");
|
|
|
13
28
|
* import * as github from "@pulumi/github";
|
|
14
29
|
*
|
|
15
30
|
* // Create a new, red colored label
|
|
16
|
-
* const testRepo = new github.IssueLabel("
|
|
17
|
-
* color: "FF0000",
|
|
31
|
+
* const testRepo = new github.IssueLabel("test_repo", {
|
|
18
32
|
* repository: "test-repo",
|
|
33
|
+
* name: "Urgent",
|
|
34
|
+
* color: "FF0000",
|
|
19
35
|
* });
|
|
20
36
|
* ```
|
|
21
37
|
*
|
|
@@ -24,7 +40,7 @@ const utilities = require("./utilities");
|
|
|
24
40
|
* GitHub Issue Labels can be imported using an ID made up of `repository:name`, e.g.
|
|
25
41
|
*
|
|
26
42
|
* ```sh
|
|
27
|
-
*
|
|
43
|
+
* $ pulumi import github:index/issueLabel:IssueLabel panic_label terraform:panic
|
|
28
44
|
* ```
|
|
29
45
|
*/
|
|
30
46
|
class IssueLabel extends pulumi.CustomResource {
|
|
@@ -38,7 +54,7 @@ class IssueLabel extends pulumi.CustomResource {
|
|
|
38
54
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
55
|
*/
|
|
40
56
|
static get(name, id, state, opts) {
|
|
41
|
-
return new IssueLabel(name, state,
|
|
57
|
+
return new IssueLabel(name, state, { ...opts, id: id });
|
|
42
58
|
}
|
|
43
59
|
/**
|
|
44
60
|
* Returns true if the given object is an instance of IssueLabel. This is designed to work even
|
|
@@ -55,26 +71,26 @@ class IssueLabel extends pulumi.CustomResource {
|
|
|
55
71
|
opts = opts || {};
|
|
56
72
|
if (opts.id) {
|
|
57
73
|
const state = argsOrState;
|
|
58
|
-
resourceInputs["color"] = state
|
|
59
|
-
resourceInputs["description"] = state
|
|
60
|
-
resourceInputs["etag"] = state
|
|
61
|
-
resourceInputs["name"] = state
|
|
62
|
-
resourceInputs["repository"] = state
|
|
63
|
-
resourceInputs["url"] = state
|
|
74
|
+
resourceInputs["color"] = state?.color;
|
|
75
|
+
resourceInputs["description"] = state?.description;
|
|
76
|
+
resourceInputs["etag"] = state?.etag;
|
|
77
|
+
resourceInputs["name"] = state?.name;
|
|
78
|
+
resourceInputs["repository"] = state?.repository;
|
|
79
|
+
resourceInputs["url"] = state?.url;
|
|
64
80
|
}
|
|
65
81
|
else {
|
|
66
82
|
const args = argsOrState;
|
|
67
|
-
if (
|
|
83
|
+
if (args?.color === undefined && !opts.urn) {
|
|
68
84
|
throw new Error("Missing required property 'color'");
|
|
69
85
|
}
|
|
70
|
-
if (
|
|
86
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
71
87
|
throw new Error("Missing required property 'repository'");
|
|
72
88
|
}
|
|
73
|
-
resourceInputs["color"] = args
|
|
74
|
-
resourceInputs["description"] = args
|
|
75
|
-
resourceInputs["
|
|
76
|
-
resourceInputs["
|
|
77
|
-
resourceInputs["
|
|
89
|
+
resourceInputs["color"] = args?.color;
|
|
90
|
+
resourceInputs["description"] = args?.description;
|
|
91
|
+
resourceInputs["etag"] = args?.etag;
|
|
92
|
+
resourceInputs["name"] = args?.name;
|
|
93
|
+
resourceInputs["repository"] = args?.repository;
|
|
78
94
|
resourceInputs["url"] = undefined /*out*/;
|
|
79
95
|
}
|
|
80
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/issueLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAgCD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI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CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtFL,gCAuFC;AAzEG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/issueLabels.d.ts
CHANGED
|
@@ -2,17 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* Provides GitHub issue labels resource.
|
|
6
|
-
*
|
|
7
|
-
* This resource allows you to create and manage issue labels within your
|
|
8
|
-
* GitHub organization.
|
|
9
|
-
*
|
|
10
|
-
* > Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.
|
|
11
|
-
*
|
|
12
|
-
* This resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.
|
|
13
|
-
*
|
|
14
|
-
* If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
|
|
15
|
-
*
|
|
16
5
|
* ## Example Usage
|
|
17
6
|
*
|
|
18
7
|
* ```typescript
|
|
@@ -20,18 +9,18 @@ import * as outputs from "./types/output";
|
|
|
20
9
|
* import * as github from "@pulumi/github";
|
|
21
10
|
*
|
|
22
11
|
* // Create a new, red colored label
|
|
23
|
-
* const testRepo = new github.IssueLabels("
|
|
12
|
+
* const testRepo = new github.IssueLabels("test_repo", {
|
|
13
|
+
* repository: "test-repo",
|
|
24
14
|
* labels: [
|
|
25
15
|
* {
|
|
26
|
-
* color: "FF0000",
|
|
27
16
|
* name: "Urgent",
|
|
17
|
+
* color: "FF0000",
|
|
28
18
|
* },
|
|
29
19
|
* {
|
|
30
|
-
* color: "FF0000",
|
|
31
20
|
* name: "Critical",
|
|
21
|
+
* color: "FF0000",
|
|
32
22
|
* },
|
|
33
23
|
* ],
|
|
34
|
-
* repository: "test-repo",
|
|
35
24
|
* });
|
|
36
25
|
* ```
|
|
37
26
|
*
|
|
@@ -40,7 +29,7 @@ import * as outputs from "./types/output";
|
|
|
40
29
|
* GitHub Issue Labels can be imported using the repository `name`, e.g.
|
|
41
30
|
*
|
|
42
31
|
* ```sh
|
|
43
|
-
*
|
|
32
|
+
* $ pulumi import github:index/issueLabels:IssueLabels test_repo test_repo
|
|
44
33
|
* ```
|
|
45
34
|
*/
|
|
46
35
|
export declare class IssueLabels extends pulumi.CustomResource {
|
package/issueLabels.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
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.IssueLabels = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides GitHub issue labels resource.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage issue labels within your
|
|
12
|
-
* GitHub organization.
|
|
13
|
-
*
|
|
14
|
-
* > Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.
|
|
15
|
-
*
|
|
16
|
-
* This resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.
|
|
17
|
-
*
|
|
18
|
-
* If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
|
|
19
|
-
*
|
|
20
9
|
* ## Example Usage
|
|
21
10
|
*
|
|
22
11
|
* ```typescript
|
|
@@ -24,18 +13,18 @@ const utilities = require("./utilities");
|
|
|
24
13
|
* import * as github from "@pulumi/github";
|
|
25
14
|
*
|
|
26
15
|
* // Create a new, red colored label
|
|
27
|
-
* const testRepo = new github.IssueLabels("
|
|
16
|
+
* const testRepo = new github.IssueLabels("test_repo", {
|
|
17
|
+
* repository: "test-repo",
|
|
28
18
|
* labels: [
|
|
29
19
|
* {
|
|
30
|
-
* color: "FF0000",
|
|
31
20
|
* name: "Urgent",
|
|
21
|
+
* color: "FF0000",
|
|
32
22
|
* },
|
|
33
23
|
* {
|
|
34
|
-
* color: "FF0000",
|
|
35
24
|
* name: "Critical",
|
|
25
|
+
* color: "FF0000",
|
|
36
26
|
* },
|
|
37
27
|
* ],
|
|
38
|
-
* repository: "test-repo",
|
|
39
28
|
* });
|
|
40
29
|
* ```
|
|
41
30
|
*
|
|
@@ -44,7 +33,7 @@ const utilities = require("./utilities");
|
|
|
44
33
|
* GitHub Issue Labels can be imported using the repository `name`, e.g.
|
|
45
34
|
*
|
|
46
35
|
* ```sh
|
|
47
|
-
*
|
|
36
|
+
* $ pulumi import github:index/issueLabels:IssueLabels test_repo test_repo
|
|
48
37
|
* ```
|
|
49
38
|
*/
|
|
50
39
|
class IssueLabels extends pulumi.CustomResource {
|
|
@@ -58,7 +47,7 @@ class IssueLabels extends pulumi.CustomResource {
|
|
|
58
47
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
48
|
*/
|
|
60
49
|
static get(name, id, state, opts) {
|
|
61
|
-
return new IssueLabels(name, state,
|
|
50
|
+
return new IssueLabels(name, state, { ...opts, id: id });
|
|
62
51
|
}
|
|
63
52
|
/**
|
|
64
53
|
* Returns true if the given object is an instance of IssueLabels. This is designed to work even
|
|
@@ -75,16 +64,16 @@ class IssueLabels extends pulumi.CustomResource {
|
|
|
75
64
|
opts = opts || {};
|
|
76
65
|
if (opts.id) {
|
|
77
66
|
const state = argsOrState;
|
|
78
|
-
resourceInputs["labels"] = state
|
|
79
|
-
resourceInputs["repository"] = state
|
|
67
|
+
resourceInputs["labels"] = state?.labels;
|
|
68
|
+
resourceInputs["repository"] = state?.repository;
|
|
80
69
|
}
|
|
81
70
|
else {
|
|
82
71
|
const args = argsOrState;
|
|
83
|
-
if (
|
|
72
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
84
73
|
throw new Error("Missing required property 'repository'");
|
|
85
74
|
}
|
|
86
|
-
resourceInputs["labels"] = args
|
|
87
|
-
resourceInputs["repository"] = args
|
|
75
|
+
resourceInputs["labels"] = args?.labels;
|
|
76
|
+
resourceInputs["repository"] = args?.repository;
|
|
88
77
|
}
|
|
89
78
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
79
|
super(IssueLabels.__pulumiType, name, resourceInputs, opts);
|
package/issueLabels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabels.js","sourceRoot":"","sources":["../issueLabels.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"issueLabels.js","sourceRoot":"","sources":["../issueLabels.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,IAAI,EAAE,UAAU,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,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA9DL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/membership.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* import * as github from "@pulumi/github";
|
|
14
14
|
*
|
|
15
15
|
* // Add a user to the organization
|
|
16
|
-
* const membershipForSomeUser = new github.Membership("
|
|
17
|
-
* role: "member",
|
|
16
|
+
* const membershipForSomeUser = new github.Membership("membership_for_some_user", {
|
|
18
17
|
* username: "SomeUser",
|
|
18
|
+
* role: "member",
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -24,7 +24,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
24
|
* GitHub Membership can be imported using an ID made up of `organization:username`, e.g.
|
|
25
25
|
*
|
|
26
26
|
* ```sh
|
|
27
|
-
*
|
|
27
|
+
* $ pulumi import github:index/membership:Membership member hashicorp:someuser
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
export declare class Membership extends pulumi.CustomResource {
|
package/membership.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.Membership = void 0;
|
|
@@ -19,9 +19,9 @@ const utilities = require("./utilities");
|
|
|
19
19
|
* import * as github from "@pulumi/github";
|
|
20
20
|
*
|
|
21
21
|
* // Add a user to the organization
|
|
22
|
-
* const membershipForSomeUser = new github.Membership("
|
|
23
|
-
* role: "member",
|
|
22
|
+
* const membershipForSomeUser = new github.Membership("membership_for_some_user", {
|
|
24
23
|
* username: "SomeUser",
|
|
24
|
+
* role: "member",
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
@@ -30,7 +30,7 @@ const utilities = require("./utilities");
|
|
|
30
30
|
* GitHub Membership can be imported using an ID made up of `organization:username`, e.g.
|
|
31
31
|
*
|
|
32
32
|
* ```sh
|
|
33
|
-
*
|
|
33
|
+
* $ pulumi import github:index/membership:Membership member hashicorp:someuser
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
class Membership extends pulumi.CustomResource {
|
|
@@ -44,7 +44,7 @@ class Membership extends pulumi.CustomResource {
|
|
|
44
44
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
45
|
*/
|
|
46
46
|
static get(name, id, state, opts) {
|
|
47
|
-
return new Membership(name, state,
|
|
47
|
+
return new Membership(name, state, { ...opts, id: id });
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Returns true if the given object is an instance of Membership. This is designed to work even
|
|
@@ -61,19 +61,19 @@ class Membership extends pulumi.CustomResource {
|
|
|
61
61
|
opts = opts || {};
|
|
62
62
|
if (opts.id) {
|
|
63
63
|
const state = argsOrState;
|
|
64
|
-
resourceInputs["downgradeOnDestroy"] = state
|
|
65
|
-
resourceInputs["etag"] = state
|
|
66
|
-
resourceInputs["role"] = state
|
|
67
|
-
resourceInputs["username"] = state
|
|
64
|
+
resourceInputs["downgradeOnDestroy"] = state?.downgradeOnDestroy;
|
|
65
|
+
resourceInputs["etag"] = state?.etag;
|
|
66
|
+
resourceInputs["role"] = state?.role;
|
|
67
|
+
resourceInputs["username"] = state?.username;
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
const args = argsOrState;
|
|
71
|
-
if (
|
|
71
|
+
if (args?.username === undefined && !opts.urn) {
|
|
72
72
|
throw new Error("Missing required property 'username'");
|
|
73
73
|
}
|
|
74
|
-
resourceInputs["downgradeOnDestroy"] = args
|
|
75
|
-
resourceInputs["role"] = args
|
|
76
|
-
resourceInputs["username"] = args
|
|
74
|
+
resourceInputs["downgradeOnDestroy"] = args?.downgradeOnDestroy;
|
|
75
|
+
resourceInputs["role"] = args?.role;
|
|
76
|
+
resourceInputs["username"] = args?.username;
|
|
77
77
|
resourceInputs["etag"] = undefined /*out*/;
|
|
78
78
|
}
|
|
79
79
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/membership.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../membership.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../membership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;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AG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA5EL,gCA6EC;AA/DG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/organizationBlock.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
* GitHub organization block can be imported using a username, e.g.
|
|
17
17
|
*
|
|
18
18
|
* ```sh
|
|
19
|
-
*
|
|
19
|
+
* $ pulumi import github:index/organizationBlock:OrganizationBlock example someuser
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
export declare class OrganizationBlock extends pulumi.CustomResource {
|
package/organizationBlock.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.OrganizationBlock = void 0;
|
|
@@ -22,7 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* GitHub organization block can be imported using a username, e.g.
|
|
23
23
|
*
|
|
24
24
|
* ```sh
|
|
25
|
-
*
|
|
25
|
+
* $ pulumi import github:index/organizationBlock:OrganizationBlock example someuser
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
class OrganizationBlock extends pulumi.CustomResource {
|
|
@@ -36,7 +36,7 @@ class OrganizationBlock extends pulumi.CustomResource {
|
|
|
36
36
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
37
|
*/
|
|
38
38
|
static get(name, id, state, opts) {
|
|
39
|
-
return new OrganizationBlock(name, state,
|
|
39
|
+
return new OrganizationBlock(name, state, { ...opts, id: id });
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Returns true if the given object is an instance of OrganizationBlock. This is designed to work even
|
|
@@ -53,15 +53,15 @@ class OrganizationBlock extends pulumi.CustomResource {
|
|
|
53
53
|
opts = opts || {};
|
|
54
54
|
if (opts.id) {
|
|
55
55
|
const state = argsOrState;
|
|
56
|
-
resourceInputs["etag"] = state
|
|
57
|
-
resourceInputs["username"] = state
|
|
56
|
+
resourceInputs["etag"] = state?.etag;
|
|
57
|
+
resourceInputs["username"] = state?.username;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
const args = argsOrState;
|
|
61
|
-
if (
|
|
61
|
+
if (args?.username === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'username'");
|
|
63
63
|
}
|
|
64
|
-
resourceInputs["username"] = args
|
|
64
|
+
resourceInputs["username"] = args?.username;
|
|
65
65
|
resourceInputs["etag"] = undefined /*out*/;
|
|
66
66
|
}
|
|
67
67
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/organizationBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationBlock.js","sourceRoot":"","sources":["../organizationBlock.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"organizationBlock.js","sourceRoot":"","sources":["../organizationBlock.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,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