@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
package/branch.d.ts
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage branches within your repository.
|
|
4
|
+
*
|
|
5
|
+
* Additional constraints can be applied to ensure your branch is created from
|
|
6
|
+
* another branch or commit.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const development = new github.Branch("development", {
|
|
15
|
+
* branch: "development",
|
|
16
|
+
* repository: "example",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* GitHub Branch can be imported using an ID made up of `repository:branch`, e.g.
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:main
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* Importing github branch into an instance object (when using a for each block to manage multiple branches)
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import github:index/branch:Branch terraform["terraform"] terraform:main
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* Optionally, a source branch may be specified using an ID of `repository:branch:source_branch`. This is useful for importing branches that do not branch directly off main.
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:feature-branch:dev
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
2
40
|
export declare class Branch extends pulumi.CustomResource {
|
|
3
41
|
/**
|
|
4
42
|
* Get an existing Branch resource's state with the given name, ID, and optional extra
|
|
@@ -15,12 +53,33 @@ export declare class Branch extends pulumi.CustomResource {
|
|
|
15
53
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
54
|
*/
|
|
17
55
|
static isInstance(obj: any): obj is Branch;
|
|
56
|
+
/**
|
|
57
|
+
* The repository branch to create.
|
|
58
|
+
*/
|
|
18
59
|
readonly branch: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* An etag representing the Branch object.
|
|
62
|
+
*/
|
|
19
63
|
readonly etag: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* A string representing a branch reference, in the form of `refs/heads/<branch>`.
|
|
66
|
+
*/
|
|
20
67
|
readonly ref: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The GitHub repository name.
|
|
70
|
+
*/
|
|
21
71
|
readonly repository: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* A string storing the reference's `HEAD` commit's SHA1.
|
|
74
|
+
*/
|
|
22
75
|
readonly sha: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The branch name to start from. Defaults to `main`.
|
|
78
|
+
*/
|
|
23
79
|
readonly sourceBranch: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
|
|
82
|
+
*/
|
|
24
83
|
readonly sourceSha: pulumi.Output<string>;
|
|
25
84
|
/**
|
|
26
85
|
* Create a Branch resource with the given unique name, arguments, and options.
|
|
@@ -35,20 +94,53 @@ export declare class Branch extends pulumi.CustomResource {
|
|
|
35
94
|
* Input properties used for looking up and filtering Branch resources.
|
|
36
95
|
*/
|
|
37
96
|
export interface BranchState {
|
|
97
|
+
/**
|
|
98
|
+
* The repository branch to create.
|
|
99
|
+
*/
|
|
38
100
|
branch?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* An etag representing the Branch object.
|
|
103
|
+
*/
|
|
39
104
|
etag?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* A string representing a branch reference, in the form of `refs/heads/<branch>`.
|
|
107
|
+
*/
|
|
40
108
|
ref?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The GitHub repository name.
|
|
111
|
+
*/
|
|
41
112
|
repository?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* A string storing the reference's `HEAD` commit's SHA1.
|
|
115
|
+
*/
|
|
42
116
|
sha?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The branch name to start from. Defaults to `main`.
|
|
119
|
+
*/
|
|
43
120
|
sourceBranch?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
|
|
123
|
+
*/
|
|
44
124
|
sourceSha?: pulumi.Input<string>;
|
|
45
125
|
}
|
|
46
126
|
/**
|
|
47
127
|
* The set of arguments for constructing a Branch resource.
|
|
48
128
|
*/
|
|
49
129
|
export interface BranchArgs {
|
|
130
|
+
/**
|
|
131
|
+
* The repository branch to create.
|
|
132
|
+
*/
|
|
50
133
|
branch: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The GitHub repository name.
|
|
136
|
+
*/
|
|
51
137
|
repository: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The branch name to start from. Defaults to `main`.
|
|
140
|
+
*/
|
|
52
141
|
sourceBranch?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The commit hash to start from. Defaults to the tip of `sourceBranch`. If provided, `sourceBranch` is ignored.
|
|
144
|
+
*/
|
|
53
145
|
sourceSha?: pulumi.Input<string>;
|
|
54
146
|
}
|
package/branch.js
CHANGED
|
@@ -5,7 +5,67 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Branch = 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 branches within your repository.
|
|
10
|
+
*
|
|
11
|
+
* Additional constraints can be applied to ensure your branch is created from
|
|
12
|
+
* another branch or commit.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as github from "@pulumi/github";
|
|
19
|
+
*
|
|
20
|
+
* const development = new github.Branch("development", {
|
|
21
|
+
* branch: "development",
|
|
22
|
+
* repository: "example",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* GitHub Branch can be imported using an ID made up of `repository:branch`, e.g.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:main
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* Importing github branch into an instance object (when using a for each block to manage multiple branches)
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import github:index/branch:Branch terraform["terraform"] terraform:main
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* Optionally, a source branch may be specified using an ID of `repository:branch:source_branch`. This is useful for importing branches that do not branch directly off main.
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import github:index/branch:Branch terraform terraform:feature-branch:dev
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
8
46
|
class Branch extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing Branch resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new Branch(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of Branch. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === Branch.__pulumiType;
|
|
68
|
+
}
|
|
9
69
|
constructor(name, argsOrState, opts) {
|
|
10
70
|
let resourceInputs = {};
|
|
11
71
|
opts = opts || {};
|
|
@@ -38,28 +98,6 @@ class Branch extends pulumi.CustomResource {
|
|
|
38
98
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
39
99
|
super(Branch.__pulumiType, name, resourceInputs, opts);
|
|
40
100
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Get an existing Branch resource's state with the given name, ID, and optional extra
|
|
43
|
-
* properties used to qualify the lookup.
|
|
44
|
-
*
|
|
45
|
-
* @param name The _unique_ name of the resulting resource.
|
|
46
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
-
* @param state Any extra arguments used during the lookup.
|
|
48
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
-
*/
|
|
50
|
-
static get(name, id, state, opts) {
|
|
51
|
-
return new Branch(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Returns true if the given object is an instance of Branch. This is designed to work even
|
|
55
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
-
*/
|
|
57
|
-
static isInstance(obj) {
|
|
58
|
-
if (obj === undefined || obj === null) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
return obj['__pulumiType'] === Branch.__pulumiType;
|
|
62
|
-
}
|
|
63
101
|
}
|
|
64
102
|
exports.Branch = Branch;
|
|
65
103
|
/** @internal */
|
package/branch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../branch.ts"],"names":[],"mappings":"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"}
|
package/branchDefault.d.ts
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a GitHub branch default resource.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to set the default branch for a given repository.
|
|
6
|
+
*
|
|
7
|
+
* Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* const example = new github.Repository("example", {
|
|
16
|
+
* description: "My awesome codebase",
|
|
17
|
+
* autoInit: true,
|
|
18
|
+
* });
|
|
19
|
+
* const development = new github.Branch("development", {
|
|
20
|
+
* repository: example.name,
|
|
21
|
+
* branch: "development",
|
|
22
|
+
* });
|
|
23
|
+
* const _default = new github.BranchDefault("default", {
|
|
24
|
+
* repository: example.name,
|
|
25
|
+
* branch: development.branch,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
2
37
|
export declare class BranchDefault extends pulumi.CustomResource {
|
|
3
38
|
/**
|
|
4
39
|
* Get an existing BranchDefault resource's state with the given name, ID, and optional extra
|
|
@@ -15,7 +50,13 @@ export declare class BranchDefault extends pulumi.CustomResource {
|
|
|
15
50
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
51
|
*/
|
|
17
52
|
static isInstance(obj: any): obj is BranchDefault;
|
|
53
|
+
/**
|
|
54
|
+
* The branch (e.g. `main`)
|
|
55
|
+
*/
|
|
18
56
|
readonly branch: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The GitHub repository
|
|
59
|
+
*/
|
|
19
60
|
readonly repository: pulumi.Output<string>;
|
|
20
61
|
/**
|
|
21
62
|
* Create a BranchDefault resource with the given unique name, arguments, and options.
|
|
@@ -30,13 +71,25 @@ export declare class BranchDefault extends pulumi.CustomResource {
|
|
|
30
71
|
* Input properties used for looking up and filtering BranchDefault resources.
|
|
31
72
|
*/
|
|
32
73
|
export interface BranchDefaultState {
|
|
74
|
+
/**
|
|
75
|
+
* The branch (e.g. `main`)
|
|
76
|
+
*/
|
|
33
77
|
branch?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The GitHub repository
|
|
80
|
+
*/
|
|
34
81
|
repository?: pulumi.Input<string>;
|
|
35
82
|
}
|
|
36
83
|
/**
|
|
37
84
|
* The set of arguments for constructing a BranchDefault resource.
|
|
38
85
|
*/
|
|
39
86
|
export interface BranchDefaultArgs {
|
|
87
|
+
/**
|
|
88
|
+
* The branch (e.g. `main`)
|
|
89
|
+
*/
|
|
40
90
|
branch: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The GitHub repository
|
|
93
|
+
*/
|
|
41
94
|
repository: pulumi.Input<string>;
|
|
42
95
|
}
|
package/branchDefault.js
CHANGED
|
@@ -5,29 +5,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.BranchDefault = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a GitHub branch default resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to set the default branch for a given repository.
|
|
12
|
+
*
|
|
13
|
+
* Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as github from "@pulumi/github";
|
|
20
|
+
*
|
|
21
|
+
* const example = new github.Repository("example", {
|
|
22
|
+
* description: "My awesome codebase",
|
|
23
|
+
* autoInit: true,
|
|
24
|
+
* });
|
|
25
|
+
* const development = new github.Branch("development", {
|
|
26
|
+
* repository: example.name,
|
|
27
|
+
* branch: "development",
|
|
28
|
+
* });
|
|
29
|
+
* const _default = new github.BranchDefault("default", {
|
|
30
|
+
* repository: example.name,
|
|
31
|
+
* branch: development.branch,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
8
43
|
class BranchDefault extends pulumi.CustomResource {
|
|
9
|
-
constructor(name, argsOrState, opts) {
|
|
10
|
-
let resourceInputs = {};
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
if (opts.id) {
|
|
13
|
-
const state = argsOrState;
|
|
14
|
-
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
15
|
-
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
const args = argsOrState;
|
|
19
|
-
if ((!args || args.branch === undefined) && !opts.urn) {
|
|
20
|
-
throw new Error("Missing required property 'branch'");
|
|
21
|
-
}
|
|
22
|
-
if ((!args || args.repository === undefined) && !opts.urn) {
|
|
23
|
-
throw new Error("Missing required property 'repository'");
|
|
24
|
-
}
|
|
25
|
-
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
26
|
-
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
29
|
-
super(BranchDefault.__pulumiType, name, resourceInputs, opts);
|
|
30
|
-
}
|
|
31
44
|
/**
|
|
32
45
|
* Get an existing BranchDefault resource's state with the given name, ID, and optional extra
|
|
33
46
|
* properties used to qualify the lookup.
|
|
@@ -50,6 +63,28 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
50
63
|
}
|
|
51
64
|
return obj['__pulumiType'] === BranchDefault.__pulumiType;
|
|
52
65
|
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
72
|
+
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const args = argsOrState;
|
|
76
|
+
if ((!args || args.branch === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'branch'");
|
|
78
|
+
}
|
|
79
|
+
if ((!args || args.repository === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'repository'");
|
|
81
|
+
}
|
|
82
|
+
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
83
|
+
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
84
|
+
}
|
|
85
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
|
+
super(BranchDefault.__pulumiType, name, resourceInputs, opts);
|
|
87
|
+
}
|
|
53
88
|
}
|
|
54
89
|
exports.BranchDefault = BranchDefault;
|
|
55
90
|
/** @internal */
|
package/branchDefault.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,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,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAjEL,sCAkEC;AApDG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/branchProtection.d.ts
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
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
|
+
* Protects a GitHub branch.
|
|
6
|
+
*
|
|
7
|
+
* This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
16
|
+
* const exampleUser = github.getUser({
|
|
17
|
+
* username: "example",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleTeam = new github.Team("exampleTeam", {});
|
|
20
|
+
* // Protect the main branch of the foo repository. Additionally, require that
|
|
21
|
+
* // the "ci/travis" context to be passing and only allow the engineers team merge
|
|
22
|
+
* // to the branch.
|
|
23
|
+
* const exampleBranchProtection = new github.BranchProtection("exampleBranchProtection", {
|
|
24
|
+
* repositoryId: exampleRepository.nodeId,
|
|
25
|
+
* pattern: "main",
|
|
26
|
+
* enforceAdmins: true,
|
|
27
|
+
* allowsDeletions: true,
|
|
28
|
+
* requiredStatusChecks: [{
|
|
29
|
+
* strict: false,
|
|
30
|
+
* contexts: ["ci/travis"],
|
|
31
|
+
* }],
|
|
32
|
+
* requiredPullRequestReviews: [{
|
|
33
|
+
* dismissStaleReviews: true,
|
|
34
|
+
* restrictDismissals: true,
|
|
35
|
+
* dismissalRestrictions: [
|
|
36
|
+
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
37
|
+
* exampleTeam.nodeId,
|
|
38
|
+
* "/exampleuser",
|
|
39
|
+
* "exampleorganization/exampleteam",
|
|
40
|
+
* ],
|
|
41
|
+
* }],
|
|
42
|
+
* pushRestrictions: [
|
|
43
|
+
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
44
|
+
* "/exampleuser",
|
|
45
|
+
* "exampleorganization/exampleteam",
|
|
46
|
+
* ],
|
|
47
|
+
* });
|
|
48
|
+
* const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
|
|
49
|
+
* teamId: exampleTeam.id,
|
|
50
|
+
* repository: exampleRepository.name,
|
|
51
|
+
* permission: "pull",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* GitHub Branch Protection can be imported using an ID made up of `repository:pattern`, e.g.
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import github:index/branchProtection:BranchProtection terraform terraform:main
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
4
63
|
export declare class BranchProtection extends pulumi.CustomResource {
|
|
5
64
|
/**
|
|
6
65
|
* Get an existing BranchProtection resource's state with the given name, ID, and optional extra
|
|
@@ -17,20 +76,57 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
17
76
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
77
|
*/
|
|
19
78
|
static isInstance(obj: any): obj is BranchProtection;
|
|
79
|
+
/**
|
|
80
|
+
* Boolean, setting this to `true` to allow the branch to be deleted.
|
|
81
|
+
*/
|
|
20
82
|
readonly allowsDeletions: pulumi.Output<boolean | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
85
|
+
*/
|
|
21
86
|
readonly allowsForcePushes: pulumi.Output<boolean | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Boolean, setting this to `true` to block creating the branch.
|
|
89
|
+
*/
|
|
22
90
|
readonly blocksCreations: pulumi.Output<boolean | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
93
|
+
*/
|
|
23
94
|
readonly enforceAdmins: pulumi.Output<boolean | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Boolean, Setting this to `true` will make the branch read-only and preventing any pushes to it. Defaults to `false`
|
|
97
|
+
*/
|
|
98
|
+
readonly lockBranch: pulumi.Output<boolean | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Identifies the protection rule pattern.
|
|
101
|
+
*/
|
|
24
102
|
readonly pattern: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
105
|
+
*/
|
|
25
106
|
readonly pushRestrictions: pulumi.Output<string[] | undefined>;
|
|
26
107
|
/**
|
|
27
|
-
*
|
|
108
|
+
* The name or node ID of the repository associated with this branch protection rule.
|
|
28
109
|
*/
|
|
29
110
|
readonly repositoryId: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
|
|
113
|
+
*/
|
|
30
114
|
readonly requireConversationResolution: pulumi.Output<boolean | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* Boolean, setting this to `true` requires all commits to be signed with GPG.
|
|
117
|
+
*/
|
|
31
118
|
readonly requireSignedCommits: pulumi.Output<boolean | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
|
|
121
|
+
*/
|
|
32
122
|
readonly requiredLinearHistory: pulumi.Output<boolean | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
|
|
125
|
+
*/
|
|
33
126
|
readonly requiredPullRequestReviews: pulumi.Output<outputs.BranchProtectionRequiredPullRequestReview[] | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
129
|
+
*/
|
|
34
130
|
readonly requiredStatusChecks: pulumi.Output<outputs.BranchProtectionRequiredStatusCheck[] | undefined>;
|
|
35
131
|
/**
|
|
36
132
|
* Create a BranchProtection resource with the given unique name, arguments, and options.
|
|
@@ -45,39 +141,113 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
45
141
|
* Input properties used for looking up and filtering BranchProtection resources.
|
|
46
142
|
*/
|
|
47
143
|
export interface BranchProtectionState {
|
|
144
|
+
/**
|
|
145
|
+
* Boolean, setting this to `true` to allow the branch to be deleted.
|
|
146
|
+
*/
|
|
48
147
|
allowsDeletions?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
150
|
+
*/
|
|
49
151
|
allowsForcePushes?: pulumi.Input<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* Boolean, setting this to `true` to block creating the branch.
|
|
154
|
+
*/
|
|
50
155
|
blocksCreations?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
158
|
+
*/
|
|
51
159
|
enforceAdmins?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Boolean, Setting this to `true` will make the branch read-only and preventing any pushes to it. Defaults to `false`
|
|
162
|
+
*/
|
|
163
|
+
lockBranch?: pulumi.Input<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* Identifies the protection rule pattern.
|
|
166
|
+
*/
|
|
52
167
|
pattern?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
170
|
+
*/
|
|
53
171
|
pushRestrictions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
54
172
|
/**
|
|
55
|
-
*
|
|
173
|
+
* The name or node ID of the repository associated with this branch protection rule.
|
|
56
174
|
*/
|
|
57
175
|
repositoryId?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
|
|
178
|
+
*/
|
|
58
179
|
requireConversationResolution?: pulumi.Input<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Boolean, setting this to `true` requires all commits to be signed with GPG.
|
|
182
|
+
*/
|
|
59
183
|
requireSignedCommits?: pulumi.Input<boolean>;
|
|
184
|
+
/**
|
|
185
|
+
* Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
|
|
186
|
+
*/
|
|
60
187
|
requiredLinearHistory?: pulumi.Input<boolean>;
|
|
188
|
+
/**
|
|
189
|
+
* Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
|
|
190
|
+
*/
|
|
61
191
|
requiredPullRequestReviews?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredPullRequestReview>[]>;
|
|
192
|
+
/**
|
|
193
|
+
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
194
|
+
*/
|
|
62
195
|
requiredStatusChecks?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredStatusCheck>[]>;
|
|
63
196
|
}
|
|
64
197
|
/**
|
|
65
198
|
* The set of arguments for constructing a BranchProtection resource.
|
|
66
199
|
*/
|
|
67
200
|
export interface BranchProtectionArgs {
|
|
201
|
+
/**
|
|
202
|
+
* Boolean, setting this to `true` to allow the branch to be deleted.
|
|
203
|
+
*/
|
|
68
204
|
allowsDeletions?: pulumi.Input<boolean>;
|
|
205
|
+
/**
|
|
206
|
+
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
207
|
+
*/
|
|
69
208
|
allowsForcePushes?: pulumi.Input<boolean>;
|
|
209
|
+
/**
|
|
210
|
+
* Boolean, setting this to `true` to block creating the branch.
|
|
211
|
+
*/
|
|
70
212
|
blocksCreations?: pulumi.Input<boolean>;
|
|
213
|
+
/**
|
|
214
|
+
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
215
|
+
*/
|
|
71
216
|
enforceAdmins?: pulumi.Input<boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Boolean, Setting this to `true` will make the branch read-only and preventing any pushes to it. Defaults to `false`
|
|
219
|
+
*/
|
|
220
|
+
lockBranch?: pulumi.Input<boolean>;
|
|
221
|
+
/**
|
|
222
|
+
* Identifies the protection rule pattern.
|
|
223
|
+
*/
|
|
72
224
|
pattern: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
227
|
+
*/
|
|
73
228
|
pushRestrictions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
74
229
|
/**
|
|
75
|
-
*
|
|
230
|
+
* The name or node ID of the repository associated with this branch protection rule.
|
|
76
231
|
*/
|
|
77
232
|
repositoryId: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
|
|
235
|
+
*/
|
|
78
236
|
requireConversationResolution?: pulumi.Input<boolean>;
|
|
237
|
+
/**
|
|
238
|
+
* Boolean, setting this to `true` requires all commits to be signed with GPG.
|
|
239
|
+
*/
|
|
79
240
|
requireSignedCommits?: pulumi.Input<boolean>;
|
|
241
|
+
/**
|
|
242
|
+
* Boolean, setting this to `true` enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch
|
|
243
|
+
*/
|
|
80
244
|
requiredLinearHistory?: pulumi.Input<boolean>;
|
|
245
|
+
/**
|
|
246
|
+
* Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
|
|
247
|
+
*/
|
|
81
248
|
requiredPullRequestReviews?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredPullRequestReview>[]>;
|
|
249
|
+
/**
|
|
250
|
+
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
251
|
+
*/
|
|
82
252
|
requiredStatusChecks?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredStatusCheck>[]>;
|
|
83
253
|
}
|