@pulumi/github 5.0.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 +68 -24
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +74 -1
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +76 -24
- 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 +48 -24
- 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 +175 -4
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +140 -1
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.js +26 -24
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +26 -24
- 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 +16 -1
- 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 +47 -1
- 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 +52 -1
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +28 -0
- package/getDependabotOrganizationSecrets.js +25 -0
- package/getDependabotOrganizationSecrets.js.map +1 -0
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +76 -0
- package/getDependabotSecrets.js +49 -0
- package/getDependabotSecrets.js.map +1 -0
- package/getExternalGroups.d.ts +18 -1
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +71 -0
- package/getGithubApp.js +47 -0
- package/getGithubApp.js.map +1 -0
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +59 -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 +31 -0
- package/getOrganizationIpAllowList.js +27 -0
- package/getOrganizationIpAllowList.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +16 -1
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +87 -1
- package/getOrganizationTeams.js +54 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +31 -0
- package/getOrganizationWebhooks.js +27 -0
- package/getOrganizationWebhooks.js.map +1 -0
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +92 -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 +142 -4
- package/getRepository.js +30 -6
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +82 -0
- package/getRepositoryBranches.js +49 -0
- package/getRepositoryBranches.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +64 -0
- package/getRepositoryDeployKeys.js +47 -0
- package/getRepositoryDeployKeys.js.map +1 -0
- 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 +91 -1
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +47 -1
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +63 -0
- package/getRepositoryWebhooks.js +51 -0
- package/getRepositoryWebhooks.js.map +1 -0
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +70 -1
- 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 +244 -68
- package/index.js +259 -171
- 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 +394 -0
- package/organizationSettings.js +148 -0
- package/organizationSettings.js.map +1 -0
- package/organizationWebhook.d.ts +65 -1
- 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.d.ts +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 +396 -4
- package/repository.js +72 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +54 -6
- package/repositoryAutolinkReference.js +54 -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 +63 -1
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +70 -30
- 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 +81 -1
- 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 +60 -1
- 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 +38 -1
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +208 -1
- package/types/output.d.ts +555 -1
- 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/utilities.js +13 -1
- package/utilities.js.map +1 -1
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve the identity provider (IdP) groups for an organization.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const test = github.getOrganizationTeamSyncGroups({});
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
3
15
|
export declare function getOrganizationTeamSyncGroups(opts?: pulumi.InvokeOptions): Promise<GetOrganizationTeamSyncGroupsResult>;
|
|
4
16
|
/**
|
|
5
17
|
* A collection of values returned by getOrganizationTeamSyncGroups.
|
|
6
18
|
*/
|
|
7
19
|
export interface GetOrganizationTeamSyncGroupsResult {
|
|
20
|
+
/**
|
|
21
|
+
* An Array of GitHub Identity Provider Groups. Each `group` block consists of the fields documented below.
|
|
22
|
+
*/
|
|
8
23
|
readonly groups: outputs.GetOrganizationTeamSyncGroupsGroup[];
|
|
9
24
|
/**
|
|
10
25
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -5,11 +5,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getOrganizationTeamSyncGroups = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve the identity provider (IdP) groups for an organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const test = github.getOrganizationTeamSyncGroups({});
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
8
20
|
function getOrganizationTeamSyncGroups(opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
21
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
22
|
return pulumi.runtime.invoke("github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups", {}, opts);
|
|
14
23
|
}
|
|
15
24
|
exports.getOrganizationTeamSyncGroups = getOrganizationTeamSyncGroups;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOrganizationTeamSyncGroups.js","sourceRoot":"","sources":["../getOrganizationTeamSyncGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getOrganizationTeamSyncGroups.js","sourceRoot":"","sources":["../getOrganizationTeamSyncGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,6BAA6B,CAAC,IAA2B;IAErE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sEAKC"}
|
|
@@ -1,11 +1,47 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve information about all GitHub teams in an organization.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* To retrieve *all* teams of the organization:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const all = github.getOrganizationTeams({});
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* To retrieve only the team's at the root of the organization:
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as github from "@pulumi/github";
|
|
22
|
+
*
|
|
23
|
+
* const rootTeams = github.getOrganizationTeams({
|
|
24
|
+
* rootTeamsOnly: true,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
3
28
|
export declare function getOrganizationTeams(args?: GetOrganizationTeamsArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationTeamsResult>;
|
|
4
29
|
/**
|
|
5
30
|
* A collection of arguments for invoking getOrganizationTeams.
|
|
6
31
|
*/
|
|
7
32
|
export interface GetOrganizationTeamsArgs {
|
|
33
|
+
/**
|
|
34
|
+
* (Optional) Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
|
|
35
|
+
*/
|
|
36
|
+
resultsPerPage?: number;
|
|
37
|
+
/**
|
|
38
|
+
* (Optional) Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
|
|
39
|
+
*/
|
|
8
40
|
rootTeamsOnly?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* (Optional) Exclude the members and repositories of the team from the returned result. Defaults to `false`.
|
|
43
|
+
*/
|
|
44
|
+
summaryOnly?: boolean;
|
|
9
45
|
}
|
|
10
46
|
/**
|
|
11
47
|
* A collection of values returned by getOrganizationTeams.
|
|
@@ -15,13 +51,63 @@ export interface GetOrganizationTeamsResult {
|
|
|
15
51
|
* The provider-assigned unique ID for this managed resource.
|
|
16
52
|
*/
|
|
17
53
|
readonly id: string;
|
|
54
|
+
/**
|
|
55
|
+
* (Optional) Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
|
|
56
|
+
*/
|
|
57
|
+
readonly resultsPerPage?: number;
|
|
58
|
+
/**
|
|
59
|
+
* (Optional) Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
|
|
60
|
+
*/
|
|
18
61
|
readonly rootTeamsOnly?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* (Optional) Exclude the members and repositories of the team from the returned result. Defaults to `false`.
|
|
64
|
+
*/
|
|
65
|
+
readonly summaryOnly?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* (Required) An Array of GitHub Teams. Each `team` block consists of the fields documented below.
|
|
68
|
+
*/
|
|
19
69
|
readonly teams: outputs.GetOrganizationTeamsTeam[];
|
|
20
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Use this data source to retrieve information about all GitHub teams in an organization.
|
|
73
|
+
*
|
|
74
|
+
* ## Example Usage
|
|
75
|
+
*
|
|
76
|
+
* To retrieve *all* teams of the organization:
|
|
77
|
+
*
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as github from "@pulumi/github";
|
|
81
|
+
*
|
|
82
|
+
* const all = github.getOrganizationTeams({});
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* To retrieve only the team's at the root of the organization:
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as github from "@pulumi/github";
|
|
90
|
+
*
|
|
91
|
+
* const rootTeams = github.getOrganizationTeams({
|
|
92
|
+
* rootTeamsOnly: true,
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
21
96
|
export declare function getOrganizationTeamsOutput(args?: GetOrganizationTeamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationTeamsResult>;
|
|
22
97
|
/**
|
|
23
98
|
* A collection of arguments for invoking getOrganizationTeams.
|
|
24
99
|
*/
|
|
25
100
|
export interface GetOrganizationTeamsOutputArgs {
|
|
101
|
+
/**
|
|
102
|
+
* (Optional) Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
|
|
103
|
+
*/
|
|
104
|
+
resultsPerPage?: pulumi.Input<number>;
|
|
105
|
+
/**
|
|
106
|
+
* (Optional) Only return teams that are at the organization's root, i.e. no nested teams. Defaults to `false`.
|
|
107
|
+
*/
|
|
26
108
|
rootTeamsOnly?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* (Optional) Exclude the members and repositories of the team from the returned result. Defaults to `false`.
|
|
111
|
+
*/
|
|
112
|
+
summaryOnly?: pulumi.Input<boolean>;
|
|
27
113
|
}
|
package/getOrganizationTeams.js
CHANGED
|
@@ -5,19 +5,68 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getOrganizationTeamsOutput = exports.getOrganizationTeams = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve information about all GitHub teams in an organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* To retrieve *all* teams of the organization:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* const all = github.getOrganizationTeams({});
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* To retrieve only the team's at the root of the organization:
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as github from "@pulumi/github";
|
|
27
|
+
*
|
|
28
|
+
* const rootTeams = github.getOrganizationTeams({
|
|
29
|
+
* rootTeamsOnly: true,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
8
33
|
function getOrganizationTeams(args, opts) {
|
|
9
34
|
args = args || {};
|
|
10
|
-
|
|
11
|
-
opts = {};
|
|
12
|
-
}
|
|
13
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
36
|
return pulumi.runtime.invoke("github:index/getOrganizationTeams:getOrganizationTeams", {
|
|
37
|
+
"resultsPerPage": args.resultsPerPage,
|
|
15
38
|
"rootTeamsOnly": args.rootTeamsOnly,
|
|
39
|
+
"summaryOnly": args.summaryOnly,
|
|
16
40
|
}, opts);
|
|
17
41
|
}
|
|
18
42
|
exports.getOrganizationTeams = getOrganizationTeams;
|
|
43
|
+
/**
|
|
44
|
+
* Use this data source to retrieve information about all GitHub teams in an organization.
|
|
45
|
+
*
|
|
46
|
+
* ## Example Usage
|
|
47
|
+
*
|
|
48
|
+
* To retrieve *all* teams of the organization:
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as github from "@pulumi/github";
|
|
53
|
+
*
|
|
54
|
+
* const all = github.getOrganizationTeams({});
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* To retrieve only the team's at the root of the organization:
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as github from "@pulumi/github";
|
|
62
|
+
*
|
|
63
|
+
* const rootTeams = github.getOrganizationTeams({
|
|
64
|
+
* rootTeamsOnly: true,
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
19
68
|
function getOrganizationTeamsOutput(args, opts) {
|
|
20
|
-
return pulumi.output(args).apply(a => getOrganizationTeams(a, opts));
|
|
69
|
+
return pulumi.output(args).apply((a) => getOrganizationTeams(a, opts));
|
|
21
70
|
}
|
|
22
71
|
exports.getOrganizationTeamsOutput = getOrganizationTeamsOutput;
|
|
23
72
|
//# sourceMappingURL=getOrganizationTeams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOrganizationTeams.js","sourceRoot":"","sources":["../getOrganizationTeams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getOrganizationTeams.js","sourceRoot":"","sources":["../getOrganizationTeams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,oDASC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,0BAA0B,CAAC,IAAqC,EAAE,IAA2B;IACzG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,gEAEC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve all webhooks of the organization.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* To retrieve *all* webhooks of the organization:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const all = github.getOrganizationWebhooks({});
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getOrganizationWebhooks(opts?: pulumi.InvokeOptions): Promise<GetOrganizationWebhooksResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of values returned by getOrganizationWebhooks.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetOrganizationWebhooksResult {
|
|
22
|
+
/**
|
|
23
|
+
* The provider-assigned unique ID for this managed resource.
|
|
24
|
+
*/
|
|
25
|
+
readonly id: string;
|
|
26
|
+
/**
|
|
27
|
+
* An Array of GitHub Webhooks. Each `webhook` block consists of the fields documented below.
|
|
28
|
+
* ___
|
|
29
|
+
*/
|
|
30
|
+
readonly webhooks: outputs.GetOrganizationWebhooksWebhook[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationWebhooks = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve all webhooks of the organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* To retrieve *all* webhooks of the organization:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* const all = github.getOrganizationWebhooks({});
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getOrganizationWebhooks(opts) {
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("github:index/getOrganizationWebhooks:getOrganizationWebhooks", {}, opts);
|
|
25
|
+
}
|
|
26
|
+
exports.getOrganizationWebhooks = getOrganizationWebhooks;
|
|
27
|
+
//# sourceMappingURL=getOrganizationWebhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationWebhooks.js","sourceRoot":"","sources":["../getOrganizationWebhooks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,IAA2B;IAE/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE,EAC5F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0DAKC"}
|
package/getRef.d.ts
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve information about a repository ref.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const development = github.getRef({
|
|
12
|
+
* ref: "heads/development",
|
|
13
|
+
* repository: "example",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export declare function getRef(args: GetRefArgs, opts?: pulumi.InvokeOptions): Promise<GetRefResult>;
|
|
3
18
|
/**
|
|
4
19
|
* A collection of arguments for invoking getRef.
|
|
5
20
|
*/
|
|
6
21
|
export interface GetRefArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
|
|
24
|
+
*/
|
|
7
25
|
ref: string;
|
|
26
|
+
/**
|
|
27
|
+
* The GitHub repository name.
|
|
28
|
+
*/
|
|
8
29
|
repository: string;
|
|
9
30
|
}
|
|
10
31
|
/**
|
|
11
32
|
* A collection of values returned by getRef.
|
|
12
33
|
*/
|
|
13
34
|
export interface GetRefResult {
|
|
35
|
+
/**
|
|
36
|
+
* An etag representing the ref.
|
|
37
|
+
*/
|
|
14
38
|
readonly etag: string;
|
|
15
39
|
/**
|
|
16
40
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -18,13 +42,37 @@ export interface GetRefResult {
|
|
|
18
42
|
readonly id: string;
|
|
19
43
|
readonly ref: string;
|
|
20
44
|
readonly repository: string;
|
|
45
|
+
/**
|
|
46
|
+
* A string storing the reference's `HEAD` commit's SHA1.
|
|
47
|
+
*/
|
|
21
48
|
readonly sha: string;
|
|
22
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Use this data source to retrieve information about a repository ref.
|
|
52
|
+
*
|
|
53
|
+
* ## Example Usage
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as github from "@pulumi/github";
|
|
58
|
+
*
|
|
59
|
+
* const development = github.getRef({
|
|
60
|
+
* ref: "heads/development",
|
|
61
|
+
* repository: "example",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
23
65
|
export declare function getRefOutput(args: GetRefOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRefResult>;
|
|
24
66
|
/**
|
|
25
67
|
* A collection of arguments for invoking getRef.
|
|
26
68
|
*/
|
|
27
69
|
export interface GetRefOutputArgs {
|
|
70
|
+
/**
|
|
71
|
+
* The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
|
|
72
|
+
*/
|
|
28
73
|
ref: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The GitHub repository name.
|
|
76
|
+
*/
|
|
29
77
|
repository: pulumi.Input<string>;
|
|
30
78
|
}
|
package/getRef.js
CHANGED
|
@@ -5,19 +5,46 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRefOutput = exports.getRef = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve information about a repository ref.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const development = github.getRef({
|
|
18
|
+
* ref: "heads/development",
|
|
19
|
+
* repository: "example",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
8
23
|
function getRef(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
25
|
return pulumi.runtime.invoke("github:index/getRef:getRef", {
|
|
14
26
|
"ref": args.ref,
|
|
15
27
|
"repository": args.repository,
|
|
16
28
|
}, opts);
|
|
17
29
|
}
|
|
18
30
|
exports.getRef = getRef;
|
|
31
|
+
/**
|
|
32
|
+
* Use this data source to retrieve information about a repository ref.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as github from "@pulumi/github";
|
|
39
|
+
*
|
|
40
|
+
* const development = github.getRef({
|
|
41
|
+
* ref: "heads/development",
|
|
42
|
+
* repository: "example",
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
19
46
|
function getRefOutput(args, opts) {
|
|
20
|
-
return pulumi.output(args).apply(a => getRef(a, opts));
|
|
47
|
+
return pulumi.output(args).apply((a) => getRef(a, opts));
|
|
21
48
|
}
|
|
22
49
|
exports.getRefOutput = getRefOutput;
|
|
23
50
|
//# sourceMappingURL=getRef.js.map
|
package/getRef.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRef.js","sourceRoot":"","sources":["../getRef.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRef.js","sourceRoot":"","sources":["../getRef.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAEhE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE;QACvD,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,wBAOC;AAmCD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,oCAEC"}
|
package/getRelease.d.ts
CHANGED
|
@@ -1,50 +1,142 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve information about a GitHub release in a specific repository.
|
|
5
|
+
*/
|
|
2
6
|
export declare function getRelease(args: GetReleaseArgs, opts?: pulumi.InvokeOptions): Promise<GetReleaseResult>;
|
|
3
7
|
/**
|
|
4
8
|
* A collection of arguments for invoking getRelease.
|
|
5
9
|
*/
|
|
6
10
|
export interface GetReleaseArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Owner of the repository.
|
|
13
|
+
*/
|
|
7
14
|
owner: string;
|
|
15
|
+
/**
|
|
16
|
+
* ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
|
|
17
|
+
*/
|
|
8
18
|
releaseId?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
|
|
21
|
+
*/
|
|
9
22
|
releaseTag?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Name of the repository to retrieve the release from.
|
|
25
|
+
*/
|
|
10
26
|
repository: string;
|
|
27
|
+
/**
|
|
28
|
+
* Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
|
|
29
|
+
*/
|
|
11
30
|
retrieveBy: string;
|
|
12
31
|
}
|
|
13
32
|
/**
|
|
14
33
|
* A collection of values returned by getRelease.
|
|
15
34
|
*/
|
|
16
35
|
export interface GetReleaseResult {
|
|
36
|
+
/**
|
|
37
|
+
* **Deprecated**: Use `assetsUrl` resource instead
|
|
38
|
+
*
|
|
39
|
+
* @deprecated use assets_url instead
|
|
40
|
+
*/
|
|
17
41
|
readonly assertsUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
* Collection of assets for the release. Each asset conforms to the following schema:
|
|
44
|
+
*/
|
|
45
|
+
readonly assets: outputs.GetReleaseAsset[];
|
|
46
|
+
/**
|
|
47
|
+
* URL of any associated assets with the release
|
|
48
|
+
*/
|
|
49
|
+
readonly assetsUrl: string;
|
|
50
|
+
/**
|
|
51
|
+
* Contents of the description (body) of a release
|
|
52
|
+
*/
|
|
18
53
|
readonly body: string;
|
|
54
|
+
/**
|
|
55
|
+
* Date the asset was created
|
|
56
|
+
*/
|
|
19
57
|
readonly createdAt: string;
|
|
58
|
+
/**
|
|
59
|
+
* (`Boolean`) indicates whether the release is a draft
|
|
60
|
+
*/
|
|
20
61
|
readonly draft: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* URL directing to detailed information on the release
|
|
64
|
+
*/
|
|
21
65
|
readonly htmlUrl: string;
|
|
22
66
|
/**
|
|
23
67
|
* The provider-assigned unique ID for this managed resource.
|
|
24
68
|
*/
|
|
25
69
|
readonly id: string;
|
|
70
|
+
/**
|
|
71
|
+
* The file name of the asset
|
|
72
|
+
*/
|
|
26
73
|
readonly name: string;
|
|
27
74
|
readonly owner: string;
|
|
75
|
+
/**
|
|
76
|
+
* (`Boolean`) indicates whether the release is a prerelease
|
|
77
|
+
*/
|
|
28
78
|
readonly prerelease: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Date of release publishing
|
|
81
|
+
*/
|
|
29
82
|
readonly publishedAt: string;
|
|
83
|
+
/**
|
|
84
|
+
* ID of release
|
|
85
|
+
*/
|
|
30
86
|
readonly releaseId?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Tag of release
|
|
89
|
+
*/
|
|
31
90
|
readonly releaseTag?: string;
|
|
32
91
|
readonly repository: string;
|
|
33
92
|
readonly retrieveBy: string;
|
|
93
|
+
/**
|
|
94
|
+
* Download URL of a specific release in `tar.gz` format
|
|
95
|
+
*/
|
|
34
96
|
readonly tarballUrl: string;
|
|
97
|
+
/**
|
|
98
|
+
* Commitish value that determines where the Git release is created from
|
|
99
|
+
*/
|
|
35
100
|
readonly targetCommitish: string;
|
|
101
|
+
/**
|
|
102
|
+
* URL that can be used to upload Assets to the release
|
|
103
|
+
*/
|
|
36
104
|
readonly uploadUrl: string;
|
|
105
|
+
/**
|
|
106
|
+
* URL of the asset
|
|
107
|
+
*/
|
|
37
108
|
readonly url: string;
|
|
109
|
+
/**
|
|
110
|
+
* Download URL of a specific release in `zip` format
|
|
111
|
+
*/
|
|
38
112
|
readonly zipballUrl: string;
|
|
39
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Use this data source to retrieve information about a GitHub release in a specific repository.
|
|
116
|
+
*/
|
|
40
117
|
export declare function getReleaseOutput(args: GetReleaseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetReleaseResult>;
|
|
41
118
|
/**
|
|
42
119
|
* A collection of arguments for invoking getRelease.
|
|
43
120
|
*/
|
|
44
121
|
export interface GetReleaseOutputArgs {
|
|
122
|
+
/**
|
|
123
|
+
* Owner of the repository.
|
|
124
|
+
*/
|
|
45
125
|
owner: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
|
|
128
|
+
*/
|
|
46
129
|
releaseId?: pulumi.Input<number>;
|
|
130
|
+
/**
|
|
131
|
+
* Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
|
|
132
|
+
*/
|
|
47
133
|
releaseTag?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Name of the repository to retrieve the release from.
|
|
136
|
+
*/
|
|
48
137
|
repository: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
|
|
140
|
+
*/
|
|
49
141
|
retrieveBy: pulumi.Input<string>;
|
|
50
142
|
}
|
package/getRelease.js
CHANGED
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getReleaseOutput = exports.getRelease = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve information about a GitHub release in a specific repository.
|
|
10
|
+
*/
|
|
8
11
|
function getRelease(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
13
|
return pulumi.runtime.invoke("github:index/getRelease:getRelease", {
|
|
14
14
|
"owner": args.owner,
|
|
15
15
|
"releaseId": args.releaseId,
|
|
@@ -19,8 +19,11 @@ function getRelease(args, opts) {
|
|
|
19
19
|
}, opts);
|
|
20
20
|
}
|
|
21
21
|
exports.getRelease = getRelease;
|
|
22
|
+
/**
|
|
23
|
+
* Use this data source to retrieve information about a GitHub release in a specific repository.
|
|
24
|
+
*/
|
|
22
25
|
function getReleaseOutput(args, opts) {
|
|
23
|
-
return pulumi.output(args).apply(a => getRelease(a, opts));
|
|
26
|
+
return pulumi.output(args).apply((a) => getRelease(a, opts));
|
|
24
27
|
}
|
|
25
28
|
exports.getReleaseOutput = getReleaseOutput;
|
|
26
29
|
//# sourceMappingURL=getRelease.js.map
|
package/getRelease.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRelease.js","sourceRoot":"","sources":["../getRelease.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getRelease.js","sourceRoot":"","sources":["../getRelease.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AA8GD;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
|