@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.
Files changed (260) hide show
  1. package/actionsEnvironmentSecret.d.ts +99 -0
  2. package/actionsEnvironmentSecret.js +68 -24
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsOrganizationPermissions.d.ts +74 -1
  5. package/actionsOrganizationPermissions.js +58 -22
  6. package/actionsOrganizationPermissions.js.map +1 -1
  7. package/actionsOrganizationSecret.d.ts +110 -0
  8. package/actionsOrganizationSecret.js +76 -24
  9. package/actionsOrganizationSecret.js.map +1 -1
  10. package/actionsOrganizationSecretRepositories.d.ts +47 -0
  11. package/actionsOrganizationSecretRepositories.js +51 -22
  12. package/actionsOrganizationSecretRepositories.js.map +1 -1
  13. package/actionsRepositoryPermissions.d.ts +119 -0
  14. package/actionsRepositoryPermissions.js +91 -0
  15. package/actionsRepositoryPermissions.js.map +1 -0
  16. package/actionsRunnerGroup.d.ts +88 -0
  17. package/actionsRunnerGroup.js +47 -22
  18. package/actionsRunnerGroup.js.map +1 -1
  19. package/actionsSecret.d.ts +70 -0
  20. package/actionsSecret.js +48 -24
  21. package/actionsSecret.js.map +1 -1
  22. package/appInstallationRepositories.d.ts +81 -0
  23. package/appInstallationRepositories.js +78 -0
  24. package/appInstallationRepositories.js.map +1 -0
  25. package/appInstallationRepository.d.ts +53 -0
  26. package/appInstallationRepository.js +57 -22
  27. package/appInstallationRepository.js.map +1 -1
  28. package/branch.d.ts +92 -0
  29. package/branch.js +60 -22
  30. package/branch.js.map +1 -1
  31. package/branchDefault.d.ts +53 -0
  32. package/branchDefault.js +57 -22
  33. package/branchDefault.js.map +1 -1
  34. package/branchProtection.d.ts +175 -4
  35. package/branchProtection.js +83 -22
  36. package/branchProtection.js.map +1 -1
  37. package/branchProtectionV3.d.ts +140 -1
  38. package/branchProtectionV3.js +88 -22
  39. package/branchProtectionV3.js.map +1 -1
  40. package/config/vars.d.ts +1 -1
  41. package/config/vars.js.map +1 -1
  42. package/dependabotOrganizationSecret.js +26 -24
  43. package/dependabotOrganizationSecret.js.map +1 -1
  44. package/dependabotOrganizationSecretRepositories.js +22 -22
  45. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  46. package/dependabotSecret.js +26 -24
  47. package/dependabotSecret.js.map +1 -1
  48. package/emuGroupMapping.d.ts +42 -0
  49. package/emuGroupMapping.js +46 -22
  50. package/emuGroupMapping.js.map +1 -1
  51. package/getActionsOrganizationRegistrationToken.d.ts +31 -0
  52. package/getActionsOrganizationRegistrationToken.js +25 -0
  53. package/getActionsOrganizationRegistrationToken.js.map +1 -0
  54. package/getActionsOrganizationSecrets.d.ts +16 -1
  55. package/getActionsOrganizationSecrets.js +13 -4
  56. package/getActionsOrganizationSecrets.js.map +1 -1
  57. package/getActionsPublicKey.d.ts +42 -0
  58. package/getActionsPublicKey.js +32 -5
  59. package/getActionsPublicKey.js.map +1 -1
  60. package/getActionsRegistrationToken.d.ts +67 -0
  61. package/getActionsRegistrationToken.js +47 -0
  62. package/getActionsRegistrationToken.js.map +1 -0
  63. package/getActionsSecrets.d.ts +47 -1
  64. package/getActionsSecrets.js +30 -5
  65. package/getActionsSecrets.js.map +1 -1
  66. package/getBranch.d.ts +51 -0
  67. package/getBranch.js +32 -5
  68. package/getBranch.js.map +1 -1
  69. package/getCollaborators.d.ts +52 -1
  70. package/getCollaborators.js +32 -5
  71. package/getCollaborators.js.map +1 -1
  72. package/getDependabotOrganizationSecrets.d.ts +28 -0
  73. package/getDependabotOrganizationSecrets.js +25 -0
  74. package/getDependabotOrganizationSecrets.js.map +1 -0
  75. package/getDependabotPublicKey.js +2 -5
  76. package/getDependabotPublicKey.js.map +1 -1
  77. package/getDependabotSecrets.d.ts +76 -0
  78. package/getDependabotSecrets.js +49 -0
  79. package/getDependabotSecrets.js.map +1 -0
  80. package/getExternalGroups.d.ts +18 -1
  81. package/getExternalGroups.js +15 -4
  82. package/getExternalGroups.js.map +1 -1
  83. package/getGithubApp.d.ts +71 -0
  84. package/getGithubApp.js +47 -0
  85. package/getGithubApp.js.map +1 -0
  86. package/getIpRanges.d.ts +84 -0
  87. package/getIpRanges.js +13 -4
  88. package/getIpRanges.js.map +1 -1
  89. package/getMembership.d.ts +59 -0
  90. package/getMembership.js +36 -5
  91. package/getMembership.js.map +1 -1
  92. package/getOrganization.d.ts +58 -0
  93. package/getOrganization.js +30 -5
  94. package/getOrganization.js.map +1 -1
  95. package/getOrganizationIpAllowList.d.ts +31 -0
  96. package/getOrganizationIpAllowList.js +27 -0
  97. package/getOrganizationIpAllowList.js.map +1 -0
  98. package/getOrganizationTeamSyncGroups.d.ts +16 -1
  99. package/getOrganizationTeamSyncGroups.js +13 -4
  100. package/getOrganizationTeamSyncGroups.js.map +1 -1
  101. package/getOrganizationTeams.d.ts +87 -1
  102. package/getOrganizationTeams.js +54 -5
  103. package/getOrganizationTeams.js.map +1 -1
  104. package/getOrganizationWebhooks.d.ts +31 -0
  105. package/getOrganizationWebhooks.js +27 -0
  106. package/getOrganizationWebhooks.js.map +1 -0
  107. package/getRef.d.ts +48 -0
  108. package/getRef.js +32 -5
  109. package/getRef.js.map +1 -1
  110. package/getRelease.d.ts +92 -0
  111. package/getRelease.js +8 -5
  112. package/getRelease.js.map +1 -1
  113. package/getRepositories.d.ts +70 -0
  114. package/getRepositories.js +40 -5
  115. package/getRepositories.js.map +1 -1
  116. package/getRepository.d.ts +142 -4
  117. package/getRepository.js +30 -6
  118. package/getRepository.js.map +1 -1
  119. package/getRepositoryBranches.d.ts +82 -0
  120. package/getRepositoryBranches.js +49 -0
  121. package/getRepositoryBranches.js.map +1 -0
  122. package/getRepositoryDeployKeys.d.ts +64 -0
  123. package/getRepositoryDeployKeys.js +47 -0
  124. package/getRepositoryDeployKeys.js.map +1 -0
  125. package/getRepositoryFile.d.ts +72 -0
  126. package/getRepositoryFile.js +36 -5
  127. package/getRepositoryFile.js.map +1 -1
  128. package/getRepositoryMilestone.d.ts +62 -0
  129. package/getRepositoryMilestone.js +34 -5
  130. package/getRepositoryMilestone.js.map +1 -1
  131. package/getRepositoryPullRequest.d.ts +90 -0
  132. package/getRepositoryPullRequest.js +32 -5
  133. package/getRepositoryPullRequest.js.map +1 -1
  134. package/getRepositoryPullRequests.d.ts +91 -1
  135. package/getRepositoryPullRequests.js +38 -5
  136. package/getRepositoryPullRequests.js.map +1 -1
  137. package/getRepositoryTeams.d.ts +47 -1
  138. package/getRepositoryTeams.js +30 -5
  139. package/getRepositoryTeams.js.map +1 -1
  140. package/getRepositoryWebhooks.d.ts +63 -0
  141. package/getRepositoryWebhooks.js +51 -0
  142. package/getRepositoryWebhooks.js.map +1 -0
  143. package/getTeam.d.ts +79 -0
  144. package/getTeam.js +32 -5
  145. package/getTeam.js.map +1 -1
  146. package/getTree.d.ts +70 -1
  147. package/getTree.js +50 -5
  148. package/getTree.js.map +1 -1
  149. package/getUser.d.ts +102 -0
  150. package/getUser.js +38 -5
  151. package/getUser.js.map +1 -1
  152. package/getUsers.d.ts +55 -0
  153. package/getUsers.js +42 -5
  154. package/getUsers.js.map +1 -1
  155. package/index.d.ts +244 -68
  156. package/index.js +259 -171
  157. package/index.js.map +1 -1
  158. package/issue.d.ts +117 -6
  159. package/issue.js +85 -22
  160. package/issue.js.map +1 -1
  161. package/issueLabel.d.ts +64 -0
  162. package/issueLabel.js +44 -22
  163. package/issueLabel.js.map +1 -1
  164. package/membership.d.ts +49 -0
  165. package/membership.js +49 -21
  166. package/membership.js.map +1 -1
  167. package/organizationBlock.d.ts +21 -0
  168. package/organizationBlock.js +31 -19
  169. package/organizationBlock.js.map +1 -1
  170. package/organizationProject.d.ts +36 -0
  171. package/organizationProject.js +32 -20
  172. package/organizationProject.js.map +1 -1
  173. package/organizationSecurityManager.d.ts +67 -0
  174. package/organizationSecurityManager.js +71 -0
  175. package/organizationSecurityManager.js.map +1 -0
  176. package/organizationSettings.d.ts +394 -0
  177. package/organizationSettings.js +148 -0
  178. package/organizationSettings.js.map +1 -0
  179. package/organizationWebhook.d.ts +65 -1
  180. package/organizationWebhook.js +52 -22
  181. package/organizationWebhook.js.map +1 -1
  182. package/package.json +2 -2
  183. package/package.json.dev +2 -2
  184. package/projectCard.d.ts +87 -0
  185. package/projectCard.js +73 -22
  186. package/projectCard.js.map +1 -1
  187. package/projectColumn.d.ts +31 -0
  188. package/projectColumn.js +35 -22
  189. package/projectColumn.js.map +1 -1
  190. package/provider.d.ts +1 -1
  191. package/provider.js +10 -10
  192. package/provider.js.map +1 -1
  193. package/release.d.ts +194 -0
  194. package/release.js +121 -0
  195. package/release.js.map +1 -0
  196. package/repository.d.ts +396 -4
  197. package/repository.js +72 -22
  198. package/repository.js.map +1 -1
  199. package/repositoryAutolinkReference.d.ts +54 -6
  200. package/repositoryAutolinkReference.js +54 -22
  201. package/repositoryAutolinkReference.js.map +1 -1
  202. package/repositoryCollaborator.d.ts +90 -0
  203. package/repositoryCollaborator.js +64 -22
  204. package/repositoryCollaborator.js.map +1 -1
  205. package/repositoryDeployKey.d.ts +71 -0
  206. package/repositoryDeployKey.js +57 -22
  207. package/repositoryDeployKey.js.map +1 -1
  208. package/repositoryEnvironment.d.ts +63 -1
  209. package/repositoryEnvironment.js +56 -22
  210. package/repositoryEnvironment.js.map +1 -1
  211. package/repositoryFile.d.ts +70 -30
  212. package/repositoryFile.js +59 -22
  213. package/repositoryFile.js.map +1 -1
  214. package/repositoryMilestone.d.ts +81 -3
  215. package/repositoryMilestone.js +49 -22
  216. package/repositoryMilestone.js.map +1 -1
  217. package/repositoryProject.d.ts +52 -0
  218. package/repositoryProject.js +41 -22
  219. package/repositoryProject.js.map +1 -1
  220. package/repositoryPullRequest.d.ts +127 -4
  221. package/repositoryPullRequest.js +40 -22
  222. package/repositoryPullRequest.js.map +1 -1
  223. package/repositoryTagProtection.d.ts +41 -0
  224. package/repositoryTagProtection.js +45 -22
  225. package/repositoryTagProtection.js.map +1 -1
  226. package/repositoryWebhook.d.ts +81 -1
  227. package/repositoryWebhook.js +59 -22
  228. package/repositoryWebhook.js.map +1 -1
  229. package/team.d.ts +100 -0
  230. package/team.js +49 -22
  231. package/team.js.map +1 -1
  232. package/teamMembers.d.ts +60 -1
  233. package/teamMembers.js +62 -22
  234. package/teamMembers.js.map +1 -1
  235. package/teamMembership.d.ts +67 -0
  236. package/teamMembership.js +59 -22
  237. package/teamMembership.js.map +1 -1
  238. package/teamRepository.d.ts +59 -3
  239. package/teamRepository.js +57 -22
  240. package/teamRepository.js.map +1 -1
  241. package/teamSettings.d.ts +119 -0
  242. package/teamSettings.js +99 -0
  243. package/teamSettings.js.map +1 -0
  244. package/teamSyncGroupMapping.d.ts +38 -1
  245. package/teamSyncGroupMapping.js +36 -21
  246. package/teamSyncGroupMapping.js.map +1 -1
  247. package/types/index.js.map +1 -1
  248. package/types/input.d.ts +208 -1
  249. package/types/output.d.ts +555 -1
  250. package/userGpgKey.d.ts +39 -0
  251. package/userGpgKey.js +42 -21
  252. package/userGpgKey.js.map +1 -1
  253. package/userInvitationAccepter.d.ts +30 -0
  254. package/userInvitationAccepter.js +38 -17
  255. package/userInvitationAccepter.js.map +1 -1
  256. package/userSshKey.d.ts +50 -0
  257. package/userSshKey.js +48 -22
  258. package/userSshKey.js.map +1 -1
  259. package/utilities.js +13 -1
  260. package/utilities.js.map +1 -1
@@ -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
  }
@@ -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
- if (!opts) {
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
@@ -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;IACtF,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,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;AAXD,8CAWC;AA8BD,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,0DAEC"}
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
- if (!opts) {
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;IAChG,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,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;AAXD,wDAWC;AA4BD,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAA2B;IAC5G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,oEAEC"}
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
- if (!opts) {
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;IACpG,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,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;AAXD,4DAWC;AAuCD,SAAgB,8BAA8B,CAAC,IAAwC,EAAE,IAA2B;IAChH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,wEAEC"}
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 { output as outputs } from "./types";
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
  }