@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
package/getRepositoryFile.d.ts
CHANGED
|
@@ -1,11 +1,38 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This data source allows you to read files within a
|
|
4
|
+
* 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 foo = github.getRepositoryFile({
|
|
13
|
+
* repository: github_repository.foo.name,
|
|
14
|
+
* branch: "main",
|
|
15
|
+
* file: ".gitignore",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
2
19
|
export declare function getRepositoryFile(args: GetRepositoryFileArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryFileResult>;
|
|
3
20
|
/**
|
|
4
21
|
* A collection of arguments for invoking getRepositoryFile.
|
|
5
22
|
*/
|
|
6
23
|
export interface GetRepositoryFileArgs {
|
|
24
|
+
/**
|
|
25
|
+
* Git branch (defaults to `main`).
|
|
26
|
+
* The branch must already exist, it will not be created if it does not already exist.
|
|
27
|
+
*/
|
|
7
28
|
branch?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The path of the file to manage.
|
|
31
|
+
*/
|
|
8
32
|
file: string;
|
|
33
|
+
/**
|
|
34
|
+
* The repository to create the file in.
|
|
35
|
+
*/
|
|
9
36
|
repository: string;
|
|
10
37
|
}
|
|
11
38
|
/**
|
|
@@ -13,10 +40,25 @@ export interface GetRepositoryFileArgs {
|
|
|
13
40
|
*/
|
|
14
41
|
export interface GetRepositoryFileResult {
|
|
15
42
|
readonly branch?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Committer author name.
|
|
45
|
+
*/
|
|
16
46
|
readonly commitAuthor: string;
|
|
47
|
+
/**
|
|
48
|
+
* Committer email address.
|
|
49
|
+
*/
|
|
17
50
|
readonly commitEmail: string;
|
|
51
|
+
/**
|
|
52
|
+
* Commit message when file was last updated.
|
|
53
|
+
*/
|
|
18
54
|
readonly commitMessage: string;
|
|
55
|
+
/**
|
|
56
|
+
* The SHA of the commit that modified the file.
|
|
57
|
+
*/
|
|
19
58
|
readonly commitSha: string;
|
|
59
|
+
/**
|
|
60
|
+
* The file content.
|
|
61
|
+
*/
|
|
20
62
|
readonly content: string;
|
|
21
63
|
readonly file: string;
|
|
22
64
|
/**
|
|
@@ -24,14 +66,44 @@ export interface GetRepositoryFileResult {
|
|
|
24
66
|
*/
|
|
25
67
|
readonly id: string;
|
|
26
68
|
readonly repository: string;
|
|
69
|
+
/**
|
|
70
|
+
* The SHA blob of the file.
|
|
71
|
+
*/
|
|
27
72
|
readonly sha: string;
|
|
28
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* This data source allows you to read files within a
|
|
76
|
+
* GitHub repository.
|
|
77
|
+
*
|
|
78
|
+
* ## Example Usage
|
|
79
|
+
*
|
|
80
|
+
* ```typescript
|
|
81
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
82
|
+
* import * as github from "@pulumi/github";
|
|
83
|
+
*
|
|
84
|
+
* const foo = github.getRepositoryFile({
|
|
85
|
+
* repository: github_repository.foo.name,
|
|
86
|
+
* branch: "main",
|
|
87
|
+
* file: ".gitignore",
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
29
91
|
export declare function getRepositoryFileOutput(args: GetRepositoryFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryFileResult>;
|
|
30
92
|
/**
|
|
31
93
|
* A collection of arguments for invoking getRepositoryFile.
|
|
32
94
|
*/
|
|
33
95
|
export interface GetRepositoryFileOutputArgs {
|
|
96
|
+
/**
|
|
97
|
+
* Git branch (defaults to `main`).
|
|
98
|
+
* The branch must already exist, it will not be created if it does not already exist.
|
|
99
|
+
*/
|
|
34
100
|
branch?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The path of the file to manage.
|
|
103
|
+
*/
|
|
35
104
|
file: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* The repository to create the file in.
|
|
107
|
+
*/
|
|
36
108
|
repository: pulumi.Input<string>;
|
|
37
109
|
}
|
package/getRepositoryFile.js
CHANGED
|
@@ -5,11 +5,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryFileOutput = exports.getRepositoryFile = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This data source allows you to read files within a
|
|
10
|
+
* GitHub repository.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const foo = github.getRepositoryFile({
|
|
19
|
+
* repository: github_repository.foo.name,
|
|
20
|
+
* branch: "main",
|
|
21
|
+
* file: ".gitignore",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
8
25
|
function getRepositoryFile(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
27
|
return pulumi.runtime.invoke("github:index/getRepositoryFile:getRepositoryFile", {
|
|
14
28
|
"branch": args.branch,
|
|
15
29
|
"file": args.file,
|
|
@@ -17,8 +31,25 @@ function getRepositoryFile(args, opts) {
|
|
|
17
31
|
}, opts);
|
|
18
32
|
}
|
|
19
33
|
exports.getRepositoryFile = getRepositoryFile;
|
|
34
|
+
/**
|
|
35
|
+
* This data source allows you to read files within a
|
|
36
|
+
* GitHub repository.
|
|
37
|
+
*
|
|
38
|
+
* ## Example Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as github from "@pulumi/github";
|
|
43
|
+
*
|
|
44
|
+
* const foo = github.getRepositoryFile({
|
|
45
|
+
* repository: github_repository.foo.name,
|
|
46
|
+
* branch: "main",
|
|
47
|
+
* file: ".gitignore",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
20
51
|
function getRepositoryFileOutput(args, opts) {
|
|
21
|
-
return pulumi.output(args).apply(a => getRepositoryFile(a, opts));
|
|
52
|
+
return pulumi.output(args).apply((a) => getRepositoryFile(a, opts));
|
|
22
53
|
}
|
|
23
54
|
exports.getRepositoryFileOutput = getRepositoryFileOutput;
|
|
24
55
|
//# sourceMappingURL=getRepositoryFile.js.map
|
package/getRepositoryFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositoryFile.js","sourceRoot":"","sources":["../getRepositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositoryFile.js","sourceRoot":"","sources":["../getRepositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IAEtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8CAQC;AAyDD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
|
|
@@ -1,18 +1,49 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve information about a specific GitHub milestone in a repository.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = github.getRepositoryMilestone({
|
|
12
|
+
* number: 1,
|
|
13
|
+
* owner: "example-owner",
|
|
14
|
+
* repository: "example-repository",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
2
18
|
export declare function getRepositoryMilestone(args: GetRepositoryMilestoneArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryMilestoneResult>;
|
|
3
19
|
/**
|
|
4
20
|
* A collection of arguments for invoking getRepositoryMilestone.
|
|
5
21
|
*/
|
|
6
22
|
export interface GetRepositoryMilestoneArgs {
|
|
23
|
+
/**
|
|
24
|
+
* The number of the milestone.
|
|
25
|
+
*/
|
|
7
26
|
number: number;
|
|
27
|
+
/**
|
|
28
|
+
* Owner of the repository.
|
|
29
|
+
*/
|
|
8
30
|
owner: string;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the repository to retrieve the milestone from.
|
|
33
|
+
*/
|
|
9
34
|
repository: string;
|
|
10
35
|
}
|
|
11
36
|
/**
|
|
12
37
|
* A collection of values returned by getRepositoryMilestone.
|
|
13
38
|
*/
|
|
14
39
|
export interface GetRepositoryMilestoneResult {
|
|
40
|
+
/**
|
|
41
|
+
* Description of the milestone.
|
|
42
|
+
*/
|
|
15
43
|
readonly description: string;
|
|
44
|
+
/**
|
|
45
|
+
* The milestone due date (in ISO-8601 `yyyy-mm-dd` format).
|
|
46
|
+
*/
|
|
16
47
|
readonly dueDate: string;
|
|
17
48
|
/**
|
|
18
49
|
* The provider-assigned unique ID for this managed resource.
|
|
@@ -21,15 +52,46 @@ export interface GetRepositoryMilestoneResult {
|
|
|
21
52
|
readonly number: number;
|
|
22
53
|
readonly owner: string;
|
|
23
54
|
readonly repository: string;
|
|
55
|
+
/**
|
|
56
|
+
* State of the milestone.
|
|
57
|
+
*/
|
|
24
58
|
readonly state: string;
|
|
59
|
+
/**
|
|
60
|
+
* Title of the milestone.
|
|
61
|
+
*/
|
|
25
62
|
readonly title: string;
|
|
26
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Use this data source to retrieve information about a specific GitHub milestone in a repository.
|
|
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.getRepositoryMilestone({
|
|
74
|
+
* number: 1,
|
|
75
|
+
* owner: "example-owner",
|
|
76
|
+
* repository: "example-repository",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
27
80
|
export declare function getRepositoryMilestoneOutput(args: GetRepositoryMilestoneOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryMilestoneResult>;
|
|
28
81
|
/**
|
|
29
82
|
* A collection of arguments for invoking getRepositoryMilestone.
|
|
30
83
|
*/
|
|
31
84
|
export interface GetRepositoryMilestoneOutputArgs {
|
|
85
|
+
/**
|
|
86
|
+
* The number of the milestone.
|
|
87
|
+
*/
|
|
32
88
|
number: pulumi.Input<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Owner of the repository.
|
|
91
|
+
*/
|
|
33
92
|
owner: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the repository to retrieve the milestone from.
|
|
95
|
+
*/
|
|
34
96
|
repository: pulumi.Input<string>;
|
|
35
97
|
}
|
|
@@ -5,11 +5,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryMilestoneOutput = exports.getRepositoryMilestone = 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 specific GitHub milestone 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.getRepositoryMilestone({
|
|
18
|
+
* number: 1,
|
|
19
|
+
* owner: "example-owner",
|
|
20
|
+
* repository: "example-repository",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
8
24
|
function getRepositoryMilestone(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
26
|
return pulumi.runtime.invoke("github:index/getRepositoryMilestone:getRepositoryMilestone", {
|
|
14
27
|
"number": args.number,
|
|
15
28
|
"owner": args.owner,
|
|
@@ -17,8 +30,24 @@ function getRepositoryMilestone(args, opts) {
|
|
|
17
30
|
}, opts);
|
|
18
31
|
}
|
|
19
32
|
exports.getRepositoryMilestone = getRepositoryMilestone;
|
|
33
|
+
/**
|
|
34
|
+
* Use this data source to retrieve information about a specific GitHub milestone in a 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.getRepositoryMilestone({
|
|
43
|
+
* number: 1,
|
|
44
|
+
* owner: "example-owner",
|
|
45
|
+
* repository: "example-repository",
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
20
49
|
function getRepositoryMilestoneOutput(args, opts) {
|
|
21
|
-
return pulumi.output(args).apply(a => getRepositoryMilestone(a, opts));
|
|
50
|
+
return pulumi.output(args).apply((a) => getRepositoryMilestone(a, opts));
|
|
22
51
|
}
|
|
23
52
|
exports.getRepositoryMilestoneOutput = getRepositoryMilestoneOutput;
|
|
24
53
|
//# sourceMappingURL=getRepositoryMilestone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositoryMilestone.js","sourceRoot":"","sources":["../getRepositoryMilestone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositoryMilestone.js","sourceRoot":"","sources":["../getRepositoryMilestone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAEhG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,wDAQC;AAgDD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAA2B;IAC5G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjF,CAAC;AAFD,oEAEC"}
|
|
@@ -1,46 +1,136 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve information about a specific GitHub Pull Request in a repository.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = github.getRepositoryPullRequest({
|
|
12
|
+
* baseRepository: "example_repository",
|
|
13
|
+
* number: 1,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export declare function getRepositoryPullRequest(args: GetRepositoryPullRequestArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryPullRequestResult>;
|
|
3
18
|
/**
|
|
4
19
|
* A collection of arguments for invoking getRepositoryPullRequest.
|
|
5
20
|
*/
|
|
6
21
|
export interface GetRepositoryPullRequestArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the base repository to retrieve the Pull Request from.
|
|
24
|
+
*/
|
|
7
25
|
baseRepository: string;
|
|
26
|
+
/**
|
|
27
|
+
* The number of the Pull Request within the repository.
|
|
28
|
+
*/
|
|
8
29
|
number: number;
|
|
30
|
+
/**
|
|
31
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
32
|
+
*/
|
|
9
33
|
owner?: string;
|
|
10
34
|
}
|
|
11
35
|
/**
|
|
12
36
|
* A collection of values returned by getRepositoryPullRequest.
|
|
13
37
|
*/
|
|
14
38
|
export interface GetRepositoryPullRequestResult {
|
|
39
|
+
/**
|
|
40
|
+
* Name of the ref (branch) of the Pull Request base.
|
|
41
|
+
*/
|
|
15
42
|
readonly baseRef: string;
|
|
16
43
|
readonly baseRepository: string;
|
|
44
|
+
/**
|
|
45
|
+
* Head commit SHA of the Pull Request base.
|
|
46
|
+
*/
|
|
17
47
|
readonly baseSha: string;
|
|
48
|
+
/**
|
|
49
|
+
* Body of the Pull Request.
|
|
50
|
+
*/
|
|
18
51
|
readonly body: string;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates Whether this Pull Request is a draft.
|
|
54
|
+
*/
|
|
19
55
|
readonly draft: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Owner of the Pull Request head repository.
|
|
58
|
+
*/
|
|
20
59
|
readonly headOwner: string;
|
|
21
60
|
readonly headRef: string;
|
|
61
|
+
/**
|
|
62
|
+
* Name of the Pull Request head repository.
|
|
63
|
+
*/
|
|
22
64
|
readonly headRepository: string;
|
|
65
|
+
/**
|
|
66
|
+
* Head commit SHA of the Pull Request head.
|
|
67
|
+
*/
|
|
23
68
|
readonly headSha: string;
|
|
24
69
|
/**
|
|
25
70
|
* The provider-assigned unique ID for this managed resource.
|
|
26
71
|
*/
|
|
27
72
|
readonly id: string;
|
|
73
|
+
/**
|
|
74
|
+
* List of label names set on the Pull Request.
|
|
75
|
+
*/
|
|
28
76
|
readonly labels: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Indicates whether the base repository maintainers can modify the Pull Request.
|
|
79
|
+
*/
|
|
29
80
|
readonly maintainerCanModify: boolean;
|
|
30
81
|
readonly number: number;
|
|
82
|
+
/**
|
|
83
|
+
* Unix timestamp indicating the Pull Request creation time.
|
|
84
|
+
*/
|
|
31
85
|
readonly openedAt: number;
|
|
86
|
+
/**
|
|
87
|
+
* GitHub login of the user who opened the Pull Request.
|
|
88
|
+
*/
|
|
32
89
|
readonly openedBy: string;
|
|
33
90
|
readonly owner?: string;
|
|
91
|
+
/**
|
|
92
|
+
* the current Pull Request state - can be "open", "closed" or "merged".
|
|
93
|
+
*/
|
|
34
94
|
readonly state: string;
|
|
95
|
+
/**
|
|
96
|
+
* The title of the Pull Request.
|
|
97
|
+
*/
|
|
35
98
|
readonly title: string;
|
|
99
|
+
/**
|
|
100
|
+
* The timestamp of the last Pull Request update.
|
|
101
|
+
*/
|
|
36
102
|
readonly updatedAt: number;
|
|
37
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Use this data source to retrieve information about a specific GitHub Pull Request in a repository.
|
|
106
|
+
*
|
|
107
|
+
* ## Example Usage
|
|
108
|
+
*
|
|
109
|
+
* ```typescript
|
|
110
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
111
|
+
* import * as github from "@pulumi/github";
|
|
112
|
+
*
|
|
113
|
+
* const example = github.getRepositoryPullRequest({
|
|
114
|
+
* baseRepository: "example_repository",
|
|
115
|
+
* number: 1,
|
|
116
|
+
* });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
38
119
|
export declare function getRepositoryPullRequestOutput(args: GetRepositoryPullRequestOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryPullRequestResult>;
|
|
39
120
|
/**
|
|
40
121
|
* A collection of arguments for invoking getRepositoryPullRequest.
|
|
41
122
|
*/
|
|
42
123
|
export interface GetRepositoryPullRequestOutputArgs {
|
|
124
|
+
/**
|
|
125
|
+
* Name of the base repository to retrieve the Pull Request from.
|
|
126
|
+
*/
|
|
43
127
|
baseRepository: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The number of the Pull Request within the repository.
|
|
130
|
+
*/
|
|
44
131
|
number: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
134
|
+
*/
|
|
45
135
|
owner?: pulumi.Input<string>;
|
|
46
136
|
}
|
|
@@ -5,11 +5,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getRepositoryPullRequestOutput = exports.getRepositoryPullRequest = 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 specific GitHub Pull Request 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.getRepositoryPullRequest({
|
|
18
|
+
* baseRepository: "example_repository",
|
|
19
|
+
* number: 1,
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
8
23
|
function getRepositoryPullRequest(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/getRepositoryPullRequest:getRepositoryPullRequest", {
|
|
14
26
|
"baseRepository": args.baseRepository,
|
|
15
27
|
"number": args.number,
|
|
@@ -17,8 +29,23 @@ function getRepositoryPullRequest(args, opts) {
|
|
|
17
29
|
}, opts);
|
|
18
30
|
}
|
|
19
31
|
exports.getRepositoryPullRequest = getRepositoryPullRequest;
|
|
32
|
+
/**
|
|
33
|
+
* Use this data source to retrieve information about a specific GitHub Pull Request in a repository.
|
|
34
|
+
*
|
|
35
|
+
* ## Example Usage
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as github from "@pulumi/github";
|
|
40
|
+
*
|
|
41
|
+
* const example = github.getRepositoryPullRequest({
|
|
42
|
+
* baseRepository: "example_repository",
|
|
43
|
+
* number: 1,
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
20
47
|
function getRepositoryPullRequestOutput(args, opts) {
|
|
21
|
-
return pulumi.output(args).apply(a => getRepositoryPullRequest(a, opts));
|
|
48
|
+
return pulumi.output(args).apply((a) => getRepositoryPullRequest(a, opts));
|
|
22
49
|
}
|
|
23
50
|
exports.getRepositoryPullRequestOutput = getRepositoryPullRequestOutput;
|
|
24
51
|
//# sourceMappingURL=getRepositoryPullRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepositoryPullRequest.js","sourceRoot":"","sources":["../getRepositoryPullRequest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getRepositoryPullRequest.js","sourceRoot":"","sources":["../getRepositoryPullRequest.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IAEpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4DAQC;AAyFD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,8BAA8B,CAAC,IAAwC,EAAE,IAA2B;IAChH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnF,CAAC;AAFD,wEAEC"}
|
|
@@ -1,45 +1,135 @@
|
|
|
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 multiple GitHub Pull Requests 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.getRepositoryPullRequests({
|
|
13
|
+
* baseRef: "main",
|
|
14
|
+
* baseRepository: "example-repository",
|
|
15
|
+
* sortBy: "updated",
|
|
16
|
+
* sortDirection: "desc",
|
|
17
|
+
* state: "open",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
3
21
|
export declare function getRepositoryPullRequests(args: GetRepositoryPullRequestsArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryPullRequestsResult>;
|
|
4
22
|
/**
|
|
5
23
|
* A collection of arguments for invoking getRepositoryPullRequests.
|
|
6
24
|
*/
|
|
7
25
|
export interface GetRepositoryPullRequestsArgs {
|
|
26
|
+
/**
|
|
27
|
+
* If set, filters Pull Requests by base branch name.
|
|
28
|
+
*/
|
|
8
29
|
baseRef?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the base repository to retrieve the Pull Requests from.
|
|
32
|
+
*/
|
|
9
33
|
baseRepository: string;
|
|
34
|
+
/**
|
|
35
|
+
* If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
|
|
36
|
+
*/
|
|
10
37
|
headRef?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
40
|
+
*/
|
|
11
41
|
owner?: string;
|
|
42
|
+
/**
|
|
43
|
+
* If set, indicates what to sort results by. Can be either "created", "updated", "popularity" (comment count) or "long-running" (age, filtering by pulls updated in the last month). Default: "created".
|
|
44
|
+
*/
|
|
12
45
|
sortBy?: string;
|
|
46
|
+
/**
|
|
47
|
+
* If set, controls the direction of the sort. Can be either "asc" or "desc". Default: "asc".
|
|
48
|
+
*/
|
|
13
49
|
sortDirection?: string;
|
|
50
|
+
/**
|
|
51
|
+
* If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
|
|
52
|
+
*/
|
|
14
53
|
state?: string;
|
|
15
54
|
}
|
|
16
55
|
/**
|
|
17
56
|
* A collection of values returned by getRepositoryPullRequests.
|
|
18
57
|
*/
|
|
19
58
|
export interface GetRepositoryPullRequestsResult {
|
|
59
|
+
/**
|
|
60
|
+
* Name of the ref (branch) of the Pull Request base.
|
|
61
|
+
*/
|
|
20
62
|
readonly baseRef?: string;
|
|
21
63
|
readonly baseRepository: string;
|
|
64
|
+
/**
|
|
65
|
+
* Value of the Pull Request `HEAD` reference.
|
|
66
|
+
*/
|
|
22
67
|
readonly headRef?: string;
|
|
23
68
|
/**
|
|
24
69
|
* The provider-assigned unique ID for this managed resource.
|
|
25
70
|
*/
|
|
26
71
|
readonly id: string;
|
|
27
72
|
readonly owner?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Collection of Pull Requests matching the filters. Each of the results conforms to the following scheme:
|
|
75
|
+
*/
|
|
28
76
|
readonly results: outputs.GetRepositoryPullRequestsResult[];
|
|
29
77
|
readonly sortBy?: string;
|
|
30
78
|
readonly sortDirection?: string;
|
|
79
|
+
/**
|
|
80
|
+
* the current Pull Request state - can be "open", "closed" or "merged".
|
|
81
|
+
*/
|
|
31
82
|
readonly state?: string;
|
|
32
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Use this data source to retrieve information about multiple GitHub Pull Requests in a repository.
|
|
86
|
+
*
|
|
87
|
+
* ## Example Usage
|
|
88
|
+
*
|
|
89
|
+
* ```typescript
|
|
90
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
91
|
+
* import * as github from "@pulumi/github";
|
|
92
|
+
*
|
|
93
|
+
* const example = github.getRepositoryPullRequests({
|
|
94
|
+
* baseRef: "main",
|
|
95
|
+
* baseRepository: "example-repository",
|
|
96
|
+
* sortBy: "updated",
|
|
97
|
+
* sortDirection: "desc",
|
|
98
|
+
* state: "open",
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
33
102
|
export declare function getRepositoryPullRequestsOutput(args: GetRepositoryPullRequestsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRepositoryPullRequestsResult>;
|
|
34
103
|
/**
|
|
35
104
|
* A collection of arguments for invoking getRepositoryPullRequests.
|
|
36
105
|
*/
|
|
37
106
|
export interface GetRepositoryPullRequestsOutputArgs {
|
|
107
|
+
/**
|
|
108
|
+
* If set, filters Pull Requests by base branch name.
|
|
109
|
+
*/
|
|
38
110
|
baseRef?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Name of the base repository to retrieve the Pull Requests from.
|
|
113
|
+
*/
|
|
39
114
|
baseRepository: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
|
|
117
|
+
*/
|
|
40
118
|
headRef?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
121
|
+
*/
|
|
41
122
|
owner?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* If set, indicates what to sort results by. Can be either "created", "updated", "popularity" (comment count) or "long-running" (age, filtering by pulls updated in the last month). Default: "created".
|
|
125
|
+
*/
|
|
42
126
|
sortBy?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* If set, controls the direction of the sort. Can be either "asc" or "desc". Default: "asc".
|
|
129
|
+
*/
|
|
43
130
|
sortDirection?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
|
|
133
|
+
*/
|
|
44
134
|
state?: pulumi.Input<string>;
|
|
45
135
|
}
|