@pulumi/github 5.23.0-alpha.1702588890 → 5.23.0
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/branchProtectionV3.d.ts +0 -56
- package/branchProtectionV3.js +0 -56
- package/branchProtectionV3.js.map +1 -1
- package/membership.d.ts +3 -0
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +8 -0
- package/organizationBlock.js +8 -0
- package/organizationBlock.js.map +1 -1
- package/package.json +1 -1
- package/teamMembers.d.ts +14 -4
- package/teamMembers.js +5 -1
- package/teamMembers.js.map +1 -1
- package/types/input.d.ts +4 -0
- package/types/output.d.ts +4 -0
package/branchProtectionV3.d.ts
CHANGED
|
@@ -8,62 +8,6 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as github from "@pulumi/github";
|
|
16
|
-
*
|
|
17
|
-
* // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
|
|
18
|
-
* const example = new github.BranchProtectionV3("example", {
|
|
19
|
-
* repository: github_repository.example.name,
|
|
20
|
-
* branch: "main",
|
|
21
|
-
* restrictions: {
|
|
22
|
-
* users: ["foo-user"],
|
|
23
|
-
* },
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as github from "@pulumi/github";
|
|
30
|
-
*
|
|
31
|
-
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
32
|
-
* const exampleTeam = new github.Team("exampleTeam", {});
|
|
33
|
-
* // Protect the main branch of the foo repository. Additionally, require that
|
|
34
|
-
* // the "ci/check" check ran by the Github Actions app is passing and only allow
|
|
35
|
-
* // the engineers team merge to the branch.
|
|
36
|
-
* const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
|
|
37
|
-
* repository: exampleRepository.name,
|
|
38
|
-
* branch: "main",
|
|
39
|
-
* enforceAdmins: true,
|
|
40
|
-
* requiredStatusChecks: {
|
|
41
|
-
* strict: false,
|
|
42
|
-
* checks: ["ci/check:824642007264"],
|
|
43
|
-
* },
|
|
44
|
-
* requiredPullRequestReviews: {
|
|
45
|
-
* dismissStaleReviews: true,
|
|
46
|
-
* dismissalUsers: ["foo-user"],
|
|
47
|
-
* dismissalTeams: [exampleTeam.slug],
|
|
48
|
-
* bypassPullRequestAllowances: {
|
|
49
|
-
* users: ["foo-user"],
|
|
50
|
-
* teams: [exampleTeam.slug],
|
|
51
|
-
* apps: ["foo-app"],
|
|
52
|
-
* },
|
|
53
|
-
* },
|
|
54
|
-
* restrictions: {
|
|
55
|
-
* users: ["foo-user"],
|
|
56
|
-
* teams: [exampleTeam.slug],
|
|
57
|
-
* apps: ["foo-app"],
|
|
58
|
-
* },
|
|
59
|
-
* });
|
|
60
|
-
* const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
|
|
61
|
-
* teamId: exampleTeam.id,
|
|
62
|
-
* repository: exampleRepository.name,
|
|
63
|
-
* permission: "pull",
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
11
|
* ## Import
|
|
68
12
|
*
|
|
69
13
|
* GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
|
package/branchProtectionV3.js
CHANGED
|
@@ -12,62 +12,6 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* 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.
|
|
14
14
|
*
|
|
15
|
-
* ## Example Usage
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as github from "@pulumi/github";
|
|
20
|
-
*
|
|
21
|
-
* // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
|
|
22
|
-
* const example = new github.BranchProtectionV3("example", {
|
|
23
|
-
* repository: github_repository.example.name,
|
|
24
|
-
* branch: "main",
|
|
25
|
-
* restrictions: {
|
|
26
|
-
* users: ["foo-user"],
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* ```typescript
|
|
32
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
-
* import * as github from "@pulumi/github";
|
|
34
|
-
*
|
|
35
|
-
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
36
|
-
* const exampleTeam = new github.Team("exampleTeam", {});
|
|
37
|
-
* // Protect the main branch of the foo repository. Additionally, require that
|
|
38
|
-
* // the "ci/check" check ran by the Github Actions app is passing and only allow
|
|
39
|
-
* // the engineers team merge to the branch.
|
|
40
|
-
* const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
|
|
41
|
-
* repository: exampleRepository.name,
|
|
42
|
-
* branch: "main",
|
|
43
|
-
* enforceAdmins: true,
|
|
44
|
-
* requiredStatusChecks: {
|
|
45
|
-
* strict: false,
|
|
46
|
-
* checks: ["ci/check:824642007264"],
|
|
47
|
-
* },
|
|
48
|
-
* requiredPullRequestReviews: {
|
|
49
|
-
* dismissStaleReviews: true,
|
|
50
|
-
* dismissalUsers: ["foo-user"],
|
|
51
|
-
* dismissalTeams: [exampleTeam.slug],
|
|
52
|
-
* bypassPullRequestAllowances: {
|
|
53
|
-
* users: ["foo-user"],
|
|
54
|
-
* teams: [exampleTeam.slug],
|
|
55
|
-
* apps: ["foo-app"],
|
|
56
|
-
* },
|
|
57
|
-
* },
|
|
58
|
-
* restrictions: {
|
|
59
|
-
* users: ["foo-user"],
|
|
60
|
-
* teams: [exampleTeam.slug],
|
|
61
|
-
* apps: ["foo-app"],
|
|
62
|
-
* },
|
|
63
|
-
* });
|
|
64
|
-
* const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
|
|
65
|
-
* teamId: exampleTeam.id,
|
|
66
|
-
* repository: exampleRepository.name,
|
|
67
|
-
* permission: "pull",
|
|
68
|
-
* });
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
15
|
* ## Import
|
|
72
16
|
*
|
|
73
17
|
* GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA4CD,YAAY,IAAY,EAAE,WAA8D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GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxGL,gDAyGC;AA3FG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
package/membership.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class Membership extends pulumi.CustomResource {
|
|
|
54
54
|
/**
|
|
55
55
|
* The role of the user within the organization.
|
|
56
56
|
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
57
|
+
* `admin` role represents the `owner` role available via GitHub UI.
|
|
57
58
|
*/
|
|
58
59
|
readonly role: pulumi.Output<string | undefined>;
|
|
59
60
|
/**
|
|
@@ -84,6 +85,7 @@ export interface MembershipState {
|
|
|
84
85
|
/**
|
|
85
86
|
* The role of the user within the organization.
|
|
86
87
|
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
88
|
+
* `admin` role represents the `owner` role available via GitHub UI.
|
|
87
89
|
*/
|
|
88
90
|
role?: pulumi.Input<string>;
|
|
89
91
|
/**
|
|
@@ -105,6 +107,7 @@ export interface MembershipArgs {
|
|
|
105
107
|
/**
|
|
106
108
|
* The role of the user within the organization.
|
|
107
109
|
* Must be one of `member` or `admin`. Defaults to `member`.
|
|
110
|
+
* `admin` role represents the `owner` role available via GitHub UI.
|
|
108
111
|
*/
|
|
109
112
|
role?: pulumi.Input<string>;
|
|
110
113
|
/**
|
package/membership.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../membership.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,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C,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
|
@@ -10,6 +10,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* const example = new github.OrganizationBlock("example", {username: "paultyng"});
|
|
12
12
|
* ```
|
|
13
|
+
*
|
|
14
|
+
* ## Import
|
|
15
|
+
*
|
|
16
|
+
* GitHub organization block can be imported using a username, e.g.
|
|
17
|
+
*
|
|
18
|
+
* ```sh
|
|
19
|
+
* $ pulumi import github:index/organizationBlock:OrganizationBlock example someuser
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export declare class OrganizationBlock extends pulumi.CustomResource {
|
|
15
23
|
/**
|
package/organizationBlock.js
CHANGED
|
@@ -16,6 +16,14 @@ const utilities = require("./utilities");
|
|
|
16
16
|
*
|
|
17
17
|
* const example = new github.OrganizationBlock("example", {username: "paultyng"});
|
|
18
18
|
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* GitHub organization block can be imported using a username, e.g.
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import github:index/organizationBlock:OrganizationBlock example someuser
|
|
26
|
+
* ```
|
|
19
27
|
*/
|
|
20
28
|
class OrganizationBlock extends pulumi.CustomResource {
|
|
21
29
|
/**
|
package/organizationBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationBlock.js","sourceRoot":"","sources":["../organizationBlock.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"organizationBlock.js","sourceRoot":"","sources":["../organizationBlock.ts"],"names":[],"mappings":";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,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,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA3DL,8CA4DC;AA9CG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
|
package/package.json
CHANGED
package/teamMembers.d.ts
CHANGED
|
@@ -35,7 +35,11 @@ import * as outputs from "./types/output";
|
|
|
35
35
|
*
|
|
36
36
|
* ## Import
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* ~> **Note** Although the team id or team slug can be used it is recommended to use the team id.
|
|
39
|
+
*
|
|
40
|
+
* Using the team slug will result in terraform doing conversions between the team slug and team id.
|
|
41
|
+
*
|
|
42
|
+
* This will cause team members associations to the team to be destroyed and recreated on import. GitHub Team Membership can be imported using the team ID team id or team slug, e.g.
|
|
39
43
|
*
|
|
40
44
|
* ```sh
|
|
41
45
|
* $ pulumi import github:index/teamMembers:TeamMembers some_team 1234567
|
|
@@ -66,7 +70,9 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
66
70
|
*/
|
|
67
71
|
readonly members: pulumi.Output<outputs.TeamMembersMember[]>;
|
|
68
72
|
/**
|
|
69
|
-
* The
|
|
73
|
+
* The team id or the team slug
|
|
74
|
+
*
|
|
75
|
+
* > **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
|
|
70
76
|
*/
|
|
71
77
|
readonly teamId: pulumi.Output<string>;
|
|
72
78
|
/**
|
|
@@ -87,7 +93,9 @@ export interface TeamMembersState {
|
|
|
87
93
|
*/
|
|
88
94
|
members?: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
89
95
|
/**
|
|
90
|
-
* The
|
|
96
|
+
* The team id or the team slug
|
|
97
|
+
*
|
|
98
|
+
* > **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
|
|
91
99
|
*/
|
|
92
100
|
teamId?: pulumi.Input<string>;
|
|
93
101
|
}
|
|
@@ -100,7 +108,9 @@ export interface TeamMembersArgs {
|
|
|
100
108
|
*/
|
|
101
109
|
members: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
102
110
|
/**
|
|
103
|
-
* The
|
|
111
|
+
* The team id or the team slug
|
|
112
|
+
*
|
|
113
|
+
* > **Note** Although the team id or team slug can be used it is recommended to use the team id. Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
|
|
104
114
|
*/
|
|
105
115
|
teamId: pulumi.Input<string>;
|
|
106
116
|
}
|
package/teamMembers.js
CHANGED
|
@@ -39,7 +39,11 @@ const utilities = require("./utilities");
|
|
|
39
39
|
*
|
|
40
40
|
* ## Import
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* ~> **Note** Although the team id or team slug can be used it is recommended to use the team id.
|
|
43
|
+
*
|
|
44
|
+
* Using the team slug will result in terraform doing conversions between the team slug and team id.
|
|
45
|
+
*
|
|
46
|
+
* This will cause team members associations to the team to be destroyed and recreated on import. GitHub Team Membership can be imported using the team ID team id or team slug, e.g.
|
|
43
47
|
*
|
|
44
48
|
* ```sh
|
|
45
49
|
* $ pulumi import github:index/teamMembers:TeamMembers some_team 1234567
|
package/teamMembers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
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AG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,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,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;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;;AAnEL,kCAoEC;AAtDG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
|
84
84
|
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
85
85
|
*/
|
|
86
86
|
dismissStaleReviews?: pulumi.Input<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* The list of app slugs with dismissal access.
|
|
89
|
+
*/
|
|
90
|
+
dismissalApps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
87
91
|
/**
|
|
88
92
|
* The list of team slugs with dismissal access.
|
|
89
93
|
* Always use `slug` of the team, **not** its name. Each team already **has** to have access to the repository.
|
package/types/output.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
|
83
83
|
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
84
84
|
*/
|
|
85
85
|
dismissStaleReviews?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The list of app slugs with dismissal access.
|
|
88
|
+
*/
|
|
89
|
+
dismissalApps?: string[];
|
|
86
90
|
/**
|
|
87
91
|
* The list of team slugs with dismissal access.
|
|
88
92
|
* Always use `slug` of the team, **not** its name. Each team already **has** to have access to the repository.
|