@pulumi/github 5.1.0 → 5.2.0-alpha.1673638210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +99 -0
- package/actionsEnvironmentSecret.js +64 -22
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +72 -0
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +72 -22
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +47 -0
- package/actionsOrganizationSecretRepositories.js +51 -22
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +119 -0
- package/actionsRepositoryPermissions.js +91 -0
- package/actionsRepositoryPermissions.js.map +1 -0
- package/actionsRunnerGroup.d.ts +88 -0
- package/actionsRunnerGroup.js +47 -22
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +70 -0
- package/actionsSecret.js +44 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepositories.d.ts +81 -0
- package/appInstallationRepositories.js +78 -0
- package/appInstallationRepositories.js.map +1 -0
- package/appInstallationRepository.d.ts +53 -0
- package/appInstallationRepository.js +57 -22
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +92 -0
- package/branch.js +60 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +53 -0
- package/branchDefault.js +57 -22
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +173 -3
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +138 -0
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/dependabotOrganizationSecret.js +22 -22
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +22 -22
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +42 -0
- package/emuGroupMapping.js +46 -22
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +31 -0
- package/getActionsOrganizationRegistrationToken.js +25 -0
- package/getActionsOrganizationRegistrationToken.js.map +1 -0
- package/getActionsOrganizationSecrets.d.ts +15 -0
- package/getActionsOrganizationSecrets.js +13 -4
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsPublicKey.d.ts +42 -0
- package/getActionsPublicKey.js +32 -5
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +67 -0
- package/getActionsRegistrationToken.js +47 -0
- package/getActionsRegistrationToken.js.map +1 -0
- package/getActionsSecrets.d.ts +46 -0
- package/getActionsSecrets.js +30 -5
- package/getActionsSecrets.js.map +1 -1
- package/getBranch.d.ts +51 -0
- package/getBranch.js +32 -5
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +51 -0
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +15 -0
- package/getDependabotOrganizationSecrets.js +13 -4
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +46 -0
- package/getDependabotSecrets.js +30 -5
- package/getDependabotSecrets.js.map +1 -1
- package/getExternalGroups.d.ts +17 -0
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +43 -0
- package/getGithubApp.js +30 -5
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +58 -0
- package/getMembership.js +36 -5
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +58 -0
- package/getOrganization.js +30 -5
- package/getOrganization.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +18 -0
- package/getOrganizationIpAllowList.js +15 -4
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +15 -0
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +80 -0
- package/getOrganizationTeams.js +52 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +18 -0
- package/getOrganizationWebhooks.js +15 -4
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +90 -0
- package/getRelease.js +8 -5
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +70 -0
- package/getRepositories.js +40 -5
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +141 -0
- package/getRepository.js +30 -5
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +49 -0
- package/getRepositoryBranches.js +30 -5
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryDeployKeys.d.ts +37 -0
- package/getRepositoryDeployKeys.js +30 -5
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryFile.d.ts +72 -0
- package/getRepositoryFile.js +36 -5
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +62 -0
- package/getRepositoryMilestone.js +34 -5
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +90 -0
- package/getRepositoryPullRequest.js +32 -5
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +90 -0
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +46 -0
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +36 -0
- package/getRepositoryWebhooks.js +34 -5
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +69 -0
- package/getTree.js +50 -5
- package/getTree.js.map +1 -1
- package/getUser.d.ts +102 -0
- package/getUser.js +38 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +55 -0
- package/getUsers.js +42 -5
- package/getUsers.js.map +1 -1
- package/index.d.ts +64 -44
- package/index.js +33 -3
- package/index.js.map +1 -1
- package/issue.d.ts +117 -6
- package/issue.js +85 -22
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +64 -0
- package/issueLabel.js +44 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +49 -0
- package/membership.js +49 -21
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +21 -0
- package/organizationBlock.js +31 -19
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +36 -0
- package/organizationProject.js +32 -20
- package/organizationProject.js.map +1 -1
- package/organizationSecurityManager.d.ts +67 -0
- package/organizationSecurityManager.js +71 -0
- package/organizationSecurityManager.js.map +1 -0
- package/organizationSettings.d.ts +274 -3
- package/organizationSettings.js +68 -22
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +63 -0
- package/organizationWebhook.js +52 -22
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +87 -0
- package/projectCard.js +73 -22
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +31 -0
- package/projectColumn.js +35 -22
- package/projectColumn.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/release.d.ts +194 -0
- package/release.js +121 -0
- package/release.js.map +1 -0
- package/repository.d.ts +391 -3
- package/repository.js +70 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +45 -12
- package/repositoryAutolinkReference.js +52 -22
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +90 -0
- package/repositoryCollaborator.js +64 -22
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +71 -0
- package/repositoryDeployKey.js +57 -22
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +61 -0
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +68 -34
- package/repositoryFile.js +59 -22
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +81 -3
- package/repositoryMilestone.js +49 -22
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +52 -0
- package/repositoryProject.js +41 -22
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +127 -4
- package/repositoryPullRequest.js +40 -22
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +41 -0
- package/repositoryTagProtection.js +45 -22
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryWebhook.d.ts +79 -0
- package/repositoryWebhook.js +59 -22
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +100 -0
- package/team.js +49 -22
- package/team.js.map +1 -1
- package/teamMembers.d.ts +58 -0
- package/teamMembers.js +62 -22
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +67 -0
- package/teamMembership.js +59 -22
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +59 -3
- package/teamRepository.js +57 -22
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +119 -0
- package/teamSettings.js +99 -0
- package/teamSettings.js.map +1 -0
- package/teamSyncGroupMapping.d.ts +36 -0
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +206 -0
- package/types/output.d.ts +498 -0
- package/userGpgKey.d.ts +39 -0
- package/userGpgKey.js +42 -21
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +30 -0
- package/userInvitationAccepter.js +38 -17
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +50 -0
- package/userSshKey.js +48 -22
- package/userSshKey.js.map +1 -1
package/getRepositories.d.ts
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* > **Note:** The data source will return a maximum of `1000` repositories
|
|
4
|
+
* [as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).
|
|
5
|
+
*
|
|
6
|
+
* Use this data source to retrieve a list of GitHub repositories using a search query.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example = github.getRepositories({
|
|
15
|
+
* includeRepoId: true,
|
|
16
|
+
* query: "org:hashicorp language:Go",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
2
20
|
export declare function getRepositories(args: GetRepositoriesArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoriesResult>;
|
|
3
21
|
/**
|
|
4
22
|
* A collection of arguments for invoking getRepositories.
|
|
5
23
|
*/
|
|
6
24
|
export interface GetRepositoriesArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Returns a list of found repository IDs
|
|
27
|
+
*/
|
|
28
|
+
includeRepoId?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
|
|
31
|
+
*/
|
|
7
32
|
query: string;
|
|
33
|
+
/**
|
|
34
|
+
* Set the number of repositories requested per API call. Can be useful to decrease if requests are timing out or to increase to reduce the number of API calls. Defaults to 100.
|
|
35
|
+
*/
|
|
36
|
+
resultsPerPage?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
|
|
39
|
+
*/
|
|
8
40
|
sort?: string;
|
|
9
41
|
}
|
|
10
42
|
/**
|
|
@@ -16,15 +48,53 @@ export interface GetRepositoriesResult {
|
|
|
16
48
|
* The provider-assigned unique ID for this managed resource.
|
|
17
49
|
*/
|
|
18
50
|
readonly id: string;
|
|
51
|
+
readonly includeRepoId?: boolean;
|
|
19
52
|
readonly names: string[];
|
|
20
53
|
readonly query: string;
|
|
54
|
+
/**
|
|
55
|
+
* (Optional) A list of found repository IDs (e.g. `449898861`)
|
|
56
|
+
*/
|
|
57
|
+
readonly repoIds: number[];
|
|
58
|
+
readonly resultsPerPage?: number;
|
|
21
59
|
readonly sort?: string;
|
|
22
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* > **Note:** The data source will return a maximum of `1000` repositories
|
|
63
|
+
* [as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).
|
|
64
|
+
*
|
|
65
|
+
* Use this data source to retrieve a list of GitHub repositories using a search query.
|
|
66
|
+
*
|
|
67
|
+
* ## Example Usage
|
|
68
|
+
*
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
71
|
+
* import * as github from "@pulumi/github";
|
|
72
|
+
*
|
|
73
|
+
* const example = github.getRepositories({
|
|
74
|
+
* includeRepoId: true,
|
|
75
|
+
* query: "org:hashicorp language:Go",
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
23
79
|
export declare function getRepositoriesOutput(args: GetRepositoriesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoriesResult>;
|
|
24
80
|
/**
|
|
25
81
|
* A collection of arguments for invoking getRepositories.
|
|
26
82
|
*/
|
|
27
83
|
export interface GetRepositoriesOutputArgs {
|
|
84
|
+
/**
|
|
85
|
+
* Returns a list of found repository IDs
|
|
86
|
+
*/
|
|
87
|
+
includeRepoId?: pulumi.Input<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
|
|
90
|
+
*/
|
|
28
91
|
query: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Set the number of repositories requested per API call. Can be useful to decrease if requests are timing out or to increase to reduce the number of API calls. Defaults to 100.
|
|
94
|
+
*/
|
|
95
|
+
resultsPerPage?: pulumi.Input<number>;
|
|
96
|
+
/**
|
|
97
|
+
* Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
|
|
98
|
+
*/
|
|
29
99
|
sort?: pulumi.Input<string>;
|
|
30
100
|
}
|
package/getRepositories.js
CHANGED
|
@@ -5,19 +5,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoriesOutput = exports.getRepositories = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* > **Note:** The data source will return a maximum of `1000` repositories
|
|
10
|
+
* [as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).
|
|
11
|
+
*
|
|
12
|
+
* Use this data source to retrieve a list of GitHub repositories using a search query.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as github from "@pulumi/github";
|
|
19
|
+
*
|
|
20
|
+
* const example = github.getRepositories({
|
|
21
|
+
* includeRepoId: true,
|
|
22
|
+
* query: "org:hashicorp language:Go",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
8
26
|
function getRepositories(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
28
|
return pulumi.runtime.invoke("github:index/getRepositories:getRepositories", {
|
|
29
|
+
"includeRepoId": args.includeRepoId,
|
|
14
30
|
"query": args.query,
|
|
31
|
+
"resultsPerPage": args.resultsPerPage,
|
|
15
32
|
"sort": args.sort,
|
|
16
33
|
}, opts);
|
|
17
34
|
}
|
|
18
35
|
exports.getRepositories = getRepositories;
|
|
36
|
+
/**
|
|
37
|
+
* > **Note:** The data source will return a maximum of `1000` repositories
|
|
38
|
+
* [as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).
|
|
39
|
+
*
|
|
40
|
+
* Use this data source to retrieve a list of GitHub repositories using a search query.
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as github from "@pulumi/github";
|
|
47
|
+
*
|
|
48
|
+
* const example = github.getRepositories({
|
|
49
|
+
* includeRepoId: true,
|
|
50
|
+
* query: "org:hashicorp language:Go",
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
19
54
|
function getRepositoriesOutput(args, opts) {
|
|
20
|
-
return pulumi.output(args).apply(a => getRepositories(a, opts));
|
|
55
|
+
return pulumi.output(args).apply((a) => getRepositories(a, opts));
|
|
21
56
|
}
|
|
22
57
|
exports.getRepositoriesOutput = getRepositoriesOutput;
|
|
23
58
|
//# sourceMappingURL=getRepositories.js.map
|
package/getRepositories.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositories.js","sourceRoot":"","sources":["../getRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositories.js","sourceRoot":"","sources":["../getRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AA2CD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
package/getRepository.d.ts
CHANGED
|
@@ -1,60 +1,201 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve information about a GitHub repository.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getRepository({
|
|
13
|
+
* fullName: "hashicorp/terraform",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
3
17
|
export declare function getRepository(args?: GetRepositoryArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryResult>;
|
|
4
18
|
/**
|
|
5
19
|
* A collection of arguments for invoking getRepository.
|
|
6
20
|
*/
|
|
7
21
|
export interface GetRepositoryArgs {
|
|
22
|
+
/**
|
|
23
|
+
* A description of the repository.
|
|
24
|
+
*/
|
|
8
25
|
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Full name of the repository (in `org/name` format).
|
|
28
|
+
*/
|
|
9
29
|
fullName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* URL of a page describing the project.
|
|
32
|
+
*/
|
|
10
33
|
homepageUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the repository.
|
|
36
|
+
*/
|
|
11
37
|
name?: string;
|
|
12
38
|
}
|
|
13
39
|
/**
|
|
14
40
|
* A collection of values returned by getRepository.
|
|
15
41
|
*/
|
|
16
42
|
export interface GetRepositoryResult {
|
|
43
|
+
/**
|
|
44
|
+
* Whether the repository allows auto-merging pull requests.
|
|
45
|
+
*/
|
|
17
46
|
readonly allowAutoMerge: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the repository allows merge commits.
|
|
49
|
+
*/
|
|
18
50
|
readonly allowMergeCommit: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the repository allows rebase merges.
|
|
53
|
+
*/
|
|
19
54
|
readonly allowRebaseMerge: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the repository allows squash merges.
|
|
57
|
+
*/
|
|
20
58
|
readonly allowSquashMerge: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the repository is archived.
|
|
61
|
+
*/
|
|
21
62
|
readonly archived: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The name of the default branch of the repository.
|
|
65
|
+
*/
|
|
22
66
|
readonly defaultBranch: string;
|
|
67
|
+
/**
|
|
68
|
+
* A description of the repository.
|
|
69
|
+
*/
|
|
23
70
|
readonly description?: string;
|
|
24
71
|
readonly fullName: string;
|
|
72
|
+
/**
|
|
73
|
+
* URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
74
|
+
*/
|
|
25
75
|
readonly gitCloneUrl: string;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the repository has Downloads feature enabled.
|
|
78
|
+
*/
|
|
26
79
|
readonly hasDownloads: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the repository has GitHub Issues enabled.
|
|
82
|
+
*/
|
|
27
83
|
readonly hasIssues: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the repository has the GitHub Projects enabled.
|
|
86
|
+
*/
|
|
28
87
|
readonly hasProjects: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the repository has the GitHub Wiki enabled.
|
|
90
|
+
*/
|
|
29
91
|
readonly hasWiki: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* URL of a page describing the project.
|
|
94
|
+
*/
|
|
30
95
|
readonly homepageUrl?: string;
|
|
96
|
+
/**
|
|
97
|
+
* URL to the repository on the web.
|
|
98
|
+
*/
|
|
31
99
|
readonly htmlUrl: string;
|
|
100
|
+
/**
|
|
101
|
+
* URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
102
|
+
*/
|
|
32
103
|
readonly httpCloneUrl: string;
|
|
33
104
|
/**
|
|
34
105
|
* The provider-assigned unique ID for this managed resource.
|
|
35
106
|
*/
|
|
36
107
|
readonly id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the repository is a template repository.
|
|
110
|
+
*/
|
|
111
|
+
readonly isTemplate: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The default value for a merge commit message.
|
|
114
|
+
*/
|
|
37
115
|
readonly mergeCommitMessage: string;
|
|
116
|
+
/**
|
|
117
|
+
* The default value for a merge commit title.
|
|
118
|
+
*/
|
|
38
119
|
readonly mergeCommitTitle: string;
|
|
39
120
|
readonly name: string;
|
|
121
|
+
/**
|
|
122
|
+
* GraphQL global node id for use with v4 API
|
|
123
|
+
*/
|
|
40
124
|
readonly nodeId: string;
|
|
125
|
+
/**
|
|
126
|
+
* The repository's GitHub Pages configuration.
|
|
127
|
+
*/
|
|
41
128
|
readonly pages: outputs.GetRepositoryPage[];
|
|
129
|
+
/**
|
|
130
|
+
* Whether the repository is private.
|
|
131
|
+
*/
|
|
42
132
|
readonly private: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* GitHub ID for the repository
|
|
135
|
+
*/
|
|
43
136
|
readonly repoId: number;
|
|
137
|
+
/**
|
|
138
|
+
* The default value for a squash merge commit message.
|
|
139
|
+
*/
|
|
44
140
|
readonly squashMergeCommitMessage: string;
|
|
141
|
+
/**
|
|
142
|
+
* The default value for a squash merge commit title.
|
|
143
|
+
*/
|
|
45
144
|
readonly squashMergeCommitTitle: string;
|
|
145
|
+
/**
|
|
146
|
+
* URL that can be provided to `git clone` to clone the repository via SSH.
|
|
147
|
+
*/
|
|
46
148
|
readonly sshCloneUrl: string;
|
|
149
|
+
/**
|
|
150
|
+
* URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
|
|
151
|
+
*/
|
|
47
152
|
readonly svnUrl: string;
|
|
153
|
+
/**
|
|
154
|
+
* The repository source template configuration.
|
|
155
|
+
*/
|
|
156
|
+
readonly template: outputs.GetRepositoryTemplate;
|
|
157
|
+
/**
|
|
158
|
+
* The list of topics of the repository.
|
|
159
|
+
*/
|
|
48
160
|
readonly topics: string[];
|
|
161
|
+
/**
|
|
162
|
+
* Whether the repository is public, private or internal.
|
|
163
|
+
*/
|
|
49
164
|
readonly visibility: string;
|
|
50
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Use this data source to retrieve information about a GitHub repository.
|
|
168
|
+
*
|
|
169
|
+
* ## Example Usage
|
|
170
|
+
*
|
|
171
|
+
* ```typescript
|
|
172
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
173
|
+
* import * as github from "@pulumi/github";
|
|
174
|
+
*
|
|
175
|
+
* const example = github.getRepository({
|
|
176
|
+
* fullName: "hashicorp/terraform",
|
|
177
|
+
* });
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
51
180
|
export declare function getRepositoryOutput(args?: GetRepositoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryResult>;
|
|
52
181
|
/**
|
|
53
182
|
* A collection of arguments for invoking getRepository.
|
|
54
183
|
*/
|
|
55
184
|
export interface GetRepositoryOutputArgs {
|
|
185
|
+
/**
|
|
186
|
+
* A description of the repository.
|
|
187
|
+
*/
|
|
56
188
|
description?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Full name of the repository (in `org/name` format).
|
|
191
|
+
*/
|
|
57
192
|
fullName?: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* URL of a page describing the project.
|
|
195
|
+
*/
|
|
58
196
|
homepageUrl?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* The name of the repository.
|
|
199
|
+
*/
|
|
59
200
|
name?: pulumi.Input<string>;
|
|
60
201
|
}
|
package/getRepository.js
CHANGED
|
@@ -5,12 +5,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryOutput = exports.getRepository = 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 repository.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getRepository({
|
|
18
|
+
* fullName: "hashicorp/terraform",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
8
22
|
function getRepository(args, opts) {
|
|
9
23
|
args = args || {};
|
|
10
|
-
|
|
11
|
-
opts = {};
|
|
12
|
-
}
|
|
13
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
25
|
return pulumi.runtime.invoke("github:index/getRepository:getRepository", {
|
|
15
26
|
"description": args.description,
|
|
16
27
|
"fullName": args.fullName,
|
|
@@ -19,8 +30,22 @@ function getRepository(args, opts) {
|
|
|
19
30
|
}, opts);
|
|
20
31
|
}
|
|
21
32
|
exports.getRepository = getRepository;
|
|
33
|
+
/**
|
|
34
|
+
* Use this data source to retrieve information about a GitHub repository.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as github from "@pulumi/github";
|
|
41
|
+
*
|
|
42
|
+
* const example = github.getRepository({
|
|
43
|
+
* fullName: "hashicorp/terraform",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
22
47
|
function getRepositoryOutput(args, opts) {
|
|
23
|
-
return pulumi.output(args).apply(a => getRepository(a, opts));
|
|
48
|
+
return pulumi.output(args).apply((a) => getRepository(a, opts));
|
|
24
49
|
}
|
|
25
50
|
exports.getRepositoryOutput = getRepositoryOutput;
|
|
26
51
|
//# sourceMappingURL=getRepository.js.map
|
package/getRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,0CAA0C,EAAE;QACrE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;AAuJD;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve information about branches in a repository.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getRepositoryBranches({
|
|
13
|
+
* repository: "example-repository",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
3
17
|
export declare function getRepositoryBranches(args: GetRepositoryBranchesArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryBranchesResult>;
|
|
4
18
|
/**
|
|
5
19
|
* A collection of arguments for invoking getRepositoryBranches.
|
|
6
20
|
*/
|
|
7
21
|
export interface GetRepositoryBranchesArgs {
|
|
22
|
+
/**
|
|
23
|
+
* . If true, the `branches` attributes will be populated only with non protected branches. Default: `false`.
|
|
24
|
+
*/
|
|
8
25
|
onlyNonProtectedBranches?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
|
|
28
|
+
*/
|
|
9
29
|
onlyProtectedBranches?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the repository to retrieve the branches from.
|
|
32
|
+
*/
|
|
10
33
|
repository: string;
|
|
11
34
|
}
|
|
12
35
|
/**
|
|
13
36
|
* A collection of values returned by getRepositoryBranches.
|
|
14
37
|
*/
|
|
15
38
|
export interface GetRepositoryBranchesResult {
|
|
39
|
+
/**
|
|
40
|
+
* The list of this repository's branches. Each element of `branches` has the following attributes:
|
|
41
|
+
*/
|
|
16
42
|
readonly branches: outputs.GetRepositoryBranchesBranch[];
|
|
17
43
|
/**
|
|
18
44
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -22,12 +48,35 @@ export interface GetRepositoryBranchesResult {
|
|
|
22
48
|
readonly onlyProtectedBranches?: boolean;
|
|
23
49
|
readonly repository: string;
|
|
24
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Use this data source to retrieve information about branches in a repository.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as github from "@pulumi/github";
|
|
59
|
+
*
|
|
60
|
+
* const example = github.getRepositoryBranches({
|
|
61
|
+
* repository: "example-repository",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
25
65
|
export declare function getRepositoryBranchesOutput(args: GetRepositoryBranchesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryBranchesResult>;
|
|
26
66
|
/**
|
|
27
67
|
* A collection of arguments for invoking getRepositoryBranches.
|
|
28
68
|
*/
|
|
29
69
|
export interface GetRepositoryBranchesOutputArgs {
|
|
70
|
+
/**
|
|
71
|
+
* . If true, the `branches` attributes will be populated only with non protected branches. Default: `false`.
|
|
72
|
+
*/
|
|
30
73
|
onlyNonProtectedBranches?: pulumi.Input<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
|
|
76
|
+
*/
|
|
31
77
|
onlyProtectedBranches?: pulumi.Input<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Name of the repository to retrieve the branches from.
|
|
80
|
+
*/
|
|
32
81
|
repository: pulumi.Input<string>;
|
|
33
82
|
}
|
package/getRepositoryBranches.js
CHANGED
|
@@ -5,11 +5,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryBranchesOutput = exports.getRepositoryBranches = 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 branches in a repository.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getRepositoryBranches({
|
|
18
|
+
* repository: "example-repository",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
8
22
|
function getRepositoryBranches(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
24
|
return pulumi.runtime.invoke("github:index/getRepositoryBranches:getRepositoryBranches", {
|
|
14
25
|
"onlyNonProtectedBranches": args.onlyNonProtectedBranches,
|
|
15
26
|
"onlyProtectedBranches": args.onlyProtectedBranches,
|
|
@@ -17,8 +28,22 @@ function getRepositoryBranches(args, opts) {
|
|
|
17
28
|
}, opts);
|
|
18
29
|
}
|
|
19
30
|
exports.getRepositoryBranches = getRepositoryBranches;
|
|
31
|
+
/**
|
|
32
|
+
* Use this data source to retrieve information about branches in a repository.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as github from "@pulumi/github";
|
|
39
|
+
*
|
|
40
|
+
* const example = github.getRepositoryBranches({
|
|
41
|
+
* repository: "example-repository",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
20
45
|
function getRepositoryBranchesOutput(args, opts) {
|
|
21
|
-
return pulumi.output(args).apply(a => getRepositoryBranches(a, opts));
|
|
46
|
+
return pulumi.output(args).apply((a) => getRepositoryBranches(a, opts));
|
|
22
47
|
}
|
|
23
48
|
exports.getRepositoryBranchesOutput = getRepositoryBranchesOutput;
|
|
24
49
|
//# sourceMappingURL=getRepositoryBranches.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositoryBranches.js","sourceRoot":"","sources":["../getRepositoryBranches.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositoryBranches.js","sourceRoot":"","sources":["../getRepositoryBranches.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,0BAA0B,EAAE,IAAI,CAAC,wBAAwB;QACzD,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;QACnD,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AAoCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve all deploy keys of a repository.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getRepositoryDeployKeys({
|
|
13
|
+
* repository: "example-repository",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
3
17
|
export declare function getRepositoryDeployKeys(args: GetRepositoryDeployKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryDeployKeysResult>;
|
|
4
18
|
/**
|
|
5
19
|
* A collection of arguments for invoking getRepositoryDeployKeys.
|
|
6
20
|
*/
|
|
7
21
|
export interface GetRepositoryDeployKeysArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the repository to retrieve the branches from.
|
|
24
|
+
*/
|
|
8
25
|
repository: string;
|
|
9
26
|
}
|
|
10
27
|
/**
|
|
@@ -15,13 +32,33 @@ export interface GetRepositoryDeployKeysResult {
|
|
|
15
32
|
* The provider-assigned unique ID for this managed resource.
|
|
16
33
|
*/
|
|
17
34
|
readonly id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The list of this repository's deploy keys. Each element of `keys` has the following attributes:
|
|
37
|
+
*/
|
|
18
38
|
readonly keys: outputs.GetRepositoryDeployKeysKey[];
|
|
19
39
|
readonly repository: string;
|
|
20
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Use this data source to retrieve all deploy keys of a repository.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as github from "@pulumi/github";
|
|
49
|
+
*
|
|
50
|
+
* const example = github.getRepositoryDeployKeys({
|
|
51
|
+
* repository: "example-repository",
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
21
55
|
export declare function getRepositoryDeployKeysOutput(args: GetRepositoryDeployKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryDeployKeysResult>;
|
|
22
56
|
/**
|
|
23
57
|
* A collection of arguments for invoking getRepositoryDeployKeys.
|
|
24
58
|
*/
|
|
25
59
|
export interface GetRepositoryDeployKeysOutputArgs {
|
|
60
|
+
/**
|
|
61
|
+
* Name of the repository to retrieve the branches from.
|
|
62
|
+
*/
|
|
26
63
|
repository: pulumi.Input<string>;
|
|
27
64
|
}
|
|
@@ -5,18 +5,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryDeployKeysOutput = exports.getRepositoryDeployKeys = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve all deploy keys of a repository.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getRepositoryDeployKeys({
|
|
18
|
+
* repository: "example-repository",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
8
22
|
function getRepositoryDeployKeys(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
24
|
return pulumi.runtime.invoke("github:index/getRepositoryDeployKeys:getRepositoryDeployKeys", {
|
|
14
25
|
"repository": args.repository,
|
|
15
26
|
}, opts);
|
|
16
27
|
}
|
|
17
28
|
exports.getRepositoryDeployKeys = getRepositoryDeployKeys;
|
|
29
|
+
/**
|
|
30
|
+
* Use this data source to retrieve all deploy keys of a repository.
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as github from "@pulumi/github";
|
|
37
|
+
*
|
|
38
|
+
* const example = github.getRepositoryDeployKeys({
|
|
39
|
+
* repository: "example-repository",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
18
43
|
function getRepositoryDeployKeysOutput(args, opts) {
|
|
19
|
-
return pulumi.output(args).apply(a => getRepositoryDeployKeys(a, opts));
|
|
44
|
+
return pulumi.output(args).apply((a) => getRepositoryDeployKeys(a, opts));
|
|
20
45
|
}
|
|
21
46
|
exports.getRepositoryDeployKeysOutput = getRepositoryDeployKeysOutput;
|
|
22
47
|
//# sourceMappingURL=getRepositoryDeployKeys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositoryDeployKeys.js","sourceRoot":"","sources":["../getRepositoryDeployKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositoryDeployKeys.js","sourceRoot":"","sources":["../getRepositoryDeployKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAElG,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;QACzF,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0DAMC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAA2B;IAC9G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClF,CAAC;AAFD,sEAEC"}
|