@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713
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/README.md +1 -1
- package/actionsEnvironmentSecret.d.ts +0 -105
- package/actionsEnvironmentSecret.js +0 -48
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +0 -72
- package/actionsOrganizationPermissions.js +0 -36
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +0 -110
- package/actionsOrganizationSecret.js +0 -50
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +0 -47
- package/actionsOrganizationSecretRepositories.js +0 -29
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRunnerGroup.d.ts +0 -88
- package/actionsRunnerGroup.js +0 -25
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +0 -70
- package/actionsSecret.js +0 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepository.d.ts +0 -54
- package/appInstallationRepository.js +0 -36
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +0 -92
- package/branch.js +0 -38
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +0 -53
- package/branchDefault.js +0 -35
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +3 -155
- package/branchProtection.js +0 -53
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +0 -138
- package/branchProtectionV3.js +0 -66
- package/branchProtectionV3.js.map +1 -1
- package/emuGroupMapping.d.ts +0 -41
- package/emuGroupMapping.js +0 -23
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +13 -0
- package/getActionsOrganizationSecrets.js +16 -0
- package/getActionsOrganizationSecrets.js.map +1 -0
- package/getActionsPublicKey.d.ts +0 -27
- package/getActionsPublicKey.js +0 -15
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsSecrets.d.ts +30 -0
- package/getActionsSecrets.js +24 -0
- package/getActionsSecrets.js.map +1 -0
- package/getBranch.d.ts +0 -36
- package/getBranch.js +0 -15
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +0 -36
- package/getCollaborators.js +0 -15
- package/getCollaborators.js.map +1 -1
- package/getExternalGroups.d.ts +0 -17
- package/getExternalGroups.js +0 -14
- package/getExternalGroups.js.map +1 -1
- package/getIpRanges.d.ts +0 -84
- package/getIpRanges.js +0 -12
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +0 -38
- package/getMembership.js +0 -17
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +0 -38
- package/getOrganization.js +0 -14
- package/getOrganization.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +0 -15
- package/getOrganizationTeamSyncGroups.js +0 -12
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +0 -38
- package/getOrganizationTeams.js +0 -25
- package/getOrganizationTeams.js.map +1 -1
- package/getRef.d.ts +0 -33
- package/getRef.js +0 -15
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +0 -121
- package/getRelease.js +0 -46
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +0 -29
- package/getRepositories.js +0 -17
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +0 -132
- package/getRepository.js +0 -14
- package/getRepository.js.map +1 -1
- package/getRepositoryFile.d.ts +0 -55
- package/getRepositoryFile.js +0 -17
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +0 -46
- package/getRepositoryMilestone.js +0 -16
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +0 -75
- package/getRepositoryPullRequest.js +0 -15
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +0 -72
- package/getRepositoryPullRequests.js +0 -18
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +30 -0
- package/getRepositoryTeams.js +24 -0
- package/getRepositoryTeams.js.map +1 -0
- package/getTeam.d.ts +0 -47
- package/getTeam.js +0 -14
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +0 -45
- package/getTree.js +0 -24
- package/getTree.js.map +1 -1
- package/getUser.d.ts +0 -87
- package/getUser.js +0 -21
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +0 -37
- package/getUsers.js +0 -22
- package/getUsers.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/issue.d.ts +6 -117
- package/issue.js +0 -63
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +0 -64
- package/issueLabel.js +0 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +0 -49
- package/membership.js +0 -28
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +0 -23
- package/organizationBlock.js +0 -14
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +0 -38
- package/organizationProject.js +0 -14
- package/organizationProject.js.map +1 -1
- package/organizationWebhook.d.ts +0 -63
- package/organizationWebhook.js +0 -30
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +0 -87
- package/projectCard.js +0 -51
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +0 -31
- package/projectColumn.js +0 -13
- package/projectColumn.js.map +1 -1
- package/repository.d.ts +3 -377
- package/repository.js +0 -47
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +6 -40
- package/repositoryAutolinkReference.js +0 -28
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +0 -90
- package/repositoryCollaborator.js +0 -42
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +0 -71
- package/repositoryDeployKey.js +0 -35
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +0 -61
- package/repositoryEnvironment.js +0 -34
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +28 -68
- package/repositoryFile.js +0 -37
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +3 -81
- package/repositoryMilestone.js +0 -27
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +0 -52
- package/repositoryProject.js +0 -19
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +4 -127
- package/repositoryPullRequest.js +0 -18
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +44 -0
- package/repositoryTagProtection.js +59 -0
- package/repositoryTagProtection.js.map +1 -0
- package/repositoryWebhook.d.ts +0 -79
- package/repositoryWebhook.js +0 -37
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +0 -100
- package/team.js +0 -27
- package/team.js.map +1 -1
- package/teamMembers.d.ts +0 -58
- package/teamMembers.js +0 -40
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +0 -67
- package/teamMembership.js +0 -37
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +3 -59
- package/teamRepository.js +0 -35
- package/teamRepository.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +0 -36
- package/teamSyncGroupMapping.js +0 -15
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +0 -86
- package/types/output.d.ts +16 -237
- package/userGpgKey.d.ts +0 -40
- package/userGpgKey.js +0 -22
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +0 -30
- package/userInvitationAccepter.js +0 -21
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +0 -50
- package/userSshKey.js +0 -26
- package/userSshKey.js.map +1 -1
package/getRef.d.ts
CHANGED
|
@@ -1,40 +1,16 @@
|
|
|
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 = pulumi.output(github.getRef({
|
|
12
|
-
* ref: "heads/development",
|
|
13
|
-
* repository: "example",
|
|
14
|
-
* }));
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
2
|
export declare function getRef(args: GetRefArgs, opts?: pulumi.InvokeOptions): Promise<GetRefResult>;
|
|
18
3
|
/**
|
|
19
4
|
* A collection of arguments for invoking getRef.
|
|
20
5
|
*/
|
|
21
6
|
export interface GetRefArgs {
|
|
22
|
-
/**
|
|
23
|
-
* The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
|
|
24
|
-
*/
|
|
25
7
|
ref: string;
|
|
26
|
-
/**
|
|
27
|
-
* The GitHub repository name.
|
|
28
|
-
*/
|
|
29
8
|
repository: string;
|
|
30
9
|
}
|
|
31
10
|
/**
|
|
32
11
|
* A collection of values returned by getRef.
|
|
33
12
|
*/
|
|
34
13
|
export interface GetRefResult {
|
|
35
|
-
/**
|
|
36
|
-
* An etag representing the ref.
|
|
37
|
-
*/
|
|
38
14
|
readonly etag: string;
|
|
39
15
|
/**
|
|
40
16
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -42,9 +18,6 @@ export interface GetRefResult {
|
|
|
42
18
|
readonly id: string;
|
|
43
19
|
readonly ref: string;
|
|
44
20
|
readonly repository: string;
|
|
45
|
-
/**
|
|
46
|
-
* A string storing the reference's `HEAD` commit's SHA1.
|
|
47
|
-
*/
|
|
48
21
|
readonly sha: string;
|
|
49
22
|
}
|
|
50
23
|
export declare function getRefOutput(args: GetRefOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRefResult>;
|
|
@@ -52,12 +25,6 @@ export declare function getRefOutput(args: GetRefOutputArgs, opts?: pulumi.Invok
|
|
|
52
25
|
* A collection of arguments for invoking getRef.
|
|
53
26
|
*/
|
|
54
27
|
export interface GetRefOutputArgs {
|
|
55
|
-
/**
|
|
56
|
-
* The repository ref to look up. Must be formatted `heads/<ref>` for branches, and `tags/<ref>` for tags.
|
|
57
|
-
*/
|
|
58
28
|
ref: pulumi.Input<string>;
|
|
59
|
-
/**
|
|
60
|
-
* The GitHub repository name.
|
|
61
|
-
*/
|
|
62
29
|
repository: pulumi.Input<string>;
|
|
63
30
|
}
|
package/getRef.js
CHANGED
|
@@ -5,21 +5,6 @@ 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 = pulumi.output(github.getRef({
|
|
18
|
-
* ref: "heads/development",
|
|
19
|
-
* repository: "example",
|
|
20
|
-
* }));
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
8
|
function getRef(args, opts) {
|
|
24
9
|
if (!opts) {
|
|
25
10
|
opts = {};
|
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
|
|
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;IAChE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,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;AAVD,wBAUC;AAwBD,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1D,CAAC;AAFD,oCAEC"}
|
package/getRelease.d.ts
CHANGED
|
@@ -1,146 +1,40 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Use this data source to retrieve information about a GitHub release in a specific repository.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* To retrieve the latest release that is present in a repository:
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as github from "@pulumi/github";
|
|
12
|
-
*
|
|
13
|
-
* const example = pulumi.output(github.getRelease({
|
|
14
|
-
* owner: "example-owner",
|
|
15
|
-
* repository: "example-repository",
|
|
16
|
-
* retrieveBy: "latest",
|
|
17
|
-
* }));
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* To retrieve a specific release from a repository based on it's ID:
|
|
21
|
-
*
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
-
* import * as github from "@pulumi/github";
|
|
25
|
-
*
|
|
26
|
-
* const example = pulumi.output(github.getRelease({
|
|
27
|
-
* id: "12345",
|
|
28
|
-
* owner: "example-owner",
|
|
29
|
-
* repository: "example-repository",
|
|
30
|
-
* retrieveBy: "id",
|
|
31
|
-
* }));
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* Finally, to retrieve a release based on it's tag:
|
|
35
|
-
*
|
|
36
|
-
* ```typescript
|
|
37
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
-
* import * as github from "@pulumi/github";
|
|
39
|
-
*
|
|
40
|
-
* const example = pulumi.output(github.getRelease({
|
|
41
|
-
* owner: "example-owner",
|
|
42
|
-
* releaseTag: "v1.0.0",
|
|
43
|
-
* repository: "example-repository",
|
|
44
|
-
* retrieveBy: "tag",
|
|
45
|
-
* }));
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
2
|
export declare function getRelease(args: GetReleaseArgs, opts?: pulumi.InvokeOptions): Promise<GetReleaseResult>;
|
|
49
3
|
/**
|
|
50
4
|
* A collection of arguments for invoking getRelease.
|
|
51
5
|
*/
|
|
52
6
|
export interface GetReleaseArgs {
|
|
53
|
-
/**
|
|
54
|
-
* Owner of the repository.
|
|
55
|
-
*/
|
|
56
7
|
owner: string;
|
|
57
|
-
/**
|
|
58
|
-
* ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
|
|
59
|
-
*/
|
|
60
8
|
releaseId?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
|
|
63
|
-
*/
|
|
64
9
|
releaseTag?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Name of the repository to retrieve the release from.
|
|
67
|
-
*/
|
|
68
10
|
repository: string;
|
|
69
|
-
/**
|
|
70
|
-
* Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
|
|
71
|
-
*/
|
|
72
11
|
retrieveBy: string;
|
|
73
12
|
}
|
|
74
13
|
/**
|
|
75
14
|
* A collection of values returned by getRelease.
|
|
76
15
|
*/
|
|
77
16
|
export interface GetReleaseResult {
|
|
78
|
-
/**
|
|
79
|
-
* URL of any associated assets with the release
|
|
80
|
-
*/
|
|
81
17
|
readonly assertsUrl: string;
|
|
82
|
-
/**
|
|
83
|
-
* Contents of the description (body) of a release
|
|
84
|
-
*/
|
|
85
18
|
readonly body: string;
|
|
86
|
-
/**
|
|
87
|
-
* Date of release creation
|
|
88
|
-
*/
|
|
89
19
|
readonly createdAt: string;
|
|
90
|
-
/**
|
|
91
|
-
* (`Boolean`) indicates whether the release is a draft
|
|
92
|
-
*/
|
|
93
20
|
readonly draft: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* URL directing to detailed information on the release
|
|
96
|
-
*/
|
|
97
21
|
readonly htmlUrl: string;
|
|
98
22
|
/**
|
|
99
23
|
* The provider-assigned unique ID for this managed resource.
|
|
100
24
|
*/
|
|
101
25
|
readonly id: string;
|
|
102
|
-
/**
|
|
103
|
-
* Name of release
|
|
104
|
-
*/
|
|
105
26
|
readonly name: string;
|
|
106
27
|
readonly owner: string;
|
|
107
|
-
/**
|
|
108
|
-
* (`Boolean`) indicates whether the release is a prerelease
|
|
109
|
-
*/
|
|
110
28
|
readonly prerelease: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Date of release publishing
|
|
113
|
-
*/
|
|
114
29
|
readonly publishedAt: string;
|
|
115
|
-
/**
|
|
116
|
-
* ID of release
|
|
117
|
-
*/
|
|
118
30
|
readonly releaseId?: number;
|
|
119
|
-
/**
|
|
120
|
-
* Tag of release
|
|
121
|
-
*/
|
|
122
31
|
readonly releaseTag?: string;
|
|
123
32
|
readonly repository: string;
|
|
124
33
|
readonly retrieveBy: string;
|
|
125
|
-
/**
|
|
126
|
-
* Download URL of a specific release in `tar.gz` format
|
|
127
|
-
*/
|
|
128
34
|
readonly tarballUrl: string;
|
|
129
|
-
/**
|
|
130
|
-
* Commitish value that determines where the Git release is created from
|
|
131
|
-
*/
|
|
132
35
|
readonly targetCommitish: string;
|
|
133
|
-
/**
|
|
134
|
-
* URL that can be used to upload Assets to the release
|
|
135
|
-
*/
|
|
136
36
|
readonly uploadUrl: string;
|
|
137
|
-
/**
|
|
138
|
-
* Base URL of the release
|
|
139
|
-
*/
|
|
140
37
|
readonly url: string;
|
|
141
|
-
/**
|
|
142
|
-
* Download URL of a specific release in `zip` format
|
|
143
|
-
*/
|
|
144
38
|
readonly zipballUrl: string;
|
|
145
39
|
}
|
|
146
40
|
export declare function getReleaseOutput(args: GetReleaseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetReleaseResult>;
|
|
@@ -148,24 +42,9 @@ export declare function getReleaseOutput(args: GetReleaseOutputArgs, opts?: pulu
|
|
|
148
42
|
* A collection of arguments for invoking getRelease.
|
|
149
43
|
*/
|
|
150
44
|
export interface GetReleaseOutputArgs {
|
|
151
|
-
/**
|
|
152
|
-
* Owner of the repository.
|
|
153
|
-
*/
|
|
154
45
|
owner: pulumi.Input<string>;
|
|
155
|
-
/**
|
|
156
|
-
* ID of the release to retrieve. Must be specified when `retrieveBy` = `id`.
|
|
157
|
-
*/
|
|
158
46
|
releaseId?: pulumi.Input<number>;
|
|
159
|
-
/**
|
|
160
|
-
* Tag of the release to retrieve. Must be specified when `retrieveBy` = `tag`.
|
|
161
|
-
*/
|
|
162
47
|
releaseTag?: pulumi.Input<string>;
|
|
163
|
-
/**
|
|
164
|
-
* Name of the repository to retrieve the release from.
|
|
165
|
-
*/
|
|
166
48
|
repository: pulumi.Input<string>;
|
|
167
|
-
/**
|
|
168
|
-
* Describes how to fetch the release. Valid values are `id`, `tag`, `latest`.
|
|
169
|
-
*/
|
|
170
49
|
retrieveBy: pulumi.Input<string>;
|
|
171
50
|
}
|
package/getRelease.js
CHANGED
|
@@ -5,52 +5,6 @@ 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
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* To retrieve the latest release that is present in a repository:
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as github from "@pulumi/github";
|
|
18
|
-
*
|
|
19
|
-
* const example = pulumi.output(github.getRelease({
|
|
20
|
-
* owner: "example-owner",
|
|
21
|
-
* repository: "example-repository",
|
|
22
|
-
* retrieveBy: "latest",
|
|
23
|
-
* }));
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* To retrieve a specific release from a repository based on it's ID:
|
|
27
|
-
*
|
|
28
|
-
* ```typescript
|
|
29
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
-
* import * as github from "@pulumi/github";
|
|
31
|
-
*
|
|
32
|
-
* const example = pulumi.output(github.getRelease({
|
|
33
|
-
* id: "12345",
|
|
34
|
-
* owner: "example-owner",
|
|
35
|
-
* repository: "example-repository",
|
|
36
|
-
* retrieveBy: "id",
|
|
37
|
-
* }));
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* Finally, to retrieve a release based on it's tag:
|
|
41
|
-
*
|
|
42
|
-
* ```typescript
|
|
43
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
-
* import * as github from "@pulumi/github";
|
|
45
|
-
*
|
|
46
|
-
* const example = pulumi.output(github.getRelease({
|
|
47
|
-
* owner: "example-owner",
|
|
48
|
-
* releaseTag: "v1.0.0",
|
|
49
|
-
* repository: "example-repository",
|
|
50
|
-
* retrieveBy: "tag",
|
|
51
|
-
* }));
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
8
|
function getRelease(args, opts) {
|
|
55
9
|
if (!opts) {
|
|
56
10
|
opts = {};
|
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;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getRelease.js","sourceRoot":"","sources":["../getRelease.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,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;AAbD,gCAaC;AAyCD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
|
package/getRepositories.d.ts
CHANGED
|
@@ -1,33 +1,10 @@
|
|
|
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 = pulumi.output(github.getRepositories({
|
|
15
|
-
* query: "org:hashicorp language:Go",
|
|
16
|
-
* }));
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
2
|
export declare function getRepositories(args: GetRepositoriesArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoriesResult>;
|
|
20
3
|
/**
|
|
21
4
|
* A collection of arguments for invoking getRepositories.
|
|
22
5
|
*/
|
|
23
6
|
export interface GetRepositoriesArgs {
|
|
24
|
-
/**
|
|
25
|
-
* Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
|
|
26
|
-
*/
|
|
27
7
|
query: string;
|
|
28
|
-
/**
|
|
29
|
-
* Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
|
|
30
|
-
*/
|
|
31
8
|
sort?: string;
|
|
32
9
|
}
|
|
33
10
|
/**
|
|
@@ -48,12 +25,6 @@ export declare function getRepositoriesOutput(args: GetRepositoriesOutputArgs, o
|
|
|
48
25
|
* A collection of arguments for invoking getRepositories.
|
|
49
26
|
*/
|
|
50
27
|
export interface GetRepositoriesOutputArgs {
|
|
51
|
-
/**
|
|
52
|
-
* Search query. See [documentation for the search syntax](https://help.github.com/articles/understanding-the-search-syntax/).
|
|
53
|
-
*/
|
|
54
28
|
query: pulumi.Input<string>;
|
|
55
|
-
/**
|
|
56
|
-
* Sorts the repositories returned by the specified attribute. Valid values include `stars`, `fork`, and `updated`. Defaults to `updated`.
|
|
57
|
-
*/
|
|
58
29
|
sort?: pulumi.Input<string>;
|
|
59
30
|
}
|
package/getRepositories.js
CHANGED
|
@@ -5,23 +5,6 @@ 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 = pulumi.output(github.getRepositories({
|
|
21
|
-
* query: "org:hashicorp language:Go",
|
|
22
|
-
* }));
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
8
|
function getRepositories(args, opts) {
|
|
26
9
|
if (!opts) {
|
|
27
10
|
opts = {};
|
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
|
|
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;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,0CAUC;AAwBD,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
|
package/getRepository.d.ts
CHANGED
|
@@ -1,170 +1,53 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { output as outputs } from "./types";
|
|
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 = pulumi.output(github.getRepository({
|
|
13
|
-
* fullName: "hashicorp/terraform",
|
|
14
|
-
* }));
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
3
|
export declare function getRepository(args?: GetRepositoryArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryResult>;
|
|
18
4
|
/**
|
|
19
5
|
* A collection of arguments for invoking getRepository.
|
|
20
6
|
*/
|
|
21
7
|
export interface GetRepositoryArgs {
|
|
22
|
-
/**
|
|
23
|
-
* A description of the repository.
|
|
24
|
-
*/
|
|
25
8
|
description?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Full name of the repository (in `org/name` format).
|
|
28
|
-
*/
|
|
29
9
|
fullName?: string;
|
|
30
|
-
/**
|
|
31
|
-
* URL of a page describing the project.
|
|
32
|
-
*/
|
|
33
10
|
homepageUrl?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The name of the repository.
|
|
36
|
-
*/
|
|
37
11
|
name?: string;
|
|
38
|
-
/**
|
|
39
|
-
* . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
|
|
40
|
-
*/
|
|
41
12
|
onlyProtectedBranches?: boolean;
|
|
42
13
|
}
|
|
43
14
|
/**
|
|
44
15
|
* A collection of values returned by getRepository.
|
|
45
16
|
*/
|
|
46
17
|
export interface GetRepositoryResult {
|
|
47
|
-
/**
|
|
48
|
-
* Whether the repository allows auto-merging pull requests.
|
|
49
|
-
*/
|
|
50
18
|
readonly allowAutoMerge: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the repository allows merge commits.
|
|
53
|
-
*/
|
|
54
19
|
readonly allowMergeCommit: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Whether the repository allows rebase merges.
|
|
57
|
-
*/
|
|
58
20
|
readonly allowRebaseMerge: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the repository allows squash merges.
|
|
61
|
-
*/
|
|
62
21
|
readonly allowSquashMerge: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the repository is archived.
|
|
65
|
-
*/
|
|
66
22
|
readonly archived: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* The list of this repository's branches. Each element of `branches` has the following attributes:
|
|
69
|
-
*/
|
|
70
|
-
readonly branches: outputs.GetRepositoryBranch[];
|
|
71
|
-
/**
|
|
72
|
-
* The name of the default branch of the repository.
|
|
73
|
-
*/
|
|
74
23
|
readonly defaultBranch: string;
|
|
75
|
-
/**
|
|
76
|
-
* A description of the repository.
|
|
77
|
-
*/
|
|
78
24
|
readonly description?: string;
|
|
79
25
|
readonly fullName: string;
|
|
80
|
-
/**
|
|
81
|
-
* URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
82
|
-
*/
|
|
83
26
|
readonly gitCloneUrl: string;
|
|
84
|
-
/**
|
|
85
|
-
* Whether the repository has Downloads feature enabled.
|
|
86
|
-
*/
|
|
87
27
|
readonly hasDownloads: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Whether the repository has GitHub Issues enabled.
|
|
90
|
-
*/
|
|
91
28
|
readonly hasIssues: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Whether the repository has the GitHub Projects enabled.
|
|
94
|
-
*/
|
|
95
29
|
readonly hasProjects: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Whether the repository has the GitHub Wiki enabled.
|
|
98
|
-
*/
|
|
99
30
|
readonly hasWiki: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* URL of a page describing the project.
|
|
102
|
-
*/
|
|
103
31
|
readonly homepageUrl?: string;
|
|
104
|
-
/**
|
|
105
|
-
* URL to the repository on the web.
|
|
106
|
-
*/
|
|
107
32
|
readonly htmlUrl: string;
|
|
108
|
-
/**
|
|
109
|
-
* URL that can be provided to `git clone` to clone the repository via HTTPS.
|
|
110
|
-
*/
|
|
111
33
|
readonly httpCloneUrl: string;
|
|
112
34
|
/**
|
|
113
35
|
* The provider-assigned unique ID for this managed resource.
|
|
114
36
|
*/
|
|
115
37
|
readonly id: string;
|
|
116
|
-
/**
|
|
117
|
-
* The default value for a merge commit message.
|
|
118
|
-
*/
|
|
119
38
|
readonly mergeCommitMessage: string;
|
|
120
|
-
/**
|
|
121
|
-
* The default value for a merge commit title.
|
|
122
|
-
*/
|
|
123
39
|
readonly mergeCommitTitle: string;
|
|
124
|
-
/**
|
|
125
|
-
* Name of the branch.
|
|
126
|
-
*/
|
|
127
40
|
readonly name: string;
|
|
128
|
-
/**
|
|
129
|
-
* GraphQL global node id for use with v4 API
|
|
130
|
-
*/
|
|
131
41
|
readonly nodeId: string;
|
|
132
42
|
readonly onlyProtectedBranches?: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* The repository's GitHub Pages configuration.
|
|
135
|
-
*/
|
|
136
43
|
readonly pages: outputs.GetRepositoryPage[];
|
|
137
|
-
/**
|
|
138
|
-
* Whether the repository is private.
|
|
139
|
-
*/
|
|
140
44
|
readonly private: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* GitHub ID for the repository
|
|
143
|
-
*/
|
|
144
45
|
readonly repoId: number;
|
|
145
|
-
/**
|
|
146
|
-
* The default value for a squash merge commit message.
|
|
147
|
-
*/
|
|
148
46
|
readonly squashMergeCommitMessage: string;
|
|
149
|
-
/**
|
|
150
|
-
* The default value for a squash merge commit title.
|
|
151
|
-
*/
|
|
152
47
|
readonly squashMergeCommitTitle: string;
|
|
153
|
-
/**
|
|
154
|
-
* URL that can be provided to `git clone` to clone the repository via SSH.
|
|
155
|
-
*/
|
|
156
48
|
readonly sshCloneUrl: string;
|
|
157
|
-
/**
|
|
158
|
-
* URL that can be provided to `svn checkout` to check out the repository via GitHub's Subversion protocol emulation.
|
|
159
|
-
*/
|
|
160
49
|
readonly svnUrl: string;
|
|
161
|
-
/**
|
|
162
|
-
* The list of topics of the repository.
|
|
163
|
-
*/
|
|
164
50
|
readonly topics: string[];
|
|
165
|
-
/**
|
|
166
|
-
* Whether the repository is public, private or internal.
|
|
167
|
-
*/
|
|
168
51
|
readonly visibility: string;
|
|
169
52
|
}
|
|
170
53
|
export declare function getRepositoryOutput(args?: GetRepositoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryResult>;
|
|
@@ -172,24 +55,9 @@ export declare function getRepositoryOutput(args?: GetRepositoryOutputArgs, opts
|
|
|
172
55
|
* A collection of arguments for invoking getRepository.
|
|
173
56
|
*/
|
|
174
57
|
export interface GetRepositoryOutputArgs {
|
|
175
|
-
/**
|
|
176
|
-
* A description of the repository.
|
|
177
|
-
*/
|
|
178
58
|
description?: pulumi.Input<string>;
|
|
179
|
-
/**
|
|
180
|
-
* Full name of the repository (in `org/name` format).
|
|
181
|
-
*/
|
|
182
59
|
fullName?: pulumi.Input<string>;
|
|
183
|
-
/**
|
|
184
|
-
* URL of a page describing the project.
|
|
185
|
-
*/
|
|
186
60
|
homepageUrl?: pulumi.Input<string>;
|
|
187
|
-
/**
|
|
188
|
-
* The name of the repository.
|
|
189
|
-
*/
|
|
190
61
|
name?: pulumi.Input<string>;
|
|
191
|
-
/**
|
|
192
|
-
* . If true, the `branches` attributes will be populated only with protected branches. Default: `false`.
|
|
193
|
-
*/
|
|
194
62
|
onlyProtectedBranches?: pulumi.Input<boolean>;
|
|
195
63
|
}
|
package/getRepository.js
CHANGED
|
@@ -5,20 +5,6 @@ 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 = pulumi.output(github.getRepository({
|
|
18
|
-
* fullName: "hashicorp/terraform",
|
|
19
|
-
* }));
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
8
|
function getRepository(args, opts) {
|
|
23
9
|
args = args || {};
|
|
24
10
|
if (!opts) {
|
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;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,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;QACjB,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,sCAcC;AAqDD,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
|