@pulumi/github 6.9.0 → 6.9.1
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
CHANGED
|
@@ -24,6 +24,47 @@ import * as outputs from "./types/output";
|
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as github from "@pulumi/github";
|
|
30
|
+
*
|
|
31
|
+
* const exampleRepository = new github.Repository("example", {name: "example"});
|
|
32
|
+
* const exampleTeam = new github.Team("example", {name: "Example Name"});
|
|
33
|
+
* // Protect the main branch of the foo repository. Additionally, require that
|
|
34
|
+
* // the "ci/check" check ran by the Github Actions app is passing and only allow
|
|
35
|
+
* // the engineers team merge to the branch.
|
|
36
|
+
* const example = new github.BranchProtectionV3("example", {
|
|
37
|
+
* repository: exampleRepository.name,
|
|
38
|
+
* branch: "main",
|
|
39
|
+
* enforceAdmins: true,
|
|
40
|
+
* requiredStatusChecks: {
|
|
41
|
+
* strict: false,
|
|
42
|
+
* checks: ["ci/check:824642007264"],
|
|
43
|
+
* },
|
|
44
|
+
* requiredPullRequestReviews: {
|
|
45
|
+
* dismissStaleReviews: true,
|
|
46
|
+
* dismissalUsers: ["foo-user"],
|
|
47
|
+
* dismissalTeams: [exampleTeam.slug],
|
|
48
|
+
* dismissalApp: ["foo-app"],
|
|
49
|
+
* bypassPullRequestAllowances: {
|
|
50
|
+
* users: ["foo-user"],
|
|
51
|
+
* teams: [exampleTeam.slug],
|
|
52
|
+
* apps: ["foo-app"],
|
|
53
|
+
* },
|
|
54
|
+
* },
|
|
55
|
+
* restrictions: {
|
|
56
|
+
* users: ["foo-user"],
|
|
57
|
+
* teams: [exampleTeam.slug],
|
|
58
|
+
* apps: ["foo-app"],
|
|
59
|
+
* },
|
|
60
|
+
* });
|
|
61
|
+
* const exampleTeamRepository = new github.TeamRepository("example", {
|
|
62
|
+
* teamId: exampleTeam.id,
|
|
63
|
+
* repository: exampleRepository.name,
|
|
64
|
+
* permission: "pull",
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
27
68
|
* ## Import
|
|
28
69
|
*
|
|
29
70
|
* GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
|
package/branchProtectionV3.js
CHANGED
|
@@ -28,6 +28,47 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as github from "@pulumi/github";
|
|
34
|
+
*
|
|
35
|
+
* const exampleRepository = new github.Repository("example", {name: "example"});
|
|
36
|
+
* const exampleTeam = new github.Team("example", {name: "Example Name"});
|
|
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 example = new github.BranchProtectionV3("example", {
|
|
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
|
+
* dismissalApp: ["foo-app"],
|
|
53
|
+
* bypassPullRequestAllowances: {
|
|
54
|
+
* users: ["foo-user"],
|
|
55
|
+
* teams: [exampleTeam.slug],
|
|
56
|
+
* apps: ["foo-app"],
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* restrictions: {
|
|
60
|
+
* users: ["foo-user"],
|
|
61
|
+
* teams: [exampleTeam.slug],
|
|
62
|
+
* apps: ["foo-app"],
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* const exampleTeamRepository = new github.TeamRepository("example", {
|
|
66
|
+
* teamId: exampleTeam.id,
|
|
67
|
+
* repository: exampleRepository.name,
|
|
68
|
+
* permission: "pull",
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
31
72
|
* ## Import
|
|
32
73
|
*
|
|
33
74
|
* 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,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;I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AAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,EAAE,6BAA6B,CAAC;YACtF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,EAAE,0BAA0B,CAAC;YAChF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,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,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxGL,gDAyGC;AA3FG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
package/organizationWebhook.d.ts
CHANGED
|
@@ -6,6 +6,22 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as github from "@pulumi/github";
|
|
12
|
+
*
|
|
13
|
+
* const foo = new github.OrganizationWebhook("foo", {
|
|
14
|
+
* name: "web",
|
|
15
|
+
* configuration: {
|
|
16
|
+
* url: "https://google.de/",
|
|
17
|
+
* contentType: "form",
|
|
18
|
+
* insecureSsl: false,
|
|
19
|
+
* },
|
|
20
|
+
* active: false,
|
|
21
|
+
* events: ["issues"],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
9
25
|
* ## Import
|
|
10
26
|
*
|
|
11
27
|
* Organization webhooks can be imported using the `id` of the webhook.
|
package/organizationWebhook.js
CHANGED
|
@@ -10,6 +10,22 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const foo = new github.OrganizationWebhook("foo", {
|
|
18
|
+
* name: "web",
|
|
19
|
+
* configuration: {
|
|
20
|
+
* url: "https://google.de/",
|
|
21
|
+
* contentType: "form",
|
|
22
|
+
* insecureSsl: false,
|
|
23
|
+
* },
|
|
24
|
+
* active: false,
|
|
25
|
+
* events: ["issues"],
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
13
29
|
* ## Import
|
|
14
30
|
*
|
|
15
31
|
* Organization webhooks can be imported using the `id` of the webhook.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../organizationWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"organizationWebhook.js","sourceRoot":"","sources":["../organizationWebhook.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,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,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AA7EL,kDA8EC;AAhEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "github",
|
|
26
|
-
"version": "6.9.
|
|
26
|
+
"version": "6.9.1"
|
|
27
27
|
}
|
|
28
28
|
}
|