@pulumi/github 6.3.0-alpha.1713332421 → 6.3.0-alpha.1713561029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +0 -43
- package/actionsEnvironmentSecret.js +0 -43
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +4 -4
- package/actionsEnvironmentVariable.js +4 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +1 -1
- package/actionsOrganizationPermissions.d.ts +1 -1
- package/actionsOrganizationPermissions.js +1 -1
- package/actionsOrganizationSecret.d.ts +0 -41
- package/actionsOrganizationSecret.js +0 -41
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +1 -1
- package/actionsOrganizationSecretRepositories.js +1 -1
- package/actionsOrganizationVariable.d.ts +3 -3
- package/actionsOrganizationVariable.js +3 -3
- package/actionsRepositoryAccessLevel.d.ts +4 -1
- package/actionsRepositoryAccessLevel.js +4 -1
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +2 -2
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +2 -2
- package/actionsRepositoryPermissions.d.ts +1 -1
- package/actionsRepositoryPermissions.js +1 -1
- package/actionsRunnerGroup.d.ts +4 -3
- package/actionsRunnerGroup.js +4 -3
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +0 -21
- package/actionsSecret.js +0 -21
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +2 -2
- package/actionsVariable.js +2 -2
- package/appInstallationRepository.d.ts +2 -2
- package/appInstallationRepository.js +2 -2
- package/branch.d.ts +1 -1
- package/branch.js +1 -1
- package/branchDefault.d.ts +2 -0
- package/branchDefault.js +2 -0
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +8 -8
- package/branchProtection.js +8 -8
- package/branchProtectionV3.d.ts +1 -1
- package/branchProtectionV3.js +1 -1
- package/codespacesOrganizationSecret.d.ts +0 -41
- package/codespacesOrganizationSecret.js +0 -41
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.d.ts +1 -1
- package/codespacesOrganizationSecretRepositories.js +1 -1
- package/codespacesSecret.d.ts +0 -21
- package/codespacesSecret.js +0 -21
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +0 -21
- package/codespacesUserSecret.js +0 -21
- package/codespacesUserSecret.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +0 -41
- package/dependabotOrganizationSecret.js +0 -41
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +3 -3
- package/dependabotOrganizationSecretRepositories.js +3 -3
- package/dependabotSecret.d.ts +0 -21
- package/dependabotSecret.js +0 -21
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +2 -3
- package/emuGroupMapping.js +2 -3
- package/emuGroupMapping.js.map +1 -1
- package/enterpriseActionsRunnerGroup.d.ts +3 -1
- package/enterpriseActionsRunnerGroup.js +3 -1
- package/enterpriseActionsRunnerGroup.js.map +1 -1
- package/enterpriseOrganization.d.ts +2 -1
- package/enterpriseOrganization.js +2 -1
- package/enterpriseOrganization.js.map +1 -1
- package/getActionsEnvironmentSecrets.d.ts +2 -2
- package/getActionsEnvironmentSecrets.js +2 -2
- package/getActionsEnvironmentVariables.d.ts +2 -2
- package/getActionsEnvironmentVariables.js +2 -2
- package/getAppToken.d.ts +12 -8
- package/getAppToken.js +12 -8
- package/getAppToken.js.map +1 -1
- package/getBranch.d.ts +2 -2
- package/getBranch.js +2 -2
- package/getRef.d.ts +2 -2
- package/getRef.js +2 -2
- package/getRelease.d.ts +2 -2
- package/getRelease.js +2 -2
- package/getRepositories.d.ts +2 -2
- package/getRepositories.js +2 -2
- package/getRepositoryDeploymentBranchPolicies.d.ts +2 -2
- package/getRepositoryDeploymentBranchPolicies.js +2 -2
- package/getRepositoryFile.d.ts +2 -2
- package/getRepositoryFile.js +2 -2
- package/getRepositoryMilestone.d.ts +2 -2
- package/getRepositoryMilestone.js +2 -2
- package/getRepositoryPullRequests.d.ts +2 -2
- package/getRepositoryPullRequests.js +2 -2
- package/getTree.d.ts +16 -16
- package/getTree.js +16 -16
- package/getUser.d.ts +4 -0
- package/getUser.js +4 -0
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +2 -0
- package/getUsers.js +2 -0
- package/getUsers.js.map +1 -1
- package/issue.d.ts +15 -9
- package/issue.js +15 -9
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +3 -2
- package/issueLabel.js +3 -2
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +4 -4
- package/issueLabels.js +4 -4
- package/membership.d.ts +2 -2
- package/membership.js +2 -2
- package/organizationCustomRole.d.ts +2 -1
- package/organizationCustomRole.js +2 -1
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +4 -1
- package/organizationProject.js +4 -1
- package/organizationProject.js.map +1 -1
- package/organizationRuleset.d.ts +39 -0
- package/organizationRuleset.js +39 -0
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +5 -2
- package/organizationSecurityManager.js +5 -2
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +15 -14
- package/organizationSettings.js +15 -14
- package/organizationSettings.js.map +1 -1
- package/package.json +1 -1
- package/projectCard.d.ts +20 -9
- package/projectCard.js +20 -9
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +8 -2
- package/projectColumn.js +8 -2
- package/projectColumn.js.map +1 -1
- package/release.d.ts +10 -6
- package/release.js +10 -6
- package/release.js.map +1 -1
- package/repository.d.ts +5 -3
- package/repository.js +5 -3
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +1 -0
- package/repositoryAutolinkReference.js +1 -0
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +2 -2
- package/repositoryCollaborator.js +2 -2
- package/repositoryCollaborators.d.ts +6 -3
- package/repositoryCollaborators.js +6 -3
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryDependabotSecurityUpdates.d.ts +2 -1
- package/repositoryDependabotSecurityUpdates.js +2 -1
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +3 -3
- package/repositoryDeployKey.js +3 -3
- package/repositoryDeploymentBranchPolicy.d.ts +1 -0
- package/repositoryDeploymentBranchPolicy.js +1 -0
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +6 -3
- package/repositoryEnvironment.js +6 -3
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +5 -5
- package/repositoryEnvironmentDeploymentPolicy.js +5 -5
- package/repositoryFile.d.ts +6 -3
- package/repositoryFile.js +6 -3
- package/repositoryFile.js.map +1 -1
- package/repositoryProject.d.ts +3 -1
- package/repositoryProject.js +3 -1
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +2 -2
- package/repositoryPullRequest.js +2 -2
- package/repositoryRuleset.d.ts +7 -3
- package/repositoryRuleset.js +7 -3
- package/repositoryRuleset.js.map +1 -1
- package/repositoryTagProtection.d.ts +1 -1
- package/repositoryTagProtection.js +1 -1
- package/repositoryTopics.d.ts +3 -3
- package/repositoryTopics.js +3 -3
- package/repositoryWebhook.d.ts +1 -0
- package/repositoryWebhook.js +1 -0
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +2 -1
- package/team.js +2 -1
- package/team.js.map +1 -1
- package/teamMembers.d.ts +7 -4
- package/teamMembers.js +7 -4
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +6 -3
- package/teamMembership.js +6 -3
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +6 -3
- package/teamRepository.js +6 -3
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +5 -2
- package/teamSettings.js +5 -2
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +19 -0
- package/teamSyncGroupMapping.js +19 -0
- package/teamSyncGroupMapping.js.map +1 -1
- package/userGpgKey.d.ts +1 -2
- package/userGpgKey.js +1 -2
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +4 -7
- package/userInvitationAccepter.js +4 -7
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +4 -2
- package/userSshKey.js +4 -2
- package/userSshKey.js.map +1 -1
|
@@ -16,9 +16,9 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
18
|
* const example = github.getRepositoryMilestone({
|
|
19
|
-
* number: 1,
|
|
20
19
|
* owner: "example-owner",
|
|
21
20
|
* repository: "example-repository",
|
|
21
|
+
* number: 1,
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
* <!--End PulumiCodeChooser -->
|
|
@@ -43,9 +43,9 @@ exports.getRepositoryMilestone = getRepositoryMilestone;
|
|
|
43
43
|
* import * as github from "@pulumi/github";
|
|
44
44
|
*
|
|
45
45
|
* const example = github.getRepositoryMilestone({
|
|
46
|
-
* number: 1,
|
|
47
46
|
* owner: "example-owner",
|
|
48
47
|
* repository: "example-repository",
|
|
48
|
+
* number: 1,
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
51
|
* <!--End PulumiCodeChooser -->
|
|
@@ -11,8 +11,8 @@ import * as outputs from "./types/output";
|
|
|
11
11
|
* import * as github from "@pulumi/github";
|
|
12
12
|
*
|
|
13
13
|
* const example = github.getRepositoryPullRequests({
|
|
14
|
-
* baseRef: "main",
|
|
15
14
|
* baseRepository: "example-repository",
|
|
15
|
+
* baseRef: "main",
|
|
16
16
|
* sortBy: "updated",
|
|
17
17
|
* sortDirection: "desc",
|
|
18
18
|
* state: "open",
|
|
@@ -94,8 +94,8 @@ export interface GetRepositoryPullRequestsResult {
|
|
|
94
94
|
* import * as github from "@pulumi/github";
|
|
95
95
|
*
|
|
96
96
|
* const example = github.getRepositoryPullRequests({
|
|
97
|
-
* baseRef: "main",
|
|
98
97
|
* baseRepository: "example-repository",
|
|
98
|
+
* baseRef: "main",
|
|
99
99
|
* sortBy: "updated",
|
|
100
100
|
* sortDirection: "desc",
|
|
101
101
|
* state: "open",
|
|
@@ -16,8 +16,8 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
18
|
* const example = github.getRepositoryPullRequests({
|
|
19
|
-
* baseRef: "main",
|
|
20
19
|
* baseRepository: "example-repository",
|
|
20
|
+
* baseRef: "main",
|
|
21
21
|
* sortBy: "updated",
|
|
22
22
|
* sortDirection: "desc",
|
|
23
23
|
* state: "open",
|
|
@@ -49,8 +49,8 @@ exports.getRepositoryPullRequests = getRepositoryPullRequests;
|
|
|
49
49
|
* import * as github from "@pulumi/github";
|
|
50
50
|
*
|
|
51
51
|
* const example = github.getRepositoryPullRequests({
|
|
52
|
-
* baseRef: "main",
|
|
53
52
|
* baseRepository: "example-repository",
|
|
53
|
+
* baseRef: "main",
|
|
54
54
|
* sortBy: "updated",
|
|
55
55
|
* sortDirection: "desc",
|
|
56
56
|
* state: "open",
|
package/getTree.d.ts
CHANGED
|
@@ -10,19 +10,19 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as github from "@pulumi/github";
|
|
12
12
|
*
|
|
13
|
-
* const
|
|
13
|
+
* const this = github.getRepository({
|
|
14
14
|
* name: "example",
|
|
15
15
|
* });
|
|
16
|
-
* const
|
|
17
|
-
* branch:
|
|
18
|
-
* repository:
|
|
16
|
+
* const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({
|
|
17
|
+
* branch: _this.defaultBranch,
|
|
18
|
+
* repository: _this1.name,
|
|
19
19
|
* }));
|
|
20
|
-
* const
|
|
20
|
+
* const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({
|
|
21
21
|
* recursive: false,
|
|
22
|
-
* repository:
|
|
23
|
-
* treeSha:
|
|
22
|
+
* repository: _this.name,
|
|
23
|
+
* treeSha: thisGetBranch.sha,
|
|
24
24
|
* }));
|
|
25
|
-
* export const entries =
|
|
25
|
+
* export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries);
|
|
26
26
|
* ```
|
|
27
27
|
* <!--End PulumiCodeChooser -->
|
|
28
28
|
*/
|
|
@@ -70,19 +70,19 @@ export interface GetTreeResult {
|
|
|
70
70
|
* import * as pulumi from "@pulumi/pulumi";
|
|
71
71
|
* import * as github from "@pulumi/github";
|
|
72
72
|
*
|
|
73
|
-
* const
|
|
73
|
+
* const this = github.getRepository({
|
|
74
74
|
* name: "example",
|
|
75
75
|
* });
|
|
76
|
-
* const
|
|
77
|
-
* branch:
|
|
78
|
-
* repository:
|
|
76
|
+
* const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({
|
|
77
|
+
* branch: _this.defaultBranch,
|
|
78
|
+
* repository: _this1.name,
|
|
79
79
|
* }));
|
|
80
|
-
* const
|
|
80
|
+
* const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({
|
|
81
81
|
* recursive: false,
|
|
82
|
-
* repository:
|
|
83
|
-
* treeSha:
|
|
82
|
+
* repository: _this.name,
|
|
83
|
+
* treeSha: thisGetBranch.sha,
|
|
84
84
|
* }));
|
|
85
|
-
* export const entries =
|
|
85
|
+
* export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries);
|
|
86
86
|
* ```
|
|
87
87
|
* <!--End PulumiCodeChooser -->
|
|
88
88
|
*/
|
package/getTree.js
CHANGED
|
@@ -15,19 +15,19 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
|
-
* const
|
|
18
|
+
* const this = github.getRepository({
|
|
19
19
|
* name: "example",
|
|
20
20
|
* });
|
|
21
|
-
* const
|
|
22
|
-
* branch:
|
|
23
|
-
* repository:
|
|
21
|
+
* const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({
|
|
22
|
+
* branch: _this.defaultBranch,
|
|
23
|
+
* repository: _this1.name,
|
|
24
24
|
* }));
|
|
25
|
-
* const
|
|
25
|
+
* const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({
|
|
26
26
|
* recursive: false,
|
|
27
|
-
* repository:
|
|
28
|
-
* treeSha:
|
|
27
|
+
* repository: _this.name,
|
|
28
|
+
* treeSha: thisGetBranch.sha,
|
|
29
29
|
* }));
|
|
30
|
-
* export const entries =
|
|
30
|
+
* export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries);
|
|
31
31
|
* ```
|
|
32
32
|
* <!--End PulumiCodeChooser -->
|
|
33
33
|
*/
|
|
@@ -50,19 +50,19 @@ exports.getTree = getTree;
|
|
|
50
50
|
* import * as pulumi from "@pulumi/pulumi";
|
|
51
51
|
* import * as github from "@pulumi/github";
|
|
52
52
|
*
|
|
53
|
-
* const
|
|
53
|
+
* const this = github.getRepository({
|
|
54
54
|
* name: "example",
|
|
55
55
|
* });
|
|
56
|
-
* const
|
|
57
|
-
* branch:
|
|
58
|
-
* repository:
|
|
56
|
+
* const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({
|
|
57
|
+
* branch: _this.defaultBranch,
|
|
58
|
+
* repository: _this1.name,
|
|
59
59
|
* }));
|
|
60
|
-
* const
|
|
60
|
+
* const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({
|
|
61
61
|
* recursive: false,
|
|
62
|
-
* repository:
|
|
63
|
-
* treeSha:
|
|
62
|
+
* repository: _this.name,
|
|
63
|
+
* treeSha: thisGetBranch.sha,
|
|
64
64
|
* }));
|
|
65
|
-
* export const entries =
|
|
65
|
+
* export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries);
|
|
66
66
|
* ```
|
|
67
67
|
* <!--End PulumiCodeChooser -->
|
|
68
68
|
*/
|
package/getUser.d.ts
CHANGED
|
@@ -9,9 +9,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as github from "@pulumi/github";
|
|
11
11
|
*
|
|
12
|
+
* // Retrieve information about a GitHub user.
|
|
12
13
|
* const example = github.getUser({
|
|
13
14
|
* username: "example",
|
|
14
15
|
* });
|
|
16
|
+
* // Retrieve information about the currently authenticated user.
|
|
15
17
|
* const current = github.getUser({
|
|
16
18
|
* username: "",
|
|
17
19
|
* });
|
|
@@ -129,9 +131,11 @@ export interface GetUserResult {
|
|
|
129
131
|
* import * as pulumi from "@pulumi/pulumi";
|
|
130
132
|
* import * as github from "@pulumi/github";
|
|
131
133
|
*
|
|
134
|
+
* // Retrieve information about a GitHub user.
|
|
132
135
|
* const example = github.getUser({
|
|
133
136
|
* username: "example",
|
|
134
137
|
* });
|
|
138
|
+
* // Retrieve information about the currently authenticated user.
|
|
135
139
|
* const current = github.getUser({
|
|
136
140
|
* username: "",
|
|
137
141
|
* });
|
package/getUser.js
CHANGED
|
@@ -15,9 +15,11 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
|
+
* // Retrieve information about a GitHub user.
|
|
18
19
|
* const example = github.getUser({
|
|
19
20
|
* username: "example",
|
|
20
21
|
* });
|
|
22
|
+
* // Retrieve information about the currently authenticated user.
|
|
21
23
|
* const current = github.getUser({
|
|
22
24
|
* username: "",
|
|
23
25
|
* });
|
|
@@ -42,9 +44,11 @@ exports.getUser = getUser;
|
|
|
42
44
|
* import * as pulumi from "@pulumi/pulumi";
|
|
43
45
|
* import * as github from "@pulumi/github";
|
|
44
46
|
*
|
|
47
|
+
* // Retrieve information about a GitHub user.
|
|
45
48
|
* const example = github.getUser({
|
|
46
49
|
* username: "example",
|
|
47
50
|
* });
|
|
51
|
+
* // Retrieve information about the currently authenticated user.
|
|
48
52
|
* const current = github.getUser({
|
|
49
53
|
* username: "",
|
|
50
54
|
* });
|
package/getUser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0BAMC;AAsGD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/getUsers.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as github from "@pulumi/github";
|
|
11
11
|
*
|
|
12
|
+
* // Retrieve information about multiple GitHub users.
|
|
12
13
|
* const example = github.getUsers({
|
|
13
14
|
* usernames: [
|
|
14
15
|
* "example1",
|
|
@@ -67,6 +68,7 @@ export interface GetUsersResult {
|
|
|
67
68
|
* import * as pulumi from "@pulumi/pulumi";
|
|
68
69
|
* import * as github from "@pulumi/github";
|
|
69
70
|
*
|
|
71
|
+
* // Retrieve information about multiple GitHub users.
|
|
70
72
|
* const example = github.getUsers({
|
|
71
73
|
* usernames: [
|
|
72
74
|
* "example1",
|
package/getUsers.js
CHANGED
|
@@ -15,6 +15,7 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
|
+
* // Retrieve information about multiple GitHub users.
|
|
18
19
|
* const example = github.getUsers({
|
|
19
20
|
* usernames: [
|
|
20
21
|
* "example1",
|
|
@@ -44,6 +45,7 @@ exports.getUsers = getUsers;
|
|
|
44
45
|
* import * as pulumi from "@pulumi/pulumi";
|
|
45
46
|
* import * as github from "@pulumi/github";
|
|
46
47
|
*
|
|
48
|
+
* // Retrieve information about multiple GitHub users.
|
|
47
49
|
* const example = github.getUsers({
|
|
48
50
|
* usernames: [
|
|
49
51
|
* "example1",
|
package/getUsers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4BAMC;AAsCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
package/issue.d.ts
CHANGED
|
@@ -13,12 +13,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* import * as github from "@pulumi/github";
|
|
14
14
|
*
|
|
15
15
|
* // Create a simple issue
|
|
16
|
-
* const
|
|
16
|
+
* const test = new github.Repository("test", {
|
|
17
|
+
* name: "tf-acc-test-%s",
|
|
17
18
|
* autoInit: true,
|
|
18
19
|
* hasIssues: true,
|
|
19
20
|
* });
|
|
20
|
-
* const testIssue = new github.Issue("
|
|
21
|
-
* repository:
|
|
21
|
+
* const testIssue = new github.Issue("test", {
|
|
22
|
+
* repository: test.name,
|
|
22
23
|
* title: "My issue title",
|
|
23
24
|
* body: "The body of my issue",
|
|
24
25
|
* });
|
|
@@ -31,22 +32,27 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
32
|
* ```typescript
|
|
32
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
33
34
|
* import * as github from "@pulumi/github";
|
|
35
|
+
* import * as std from "@pulumi/std";
|
|
34
36
|
*
|
|
35
37
|
* // Create an issue with milestone and project assignment
|
|
36
|
-
* const
|
|
38
|
+
* const test = new github.Repository("test", {
|
|
39
|
+
* name: "tf-acc-test-%s",
|
|
37
40
|
* autoInit: true,
|
|
38
41
|
* hasIssues: true,
|
|
39
42
|
* });
|
|
40
|
-
* const testRepositoryMilestone = new github.RepositoryMilestone("
|
|
41
|
-
* owner:
|
|
42
|
-
*
|
|
43
|
+
* const testRepositoryMilestone = new github.RepositoryMilestone("test", {
|
|
44
|
+
* owner: std.splitOutput({
|
|
45
|
+
* separator: "/",
|
|
46
|
+
* text: test.fullName,
|
|
47
|
+
* }).apply(invoke => invoke.result?.[0]),
|
|
48
|
+
* repository: test.name,
|
|
43
49
|
* title: "v1.0.0",
|
|
44
50
|
* description: "General Availability",
|
|
45
51
|
* dueDate: "2022-11-22",
|
|
46
52
|
* state: "open",
|
|
47
53
|
* });
|
|
48
|
-
* const testIssue = new github.Issue("
|
|
49
|
-
* repository:
|
|
54
|
+
* const testIssue = new github.Issue("test", {
|
|
55
|
+
* repository: test.name,
|
|
50
56
|
* title: "My issue",
|
|
51
57
|
* body: "My issue body",
|
|
52
58
|
* labels: [
|
package/issue.js
CHANGED
|
@@ -19,12 +19,13 @@ const utilities = require("./utilities");
|
|
|
19
19
|
* import * as github from "@pulumi/github";
|
|
20
20
|
*
|
|
21
21
|
* // Create a simple issue
|
|
22
|
-
* const
|
|
22
|
+
* const test = new github.Repository("test", {
|
|
23
|
+
* name: "tf-acc-test-%s",
|
|
23
24
|
* autoInit: true,
|
|
24
25
|
* hasIssues: true,
|
|
25
26
|
* });
|
|
26
|
-
* const testIssue = new github.Issue("
|
|
27
|
-
* repository:
|
|
27
|
+
* const testIssue = new github.Issue("test", {
|
|
28
|
+
* repository: test.name,
|
|
28
29
|
* title: "My issue title",
|
|
29
30
|
* body: "The body of my issue",
|
|
30
31
|
* });
|
|
@@ -37,22 +38,27 @@ const utilities = require("./utilities");
|
|
|
37
38
|
* ```typescript
|
|
38
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
39
40
|
* import * as github from "@pulumi/github";
|
|
41
|
+
* import * as std from "@pulumi/std";
|
|
40
42
|
*
|
|
41
43
|
* // Create an issue with milestone and project assignment
|
|
42
|
-
* const
|
|
44
|
+
* const test = new github.Repository("test", {
|
|
45
|
+
* name: "tf-acc-test-%s",
|
|
43
46
|
* autoInit: true,
|
|
44
47
|
* hasIssues: true,
|
|
45
48
|
* });
|
|
46
|
-
* const testRepositoryMilestone = new github.RepositoryMilestone("
|
|
47
|
-
* owner:
|
|
48
|
-
*
|
|
49
|
+
* const testRepositoryMilestone = new github.RepositoryMilestone("test", {
|
|
50
|
+
* owner: std.splitOutput({
|
|
51
|
+
* separator: "/",
|
|
52
|
+
* text: test.fullName,
|
|
53
|
+
* }).apply(invoke => invoke.result?.[0]),
|
|
54
|
+
* repository: test.name,
|
|
49
55
|
* title: "v1.0.0",
|
|
50
56
|
* description: "General Availability",
|
|
51
57
|
* dueDate: "2022-11-22",
|
|
52
58
|
* state: "open",
|
|
53
59
|
* });
|
|
54
|
-
* const testIssue = new github.Issue("
|
|
55
|
-
* repository:
|
|
60
|
+
* const testIssue = new github.Issue("test", {
|
|
61
|
+
* repository: test.name,
|
|
56
62
|
* title: "My issue",
|
|
57
63
|
* body: "My issue body",
|
|
58
64
|
* labels: [
|
package/issue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"issue.js","sourceRoot":"","sources":["../issue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,MAAa,KAAM,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,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAxGL,sBAyGC;AA3FG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/issueLabel.d.ts
CHANGED
|
@@ -8,9 +8,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as github from "@pulumi/github";
|
|
9
9
|
*
|
|
10
10
|
* // Create a new, red colored label
|
|
11
|
-
* const testRepo = new github.IssueLabel("
|
|
12
|
-
* color: "FF0000",
|
|
11
|
+
* const testRepo = new github.IssueLabel("test_repo", {
|
|
13
12
|
* repository: "test-repo",
|
|
13
|
+
* name: "Urgent",
|
|
14
|
+
* color: "FF0000",
|
|
14
15
|
* });
|
|
15
16
|
* ```
|
|
16
17
|
* <!--End PulumiCodeChooser -->
|
package/issueLabel.js
CHANGED
|
@@ -14,9 +14,10 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as github from "@pulumi/github";
|
|
15
15
|
*
|
|
16
16
|
* // Create a new, red colored label
|
|
17
|
-
* const testRepo = new github.IssueLabel("
|
|
18
|
-
* color: "FF0000",
|
|
17
|
+
* const testRepo = new github.IssueLabel("test_repo", {
|
|
19
18
|
* repository: "test-repo",
|
|
19
|
+
* name: "Urgent",
|
|
20
|
+
* color: "FF0000",
|
|
20
21
|
* });
|
|
21
22
|
* ```
|
|
22
23
|
* <!--End PulumiCodeChooser -->
|
package/issueLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAgCD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,OAAO,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c,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtFL,gCAuFC;AAzEG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/issueLabels.d.ts
CHANGED
|
@@ -21,18 +21,18 @@ import * as outputs from "./types/output";
|
|
|
21
21
|
* import * as github from "@pulumi/github";
|
|
22
22
|
*
|
|
23
23
|
* // Create a new, red colored label
|
|
24
|
-
* const testRepo = new github.IssueLabels("
|
|
24
|
+
* const testRepo = new github.IssueLabels("test_repo", {
|
|
25
|
+
* repository: "test-repo",
|
|
25
26
|
* labels: [
|
|
26
27
|
* {
|
|
27
|
-
* color: "FF0000",
|
|
28
28
|
* name: "Urgent",
|
|
29
|
+
* color: "FF0000",
|
|
29
30
|
* },
|
|
30
31
|
* {
|
|
31
|
-
* color: "FF0000",
|
|
32
32
|
* name: "Critical",
|
|
33
|
+
* color: "FF0000",
|
|
33
34
|
* },
|
|
34
35
|
* ],
|
|
35
|
-
* repository: "test-repo",
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
38
|
* <!--End PulumiCodeChooser -->
|
package/issueLabels.js
CHANGED
|
@@ -25,18 +25,18 @@ const utilities = require("./utilities");
|
|
|
25
25
|
* import * as github from "@pulumi/github";
|
|
26
26
|
*
|
|
27
27
|
* // Create a new, red colored label
|
|
28
|
-
* const testRepo = new github.IssueLabels("
|
|
28
|
+
* const testRepo = new github.IssueLabels("test_repo", {
|
|
29
|
+
* repository: "test-repo",
|
|
29
30
|
* labels: [
|
|
30
31
|
* {
|
|
31
|
-
* color: "FF0000",
|
|
32
32
|
* name: "Urgent",
|
|
33
|
+
* color: "FF0000",
|
|
33
34
|
* },
|
|
34
35
|
* {
|
|
35
|
-
* color: "FF0000",
|
|
36
36
|
* name: "Critical",
|
|
37
|
+
* color: "FF0000",
|
|
37
38
|
* },
|
|
38
39
|
* ],
|
|
39
|
-
* repository: "test-repo",
|
|
40
40
|
* });
|
|
41
41
|
* ```
|
|
42
42
|
* <!--End PulumiCodeChooser -->
|
package/membership.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
* import * as github from "@pulumi/github";
|
|
15
15
|
*
|
|
16
16
|
* // Add a user to the organization
|
|
17
|
-
* const membershipForSomeUser = new github.Membership("
|
|
18
|
-
* role: "member",
|
|
17
|
+
* const membershipForSomeUser = new github.Membership("membership_for_some_user", {
|
|
19
18
|
* username: "SomeUser",
|
|
19
|
+
* role: "member",
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
* <!--End PulumiCodeChooser -->
|
package/membership.js
CHANGED
|
@@ -20,9 +20,9 @@ const utilities = require("./utilities");
|
|
|
20
20
|
* import * as github from "@pulumi/github";
|
|
21
21
|
*
|
|
22
22
|
* // Add a user to the organization
|
|
23
|
-
* const membershipForSomeUser = new github.Membership("
|
|
24
|
-
* role: "member",
|
|
23
|
+
* const membershipForSomeUser = new github.Membership("membership_for_some_user", {
|
|
25
24
|
* username: "SomeUser",
|
|
25
|
+
* role: "member",
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
* <!--End PulumiCodeChooser -->
|
|
@@ -12,8 +12,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* import * as github from "@pulumi/github";
|
|
13
13
|
*
|
|
14
14
|
* const example = new github.OrganizationCustomRole("example", {
|
|
15
|
-
*
|
|
15
|
+
* name: "example",
|
|
16
16
|
* description: "Example custom role that uses the read role as its base",
|
|
17
|
+
* baseRole: "read",
|
|
17
18
|
* permissions: [
|
|
18
19
|
* "add_assignee",
|
|
19
20
|
* "add_label",
|
|
@@ -18,8 +18,9 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* import * as github from "@pulumi/github";
|
|
19
19
|
*
|
|
20
20
|
* const example = new github.OrganizationCustomRole("example", {
|
|
21
|
-
*
|
|
21
|
+
* name: "example",
|
|
22
22
|
* description: "Example custom role that uses the read role as its base",
|
|
23
|
+
* baseRole: "read",
|
|
23
24
|
* permissions: [
|
|
24
25
|
* "add_assignee",
|
|
25
26
|
* "add_label",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationCustomRole.js","sourceRoot":"","sources":["../organizationCustomRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"organizationCustomRole.js","sourceRoot":"","sources":["../organizationCustomRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,C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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA7EL,wDA8EC;AAhEG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
package/organizationProject.d.ts
CHANGED
|
@@ -9,7 +9,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as github from "@pulumi/github";
|
|
11
11
|
*
|
|
12
|
-
* const project = new github.OrganizationProject("project", {
|
|
12
|
+
* const project = new github.OrganizationProject("project", {
|
|
13
|
+
* name: "A Organization Project",
|
|
14
|
+
* body: "This is a organization project.",
|
|
15
|
+
* });
|
|
13
16
|
* ```
|
|
14
17
|
* <!--End PulumiCodeChooser -->
|
|
15
18
|
*/
|
package/organizationProject.js
CHANGED
|
@@ -15,7 +15,10 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
|
-
* const project = new github.OrganizationProject("project", {
|
|
18
|
+
* const project = new github.OrganizationProject("project", {
|
|
19
|
+
* name: "A Organization Project",
|
|
20
|
+
* body: "This is a organization project.",
|
|
21
|
+
* });
|
|
19
22
|
* ```
|
|
20
23
|
* <!--End PulumiCodeChooser -->
|
|
21
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationProject.js","sourceRoot":"","sources":["../organizationProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"organizationProject.js","sourceRoot":"","sources":["../organizationProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAwBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AApEL,kDAqEC;AAvDG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/organizationRuleset.d.ts
CHANGED
|
@@ -6,6 +6,45 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* This resource allows you to create and manage rulesets on the organization level. When applied, a new ruleset will be created. When destroyed, that ruleset will be removed.
|
|
8
8
|
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as github from "@pulumi/github";
|
|
15
|
+
*
|
|
16
|
+
* const example = new github.OrganizationRuleset("example", {
|
|
17
|
+
* name: "example",
|
|
18
|
+
* target: "branch",
|
|
19
|
+
* enforcement: "active",
|
|
20
|
+
* conditions: {
|
|
21
|
+
* refName: {
|
|
22
|
+
* includes: ["~ALL"],
|
|
23
|
+
* excludes: [],
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* bypassActors: [{
|
|
27
|
+
* actorId: 13473,
|
|
28
|
+
* actorType: "Integration",
|
|
29
|
+
* bypassMode: "always",
|
|
30
|
+
* }],
|
|
31
|
+
* rules: {
|
|
32
|
+
* creation: true,
|
|
33
|
+
* update: true,
|
|
34
|
+
* deletion: true,
|
|
35
|
+
* requiredLinearHistory: true,
|
|
36
|
+
* requiredSignatures: true,
|
|
37
|
+
* branchNamePattern: {
|
|
38
|
+
* name: "example",
|
|
39
|
+
* negate: false,
|
|
40
|
+
* operator: "starts_with",
|
|
41
|
+
* pattern: "ex",
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
* <!--End PulumiCodeChooser -->
|
|
47
|
+
*
|
|
9
48
|
* ## Import
|
|
10
49
|
*
|
|
11
50
|
* GitHub Organization Rulesets can be imported using the GitHub ruleset ID e.g.
|