@pulumi/github 5.1.0 → 5.2.0-alpha.1673638210
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 +99 -0
- package/actionsEnvironmentSecret.js +64 -22
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +72 -0
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +72 -22
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +47 -0
- package/actionsOrganizationSecretRepositories.js +51 -22
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +119 -0
- package/actionsRepositoryPermissions.js +91 -0
- package/actionsRepositoryPermissions.js.map +1 -0
- package/actionsRunnerGroup.d.ts +88 -0
- package/actionsRunnerGroup.js +47 -22
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +70 -0
- package/actionsSecret.js +44 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepositories.d.ts +81 -0
- package/appInstallationRepositories.js +78 -0
- package/appInstallationRepositories.js.map +1 -0
- package/appInstallationRepository.d.ts +53 -0
- package/appInstallationRepository.js +57 -22
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +92 -0
- package/branch.js +60 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +53 -0
- package/branchDefault.js +57 -22
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +173 -3
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +138 -0
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/dependabotOrganizationSecret.js +22 -22
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +22 -22
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +42 -0
- package/emuGroupMapping.js +46 -22
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +31 -0
- package/getActionsOrganizationRegistrationToken.js +25 -0
- package/getActionsOrganizationRegistrationToken.js.map +1 -0
- package/getActionsOrganizationSecrets.d.ts +15 -0
- package/getActionsOrganizationSecrets.js +13 -4
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsPublicKey.d.ts +42 -0
- package/getActionsPublicKey.js +32 -5
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +67 -0
- package/getActionsRegistrationToken.js +47 -0
- package/getActionsRegistrationToken.js.map +1 -0
- package/getActionsSecrets.d.ts +46 -0
- package/getActionsSecrets.js +30 -5
- package/getActionsSecrets.js.map +1 -1
- package/getBranch.d.ts +51 -0
- package/getBranch.js +32 -5
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +51 -0
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +15 -0
- package/getDependabotOrganizationSecrets.js +13 -4
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +46 -0
- package/getDependabotSecrets.js +30 -5
- package/getDependabotSecrets.js.map +1 -1
- package/getExternalGroups.d.ts +17 -0
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +43 -0
- package/getGithubApp.js +30 -5
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +58 -0
- package/getMembership.js +36 -5
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +58 -0
- package/getOrganization.js +30 -5
- package/getOrganization.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +18 -0
- package/getOrganizationIpAllowList.js +15 -4
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +15 -0
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +80 -0
- package/getOrganizationTeams.js +52 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +18 -0
- package/getOrganizationWebhooks.js +15 -4
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +90 -0
- package/getRelease.js +8 -5
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +70 -0
- package/getRepositories.js +40 -5
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +141 -0
- package/getRepository.js +30 -5
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +49 -0
- package/getRepositoryBranches.js +30 -5
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryDeployKeys.d.ts +37 -0
- package/getRepositoryDeployKeys.js +30 -5
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryFile.d.ts +72 -0
- package/getRepositoryFile.js +36 -5
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +62 -0
- package/getRepositoryMilestone.js +34 -5
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +90 -0
- package/getRepositoryPullRequest.js +32 -5
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +90 -0
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +46 -0
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +36 -0
- package/getRepositoryWebhooks.js +34 -5
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +69 -0
- package/getTree.js +50 -5
- package/getTree.js.map +1 -1
- package/getUser.d.ts +102 -0
- package/getUser.js +38 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +55 -0
- package/getUsers.js +42 -5
- package/getUsers.js.map +1 -1
- package/index.d.ts +64 -44
- package/index.js +33 -3
- package/index.js.map +1 -1
- package/issue.d.ts +117 -6
- package/issue.js +85 -22
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +64 -0
- package/issueLabel.js +44 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +49 -0
- package/membership.js +49 -21
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +21 -0
- package/organizationBlock.js +31 -19
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +36 -0
- package/organizationProject.js +32 -20
- package/organizationProject.js.map +1 -1
- package/organizationSecurityManager.d.ts +67 -0
- package/organizationSecurityManager.js +71 -0
- package/organizationSecurityManager.js.map +1 -0
- package/organizationSettings.d.ts +274 -3
- package/organizationSettings.js +68 -22
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +63 -0
- package/organizationWebhook.js +52 -22
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +87 -0
- package/projectCard.js +73 -22
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +31 -0
- package/projectColumn.js +35 -22
- package/projectColumn.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/release.d.ts +194 -0
- package/release.js +121 -0
- package/release.js.map +1 -0
- package/repository.d.ts +391 -3
- package/repository.js +70 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +45 -12
- package/repositoryAutolinkReference.js +52 -22
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +90 -0
- package/repositoryCollaborator.js +64 -22
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +71 -0
- package/repositoryDeployKey.js +57 -22
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +61 -0
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +68 -34
- package/repositoryFile.js +59 -22
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +81 -3
- package/repositoryMilestone.js +49 -22
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +52 -0
- package/repositoryProject.js +41 -22
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +127 -4
- package/repositoryPullRequest.js +40 -22
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +41 -0
- package/repositoryTagProtection.js +45 -22
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryWebhook.d.ts +79 -0
- package/repositoryWebhook.js +59 -22
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +100 -0
- package/team.js +49 -22
- package/team.js.map +1 -1
- package/teamMembers.d.ts +58 -0
- package/teamMembers.js +62 -22
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +67 -0
- package/teamMembership.js +59 -22
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +59 -3
- package/teamRepository.js +57 -22
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +119 -0
- package/teamSettings.js +99 -0
- package/teamSettings.js.map +1 -0
- package/teamSyncGroupMapping.d.ts +36 -0
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +206 -0
- package/types/output.d.ts +498 -0
- package/userGpgKey.d.ts +39 -0
- package/userGpgKey.js +42 -21
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +30 -0
- package/userInvitationAccepter.js +38 -17
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +50 -0
- package/userSshKey.js +48 -22
- package/userSshKey.js.map +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource manages the team settings (in particular the request review delegation settings) within the organization
|
|
6
|
+
*
|
|
7
|
+
* Creating this resource will alter the team Code Review settings.
|
|
8
|
+
*
|
|
9
|
+
* The team must both belong to the same organization configured in the provider on GitHub.
|
|
10
|
+
*
|
|
11
|
+
* > **Note**: This resource relies on the v4 GraphQl GitHub API. If this API is not available, or the Stone Crop schema preview is not available, then this resource will not work as intended.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* // Add a repository to the team
|
|
20
|
+
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
21
|
+
* const codeReviewSettings = new github.TeamSettings("codeReviewSettings", {
|
|
22
|
+
* teamId: someTeam.id,
|
|
23
|
+
* reviewRequestDelegation: {
|
|
24
|
+
* algorithm: "ROUND_ROBIN",
|
|
25
|
+
* memberCount: 1,
|
|
26
|
+
* notify: true,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* GitHub Teams can be imported using the GitHub team ID, or the team slug e.g.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import github:index/teamSettings:TeamSettings code_review_settings 1234567
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* or,
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import github:index/teamSettings:TeamSettings code_review_settings SomeTeam
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class TeamSettings extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing TeamSettings resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamSettingsState, opts?: pulumi.CustomResourceOptions): TeamSettings;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of TeamSettings. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is TeamSettings;
|
|
61
|
+
/**
|
|
62
|
+
* The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details.
|
|
63
|
+
*/
|
|
64
|
+
readonly reviewRequestDelegation: pulumi.Output<outputs.TeamSettingsReviewRequestDelegation | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* The GitHub team id or the GitHub team slug
|
|
67
|
+
*/
|
|
68
|
+
readonly teamId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The slug of the Team within the Organization
|
|
71
|
+
*/
|
|
72
|
+
readonly teamSlug: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The unique ID of the Team on GitHub. Corresponds to the ID of the github_team_settings resource
|
|
75
|
+
*/
|
|
76
|
+
readonly teamUid: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Create a TeamSettings resource with the given unique name, arguments, and options.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resource.
|
|
81
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
82
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
83
|
+
*/
|
|
84
|
+
constructor(name: string, args: TeamSettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Input properties used for looking up and filtering TeamSettings resources.
|
|
88
|
+
*/
|
|
89
|
+
export interface TeamSettingsState {
|
|
90
|
+
/**
|
|
91
|
+
* The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details.
|
|
92
|
+
*/
|
|
93
|
+
reviewRequestDelegation?: pulumi.Input<inputs.TeamSettingsReviewRequestDelegation>;
|
|
94
|
+
/**
|
|
95
|
+
* The GitHub team id or the GitHub team slug
|
|
96
|
+
*/
|
|
97
|
+
teamId?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The slug of the Team within the Organization
|
|
100
|
+
*/
|
|
101
|
+
teamSlug?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The unique ID of the Team on GitHub. Corresponds to the ID of the github_team_settings resource
|
|
104
|
+
*/
|
|
105
|
+
teamUid?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a TeamSettings resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface TeamSettingsArgs {
|
|
111
|
+
/**
|
|
112
|
+
* The settings for delegating code reviews to individuals on behalf of the team. If this block is present, even without any fields, then review request delegation will be enabled for the team. See GitHub Review Request Delegation below for details. See [GitHub's documentation](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#configuring-team-notifications) for more configuration details.
|
|
113
|
+
*/
|
|
114
|
+
reviewRequestDelegation?: pulumi.Input<inputs.TeamSettingsReviewRequestDelegation>;
|
|
115
|
+
/**
|
|
116
|
+
* The GitHub team id or the GitHub team slug
|
|
117
|
+
*/
|
|
118
|
+
teamId: pulumi.Input<string>;
|
|
119
|
+
}
|
package/teamSettings.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TeamSettings = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource manages the team settings (in particular the request review delegation settings) within the organization
|
|
10
|
+
*
|
|
11
|
+
* Creating this resource will alter the team Code Review settings.
|
|
12
|
+
*
|
|
13
|
+
* The team must both belong to the same organization configured in the provider on GitHub.
|
|
14
|
+
*
|
|
15
|
+
* > **Note**: This resource relies on the v4 GraphQl GitHub API. If this API is not available, or the Stone Crop schema preview is not available, then this resource will not work as intended.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as github from "@pulumi/github";
|
|
22
|
+
*
|
|
23
|
+
* // Add a repository to the team
|
|
24
|
+
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
25
|
+
* const codeReviewSettings = new github.TeamSettings("codeReviewSettings", {
|
|
26
|
+
* teamId: someTeam.id,
|
|
27
|
+
* reviewRequestDelegation: {
|
|
28
|
+
* algorithm: "ROUND_ROBIN",
|
|
29
|
+
* memberCount: 1,
|
|
30
|
+
* notify: true,
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* GitHub Teams can be imported using the GitHub team ID, or the team slug e.g.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import github:index/teamSettings:TeamSettings code_review_settings 1234567
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* or,
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import github:index/teamSettings:TeamSettings code_review_settings SomeTeam
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class TeamSettings extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing TeamSettings resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, state, opts) {
|
|
60
|
+
return new TeamSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of TeamSettings. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj) {
|
|
67
|
+
if (obj === undefined || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return obj['__pulumiType'] === TeamSettings.__pulumiType;
|
|
71
|
+
}
|
|
72
|
+
constructor(name, argsOrState, opts) {
|
|
73
|
+
let resourceInputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState;
|
|
77
|
+
resourceInputs["reviewRequestDelegation"] = state ? state.reviewRequestDelegation : undefined;
|
|
78
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
79
|
+
resourceInputs["teamSlug"] = state ? state.teamSlug : undefined;
|
|
80
|
+
resourceInputs["teamUid"] = state ? state.teamUid : undefined;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
if ((!args || args.teamId === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'teamId'");
|
|
86
|
+
}
|
|
87
|
+
resourceInputs["reviewRequestDelegation"] = args ? args.reviewRequestDelegation : undefined;
|
|
88
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
89
|
+
resourceInputs["teamSlug"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["teamUid"] = undefined /*out*/;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(TeamSettings.__pulumiType, name, resourceInputs, opts);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.TeamSettings = TeamSettings;
|
|
97
|
+
/** @internal */
|
|
98
|
+
TeamSettings.__pulumiType = 'github:index/teamSettings:TeamSettings';
|
|
99
|
+
//# sourceMappingURL=teamSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamSettings.js","sourceRoot":"","sources":["../teamSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA1EL,oCA2EC;AA7DG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams.
|
|
6
|
+
* You must have team synchronization enabled for organizations owned by enterprise accounts.
|
|
7
|
+
*
|
|
8
|
+
* To learn more about team synchronization between IdPs and GitHub, please refer to:
|
|
9
|
+
* https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* GitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
4
19
|
export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
5
20
|
/**
|
|
6
21
|
* Get an existing TeamSyncGroupMapping resource's state with the given name, ID, and optional extra
|
|
@@ -18,7 +33,14 @@ export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
|
18
33
|
*/
|
|
19
34
|
static isInstance(obj: any): obj is TeamSyncGroupMapping;
|
|
20
35
|
readonly etag: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
38
|
+
* ___
|
|
39
|
+
*/
|
|
21
40
|
readonly groups: pulumi.Output<outputs.TeamSyncGroupMappingGroup[] | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Slug of the team
|
|
43
|
+
*/
|
|
22
44
|
readonly teamSlug: pulumi.Output<string>;
|
|
23
45
|
/**
|
|
24
46
|
* Create a TeamSyncGroupMapping resource with the given unique name, arguments, and options.
|
|
@@ -34,13 +56,27 @@ export declare class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
|
34
56
|
*/
|
|
35
57
|
export interface TeamSyncGroupMappingState {
|
|
36
58
|
etag?: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
61
|
+
* ___
|
|
62
|
+
*/
|
|
37
63
|
groups?: pulumi.Input<pulumi.Input<inputs.TeamSyncGroupMappingGroup>[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Slug of the team
|
|
66
|
+
*/
|
|
38
67
|
teamSlug?: pulumi.Input<string>;
|
|
39
68
|
}
|
|
40
69
|
/**
|
|
41
70
|
* The set of arguments for constructing a TeamSyncGroupMapping resource.
|
|
42
71
|
*/
|
|
43
72
|
export interface TeamSyncGroupMappingArgs {
|
|
73
|
+
/**
|
|
74
|
+
* An Array of GitHub Identity Provider Groups (or empty []). Each `group` block consists of the fields documented below.
|
|
75
|
+
* ___
|
|
76
|
+
*/
|
|
44
77
|
groups?: pulumi.Input<pulumi.Input<inputs.TeamSyncGroupMappingGroup>[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Slug of the team
|
|
80
|
+
*/
|
|
45
81
|
teamSlug: pulumi.Input<string>;
|
|
46
82
|
}
|
package/teamSyncGroupMapping.js
CHANGED
|
@@ -5,28 +5,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TeamSyncGroupMapping = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams.
|
|
10
|
+
* You must have team synchronization enabled for organizations owned by enterprise accounts.
|
|
11
|
+
*
|
|
12
|
+
* To learn more about team synchronization between IdPs and GitHub, please refer to:
|
|
13
|
+
* https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github
|
|
14
|
+
*
|
|
15
|
+
* ## Import
|
|
16
|
+
*
|
|
17
|
+
* GitHub Team Sync Group Mappings can be imported using the GitHub team `slug` e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
8
23
|
class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
9
|
-
constructor(name, argsOrState, opts) {
|
|
10
|
-
let resourceInputs = {};
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
if (opts.id) {
|
|
13
|
-
const state = argsOrState;
|
|
14
|
-
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
15
|
-
resourceInputs["groups"] = state ? state.groups : undefined;
|
|
16
|
-
resourceInputs["teamSlug"] = state ? state.teamSlug : undefined;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
const args = argsOrState;
|
|
20
|
-
if ((!args || args.teamSlug === undefined) && !opts.urn) {
|
|
21
|
-
throw new Error("Missing required property 'teamSlug'");
|
|
22
|
-
}
|
|
23
|
-
resourceInputs["groups"] = args ? args.groups : undefined;
|
|
24
|
-
resourceInputs["teamSlug"] = args ? args.teamSlug : undefined;
|
|
25
|
-
resourceInputs["etag"] = undefined /*out*/;
|
|
26
|
-
}
|
|
27
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
28
|
-
super(TeamSyncGroupMapping.__pulumiType, name, resourceInputs, opts);
|
|
29
|
-
}
|
|
30
24
|
/**
|
|
31
25
|
* Get an existing TeamSyncGroupMapping resource's state with the given name, ID, and optional extra
|
|
32
26
|
* properties used to qualify the lookup.
|
|
@@ -49,6 +43,27 @@ class TeamSyncGroupMapping extends pulumi.CustomResource {
|
|
|
49
43
|
}
|
|
50
44
|
return obj['__pulumiType'] === TeamSyncGroupMapping.__pulumiType;
|
|
51
45
|
}
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
52
|
+
resourceInputs["groups"] = state ? state.groups : undefined;
|
|
53
|
+
resourceInputs["teamSlug"] = state ? state.teamSlug : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.teamSlug === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'teamSlug'");
|
|
59
|
+
}
|
|
60
|
+
resourceInputs["groups"] = args ? args.groups : undefined;
|
|
61
|
+
resourceInputs["teamSlug"] = args ? args.teamSlug : undefined;
|
|
62
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
super(TeamSyncGroupMapping.__pulumiType, name, resourceInputs, opts);
|
|
66
|
+
}
|
|
52
67
|
}
|
|
53
68
|
exports.TeamSyncGroupMapping = TeamSyncGroupMapping;
|
|
54
69
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamSyncGroupMapping.js","sourceRoot":"","sources":["../teamSyncGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"teamSyncGroupMapping.js","sourceRoot":"","sources":["../teamSyncGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAqBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,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,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAlEL,oDAmEC;AArDG,gBAAgB;AACO,iCAAY,GAAG,wDAAwD,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -1,53 +1,143 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
export interface ActionsOrganizationPermissionsAllowedActionsConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Whether GitHub-owned actions are allowed in the organization.
|
|
6
|
+
*/
|
|
4
7
|
githubOwnedAllowed: pulumi.Input<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
|
|
10
|
+
*/
|
|
5
11
|
patternsAlloweds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
|
|
14
|
+
*/
|
|
6
15
|
verifiedAllowed?: pulumi.Input<boolean>;
|
|
7
16
|
}
|
|
8
17
|
export interface ActionsOrganizationPermissionsEnabledRepositoriesConfig {
|
|
18
|
+
/**
|
|
19
|
+
* List of repository IDs to enable for GitHub Actions.
|
|
20
|
+
*/
|
|
9
21
|
repositoryIds: pulumi.Input<pulumi.Input<number>[]>;
|
|
10
22
|
}
|
|
23
|
+
export interface ActionsRepositoryPermissionsAllowedActionsConfig {
|
|
24
|
+
/**
|
|
25
|
+
* Whether GitHub-owned actions are allowed in the repository.
|
|
26
|
+
*/
|
|
27
|
+
githubOwnedAllowed: pulumi.Input<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
|
|
30
|
+
*/
|
|
31
|
+
patternsAlloweds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
|
|
34
|
+
*/
|
|
35
|
+
verifiedAllowed?: pulumi.Input<boolean>;
|
|
36
|
+
}
|
|
11
37
|
export interface BranchProtectionRequiredPullRequestReview {
|
|
38
|
+
/**
|
|
39
|
+
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
40
|
+
*/
|
|
12
41
|
dismissStaleReviews?: pulumi.Input<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* The list of actor Names/IDs with dismissal access. If not empty, `restrictDismissals` is ignored. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
44
|
+
*/
|
|
13
45
|
dismissalRestrictions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
46
|
+
/**
|
|
47
|
+
* The list of actor Names/IDs that are allowed to bypass pull request requirements. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
48
|
+
*/
|
|
14
49
|
pullRequestBypassers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Require an approved review in pull requests including files with a designated code owner. Defaults to `false`.
|
|
52
|
+
*/
|
|
15
53
|
requireCodeOwnerReviews?: pulumi.Input<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
* Require that The most recent push must be approved by someone other than the last pusher. Defaults to `false`
|
|
56
|
+
*/
|
|
57
|
+
requireLastPushApproval?: pulumi.Input<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* Require x number of approvals to satisfy branch protection requirements. If this is specified it must be a number between 0-6. This requirement matches GitHub's API, see the upstream [documentation](https://developer.github.com/v3/repos/branches/#parameters-1) for more information.
|
|
60
|
+
* (https://developer.github.com/v3/repos/branches/#parameters-1) for more information.
|
|
61
|
+
*/
|
|
16
62
|
requiredApprovingReviewCount?: pulumi.Input<number>;
|
|
63
|
+
/**
|
|
64
|
+
* Restrict pull request review dismissals.
|
|
65
|
+
*/
|
|
17
66
|
restrictDismissals?: pulumi.Input<boolean>;
|
|
18
67
|
}
|
|
19
68
|
export interface BranchProtectionRequiredStatusCheck {
|
|
69
|
+
/**
|
|
70
|
+
* The list of status checks to require in order to merge into this branch. No status checks are required by default.
|
|
71
|
+
*/
|
|
20
72
|
contexts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
73
|
+
/**
|
|
74
|
+
* Require branches to be up to date before merging. Defaults to `false`.
|
|
75
|
+
*/
|
|
21
76
|
strict?: pulumi.Input<boolean>;
|
|
22
77
|
}
|
|
23
78
|
export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
79
|
+
/**
|
|
80
|
+
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
81
|
+
*/
|
|
24
82
|
dismissStaleReviews?: pulumi.Input<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* The list of team slugs with dismissal access.
|
|
85
|
+
* Always use `slug` of the team, **not** its name. Each team already **has** to have access to the repository.
|
|
86
|
+
*/
|
|
25
87
|
dismissalTeams?: pulumi.Input<pulumi.Input<string>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* The list of user logins with dismissal access
|
|
90
|
+
*/
|
|
26
91
|
dismissalUsers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
27
92
|
/**
|
|
28
93
|
* @deprecated Use enforce_admins instead
|
|
29
94
|
*/
|
|
30
95
|
includeAdmins?: pulumi.Input<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Require an approved review in pull requests including files with a designated code owner. Defaults to `false`.
|
|
98
|
+
*/
|
|
31
99
|
requireCodeOwnerReviews?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Require x number of approvals to satisfy branch protection requirements. If this is specified it must be a number between 0-6. This requirement matches GitHub's API, see the upstream [documentation](https://developer.github.com/v3/repos/branches/#parameters-1) for more information.
|
|
102
|
+
*/
|
|
32
103
|
requiredApprovingReviewCount?: pulumi.Input<number>;
|
|
33
104
|
}
|
|
34
105
|
export interface BranchProtectionV3RequiredStatusChecks {
|
|
106
|
+
/**
|
|
107
|
+
* The list of status checks to require in order to merge into this branch. No status checks are required by default.
|
|
108
|
+
*/
|
|
35
109
|
contexts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
36
110
|
/**
|
|
37
111
|
* @deprecated Use enforce_admins instead
|
|
38
112
|
*/
|
|
39
113
|
includeAdmins?: pulumi.Input<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Require branches to be up to date before merging. Defaults to `false`.
|
|
116
|
+
*/
|
|
40
117
|
strict?: pulumi.Input<boolean>;
|
|
41
118
|
}
|
|
42
119
|
export interface BranchProtectionV3Restrictions {
|
|
120
|
+
/**
|
|
121
|
+
* The list of app slugs with push access.
|
|
122
|
+
*/
|
|
43
123
|
apps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* The list of team slugs with push access.
|
|
126
|
+
* Always use `slug` of the team, **not** its name. Each team already **has** to have access to the repository.
|
|
127
|
+
*/
|
|
44
128
|
teams?: pulumi.Input<pulumi.Input<string>[]>;
|
|
129
|
+
/**
|
|
130
|
+
* The list of user logins with push access.
|
|
131
|
+
*/
|
|
45
132
|
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
46
133
|
}
|
|
47
134
|
export interface OrganizationWebhookConfiguration {
|
|
48
135
|
contentType?: pulumi.Input<string>;
|
|
49
136
|
insecureSsl?: pulumi.Input<boolean>;
|
|
50
137
|
secret?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* URL of the webhook
|
|
140
|
+
*/
|
|
51
141
|
url: pulumi.Input<string>;
|
|
52
142
|
}
|
|
53
143
|
export interface ProviderAppAuth {
|
|
@@ -56,43 +146,159 @@ export interface ProviderAppAuth {
|
|
|
56
146
|
pemFile: pulumi.Input<string>;
|
|
57
147
|
}
|
|
58
148
|
export interface RepositoryEnvironmentDeploymentBranchPolicy {
|
|
149
|
+
/**
|
|
150
|
+
* Whether only branches that match the specified name patterns can deploy to this environment.
|
|
151
|
+
*/
|
|
59
152
|
customBranchPolicies: pulumi.Input<boolean>;
|
|
153
|
+
/**
|
|
154
|
+
* Whether only branches with branch protection rules can deploy to this environment.
|
|
155
|
+
*/
|
|
60
156
|
protectedBranches: pulumi.Input<boolean>;
|
|
61
157
|
}
|
|
62
158
|
export interface RepositoryEnvironmentReviewer {
|
|
159
|
+
/**
|
|
160
|
+
* Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
|
|
161
|
+
*/
|
|
63
162
|
teams?: pulumi.Input<pulumi.Input<number>[]>;
|
|
163
|
+
/**
|
|
164
|
+
* Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
|
|
165
|
+
*/
|
|
64
166
|
users?: pulumi.Input<pulumi.Input<number>[]>;
|
|
65
167
|
}
|
|
66
168
|
export interface RepositoryPages {
|
|
169
|
+
/**
|
|
170
|
+
* The custom domain for the repository. This can only be set after the repository has been created.
|
|
171
|
+
*/
|
|
67
172
|
cname?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the rendered GitHub Pages site has a custom 404 page.
|
|
175
|
+
*/
|
|
68
176
|
custom404?: pulumi.Input<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
|
|
179
|
+
*/
|
|
69
180
|
htmlUrl?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
|
|
183
|
+
*/
|
|
70
184
|
source: pulumi.Input<inputs.RepositoryPagesSource>;
|
|
185
|
+
/**
|
|
186
|
+
* Set to `enabled` to enable advanced security features on the repository. Can be `enabled` or `disabled`.
|
|
187
|
+
*/
|
|
71
188
|
status?: pulumi.Input<string>;
|
|
72
189
|
url?: pulumi.Input<string>;
|
|
73
190
|
}
|
|
74
191
|
export interface RepositoryPagesSource {
|
|
192
|
+
/**
|
|
193
|
+
* The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
|
|
194
|
+
*/
|
|
75
195
|
branch: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The repository directory from which the site publishes (Default: `/`).
|
|
198
|
+
*/
|
|
76
199
|
path?: pulumi.Input<string>;
|
|
77
200
|
}
|
|
201
|
+
export interface RepositorySecurityAndAnalysis {
|
|
202
|
+
/**
|
|
203
|
+
* The advanced security configuration for the repository. See Advanced Security Configuration below for details.
|
|
204
|
+
*/
|
|
205
|
+
advancedSecurity: pulumi.Input<inputs.RepositorySecurityAndAnalysisAdvancedSecurity>;
|
|
206
|
+
/**
|
|
207
|
+
* The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.
|
|
208
|
+
*/
|
|
209
|
+
secretScanning: pulumi.Input<inputs.RepositorySecurityAndAnalysisSecretScanning>;
|
|
210
|
+
/**
|
|
211
|
+
* The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.
|
|
212
|
+
*/
|
|
213
|
+
secretScanningPushProtection: pulumi.Input<inputs.RepositorySecurityAndAnalysisSecretScanningPushProtection>;
|
|
214
|
+
}
|
|
215
|
+
export interface RepositorySecurityAndAnalysisAdvancedSecurity {
|
|
216
|
+
/**
|
|
217
|
+
* Set to `enabled` to enable advanced security features on the repository. Can be `enabled` or `disabled`.
|
|
218
|
+
*/
|
|
219
|
+
status: pulumi.Input<string>;
|
|
220
|
+
}
|
|
221
|
+
export interface RepositorySecurityAndAnalysisSecretScanning {
|
|
222
|
+
/**
|
|
223
|
+
* Set to `enabled` to enable advanced security features on the repository. Can be `enabled` or `disabled`.
|
|
224
|
+
*/
|
|
225
|
+
status: pulumi.Input<string>;
|
|
226
|
+
}
|
|
227
|
+
export interface RepositorySecurityAndAnalysisSecretScanningPushProtection {
|
|
228
|
+
/**
|
|
229
|
+
* Set to `enabled` to enable advanced security features on the repository. Can be `enabled` or `disabled`.
|
|
230
|
+
*/
|
|
231
|
+
status: pulumi.Input<string>;
|
|
232
|
+
}
|
|
78
233
|
export interface RepositoryTemplate {
|
|
234
|
+
/**
|
|
235
|
+
* Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).
|
|
236
|
+
*/
|
|
79
237
|
includeAllBranches?: pulumi.Input<boolean>;
|
|
238
|
+
/**
|
|
239
|
+
* The GitHub organization or user the template repository is owned by.
|
|
240
|
+
*/
|
|
80
241
|
owner: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* The name of the template repository.
|
|
244
|
+
*/
|
|
81
245
|
repository: pulumi.Input<string>;
|
|
82
246
|
}
|
|
83
247
|
export interface RepositoryWebhookConfiguration {
|
|
248
|
+
/**
|
|
249
|
+
* The content type for the payload. Valid values are either `form` or `json`.
|
|
250
|
+
*/
|
|
84
251
|
contentType?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Insecure SSL boolean toggle. Defaults to `false`.
|
|
254
|
+
*/
|
|
85
255
|
insecureSsl?: pulumi.Input<boolean>;
|
|
256
|
+
/**
|
|
257
|
+
* The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).
|
|
258
|
+
*/
|
|
86
259
|
secret?: pulumi.Input<string>;
|
|
260
|
+
/**
|
|
261
|
+
* The URL of the webhook.
|
|
262
|
+
*/
|
|
87
263
|
url: pulumi.Input<string>;
|
|
88
264
|
}
|
|
89
265
|
export interface TeamMembersMember {
|
|
266
|
+
/**
|
|
267
|
+
* The role of the user within the team.
|
|
268
|
+
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
269
|
+
*/
|
|
90
270
|
role?: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* The user to add to the team.
|
|
273
|
+
*/
|
|
91
274
|
username: pulumi.Input<string>;
|
|
92
275
|
}
|
|
276
|
+
export interface TeamSettingsReviewRequestDelegation {
|
|
277
|
+
/**
|
|
278
|
+
* The algorithm to use when assigning pull requests to team members. Supported values are `ROUND_ROBIN` and `LOAD_BALANCE`. Default value is `ROUND_ROBIN`
|
|
279
|
+
*/
|
|
280
|
+
algorithm?: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* The number of team members to assign to a pull request
|
|
283
|
+
*/
|
|
284
|
+
memberCount?: pulumi.Input<number>;
|
|
285
|
+
/**
|
|
286
|
+
* whether to notify the entire team when at least one member is also assigned to the pull request
|
|
287
|
+
*/
|
|
288
|
+
notify?: pulumi.Input<boolean>;
|
|
289
|
+
}
|
|
93
290
|
export interface TeamSyncGroupMappingGroup {
|
|
291
|
+
/**
|
|
292
|
+
* The description of the IdP group.
|
|
293
|
+
*/
|
|
94
294
|
groupDescription: pulumi.Input<string>;
|
|
295
|
+
/**
|
|
296
|
+
* The ID of the IdP group.
|
|
297
|
+
*/
|
|
95
298
|
groupId: pulumi.Input<string>;
|
|
299
|
+
/**
|
|
300
|
+
* The name of the IdP group.
|
|
301
|
+
*/
|
|
96
302
|
groupName: pulumi.Input<string>;
|
|
97
303
|
}
|
|
98
304
|
export declare namespace config {
|