@pulumi/github 5.1.0 → 5.2.0-alpha.1673638210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/actionsEnvironmentSecret.d.ts +99 -0
  2. package/actionsEnvironmentSecret.js +64 -22
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsOrganizationPermissions.d.ts +72 -0
  5. package/actionsOrganizationPermissions.js +58 -22
  6. package/actionsOrganizationPermissions.js.map +1 -1
  7. package/actionsOrganizationSecret.d.ts +110 -0
  8. package/actionsOrganizationSecret.js +72 -22
  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 +44 -22
  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 +173 -3
  35. package/branchProtection.js +83 -22
  36. package/branchProtection.js.map +1 -1
  37. package/branchProtectionV3.d.ts +138 -0
  38. package/branchProtectionV3.js +88 -22
  39. package/branchProtectionV3.js.map +1 -1
  40. package/dependabotOrganizationSecret.js +22 -22
  41. package/dependabotOrganizationSecret.js.map +1 -1
  42. package/dependabotOrganizationSecretRepositories.js +22 -22
  43. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  44. package/dependabotSecret.js +22 -22
  45. package/dependabotSecret.js.map +1 -1
  46. package/emuGroupMapping.d.ts +42 -0
  47. package/emuGroupMapping.js +46 -22
  48. package/emuGroupMapping.js.map +1 -1
  49. package/getActionsOrganizationRegistrationToken.d.ts +31 -0
  50. package/getActionsOrganizationRegistrationToken.js +25 -0
  51. package/getActionsOrganizationRegistrationToken.js.map +1 -0
  52. package/getActionsOrganizationSecrets.d.ts +15 -0
  53. package/getActionsOrganizationSecrets.js +13 -4
  54. package/getActionsOrganizationSecrets.js.map +1 -1
  55. package/getActionsPublicKey.d.ts +42 -0
  56. package/getActionsPublicKey.js +32 -5
  57. package/getActionsPublicKey.js.map +1 -1
  58. package/getActionsRegistrationToken.d.ts +67 -0
  59. package/getActionsRegistrationToken.js +47 -0
  60. package/getActionsRegistrationToken.js.map +1 -0
  61. package/getActionsSecrets.d.ts +46 -0
  62. package/getActionsSecrets.js +30 -5
  63. package/getActionsSecrets.js.map +1 -1
  64. package/getBranch.d.ts +51 -0
  65. package/getBranch.js +32 -5
  66. package/getBranch.js.map +1 -1
  67. package/getCollaborators.d.ts +51 -0
  68. package/getCollaborators.js +32 -5
  69. package/getCollaborators.js.map +1 -1
  70. package/getDependabotOrganizationSecrets.d.ts +15 -0
  71. package/getDependabotOrganizationSecrets.js +13 -4
  72. package/getDependabotOrganizationSecrets.js.map +1 -1
  73. package/getDependabotPublicKey.js +2 -5
  74. package/getDependabotPublicKey.js.map +1 -1
  75. package/getDependabotSecrets.d.ts +46 -0
  76. package/getDependabotSecrets.js +30 -5
  77. package/getDependabotSecrets.js.map +1 -1
  78. package/getExternalGroups.d.ts +17 -0
  79. package/getExternalGroups.js +15 -4
  80. package/getExternalGroups.js.map +1 -1
  81. package/getGithubApp.d.ts +43 -0
  82. package/getGithubApp.js +30 -5
  83. package/getGithubApp.js.map +1 -1
  84. package/getIpRanges.d.ts +84 -0
  85. package/getIpRanges.js +13 -4
  86. package/getIpRanges.js.map +1 -1
  87. package/getMembership.d.ts +58 -0
  88. package/getMembership.js +36 -5
  89. package/getMembership.js.map +1 -1
  90. package/getOrganization.d.ts +58 -0
  91. package/getOrganization.js +30 -5
  92. package/getOrganization.js.map +1 -1
  93. package/getOrganizationIpAllowList.d.ts +18 -0
  94. package/getOrganizationIpAllowList.js +15 -4
  95. package/getOrganizationIpAllowList.js.map +1 -1
  96. package/getOrganizationTeamSyncGroups.d.ts +15 -0
  97. package/getOrganizationTeamSyncGroups.js +13 -4
  98. package/getOrganizationTeamSyncGroups.js.map +1 -1
  99. package/getOrganizationTeams.d.ts +80 -0
  100. package/getOrganizationTeams.js +52 -5
  101. package/getOrganizationTeams.js.map +1 -1
  102. package/getOrganizationWebhooks.d.ts +18 -0
  103. package/getOrganizationWebhooks.js +15 -4
  104. package/getOrganizationWebhooks.js.map +1 -1
  105. package/getRef.d.ts +48 -0
  106. package/getRef.js +32 -5
  107. package/getRef.js.map +1 -1
  108. package/getRelease.d.ts +90 -0
  109. package/getRelease.js +8 -5
  110. package/getRelease.js.map +1 -1
  111. package/getRepositories.d.ts +70 -0
  112. package/getRepositories.js +40 -5
  113. package/getRepositories.js.map +1 -1
  114. package/getRepository.d.ts +141 -0
  115. package/getRepository.js +30 -5
  116. package/getRepository.js.map +1 -1
  117. package/getRepositoryBranches.d.ts +49 -0
  118. package/getRepositoryBranches.js +30 -5
  119. package/getRepositoryBranches.js.map +1 -1
  120. package/getRepositoryDeployKeys.d.ts +37 -0
  121. package/getRepositoryDeployKeys.js +30 -5
  122. package/getRepositoryDeployKeys.js.map +1 -1
  123. package/getRepositoryFile.d.ts +72 -0
  124. package/getRepositoryFile.js +36 -5
  125. package/getRepositoryFile.js.map +1 -1
  126. package/getRepositoryMilestone.d.ts +62 -0
  127. package/getRepositoryMilestone.js +34 -5
  128. package/getRepositoryMilestone.js.map +1 -1
  129. package/getRepositoryPullRequest.d.ts +90 -0
  130. package/getRepositoryPullRequest.js +32 -5
  131. package/getRepositoryPullRequest.js.map +1 -1
  132. package/getRepositoryPullRequests.d.ts +90 -0
  133. package/getRepositoryPullRequests.js +38 -5
  134. package/getRepositoryPullRequests.js.map +1 -1
  135. package/getRepositoryTeams.d.ts +46 -0
  136. package/getRepositoryTeams.js +30 -5
  137. package/getRepositoryTeams.js.map +1 -1
  138. package/getRepositoryWebhooks.d.ts +36 -0
  139. package/getRepositoryWebhooks.js +34 -5
  140. package/getRepositoryWebhooks.js.map +1 -1
  141. package/getTeam.d.ts +79 -0
  142. package/getTeam.js +32 -5
  143. package/getTeam.js.map +1 -1
  144. package/getTree.d.ts +69 -0
  145. package/getTree.js +50 -5
  146. package/getTree.js.map +1 -1
  147. package/getUser.d.ts +102 -0
  148. package/getUser.js +38 -5
  149. package/getUser.js.map +1 -1
  150. package/getUsers.d.ts +55 -0
  151. package/getUsers.js +42 -5
  152. package/getUsers.js.map +1 -1
  153. package/index.d.ts +64 -44
  154. package/index.js +33 -3
  155. package/index.js.map +1 -1
  156. package/issue.d.ts +117 -6
  157. package/issue.js +85 -22
  158. package/issue.js.map +1 -1
  159. package/issueLabel.d.ts +64 -0
  160. package/issueLabel.js +44 -22
  161. package/issueLabel.js.map +1 -1
  162. package/membership.d.ts +49 -0
  163. package/membership.js +49 -21
  164. package/membership.js.map +1 -1
  165. package/organizationBlock.d.ts +21 -0
  166. package/organizationBlock.js +31 -19
  167. package/organizationBlock.js.map +1 -1
  168. package/organizationProject.d.ts +36 -0
  169. package/organizationProject.js +32 -20
  170. package/organizationProject.js.map +1 -1
  171. package/organizationSecurityManager.d.ts +67 -0
  172. package/organizationSecurityManager.js +71 -0
  173. package/organizationSecurityManager.js.map +1 -0
  174. package/organizationSettings.d.ts +274 -3
  175. package/organizationSettings.js +68 -22
  176. package/organizationSettings.js.map +1 -1
  177. package/organizationWebhook.d.ts +63 -0
  178. package/organizationWebhook.js +52 -22
  179. package/organizationWebhook.js.map +1 -1
  180. package/package.json +2 -2
  181. package/package.json.dev +2 -2
  182. package/projectCard.d.ts +87 -0
  183. package/projectCard.js +73 -22
  184. package/projectCard.js.map +1 -1
  185. package/projectColumn.d.ts +31 -0
  186. package/projectColumn.js +35 -22
  187. package/projectColumn.js.map +1 -1
  188. package/provider.js +10 -10
  189. package/provider.js.map +1 -1
  190. package/release.d.ts +194 -0
  191. package/release.js +121 -0
  192. package/release.js.map +1 -0
  193. package/repository.d.ts +391 -3
  194. package/repository.js +70 -22
  195. package/repository.js.map +1 -1
  196. package/repositoryAutolinkReference.d.ts +45 -12
  197. package/repositoryAutolinkReference.js +52 -22
  198. package/repositoryAutolinkReference.js.map +1 -1
  199. package/repositoryCollaborator.d.ts +90 -0
  200. package/repositoryCollaborator.js +64 -22
  201. package/repositoryCollaborator.js.map +1 -1
  202. package/repositoryDeployKey.d.ts +71 -0
  203. package/repositoryDeployKey.js +57 -22
  204. package/repositoryDeployKey.js.map +1 -1
  205. package/repositoryEnvironment.d.ts +61 -0
  206. package/repositoryEnvironment.js +56 -22
  207. package/repositoryEnvironment.js.map +1 -1
  208. package/repositoryFile.d.ts +68 -34
  209. package/repositoryFile.js +59 -22
  210. package/repositoryFile.js.map +1 -1
  211. package/repositoryMilestone.d.ts +81 -3
  212. package/repositoryMilestone.js +49 -22
  213. package/repositoryMilestone.js.map +1 -1
  214. package/repositoryProject.d.ts +52 -0
  215. package/repositoryProject.js +41 -22
  216. package/repositoryProject.js.map +1 -1
  217. package/repositoryPullRequest.d.ts +127 -4
  218. package/repositoryPullRequest.js +40 -22
  219. package/repositoryPullRequest.js.map +1 -1
  220. package/repositoryTagProtection.d.ts +41 -0
  221. package/repositoryTagProtection.js +45 -22
  222. package/repositoryTagProtection.js.map +1 -1
  223. package/repositoryWebhook.d.ts +79 -0
  224. package/repositoryWebhook.js +59 -22
  225. package/repositoryWebhook.js.map +1 -1
  226. package/team.d.ts +100 -0
  227. package/team.js +49 -22
  228. package/team.js.map +1 -1
  229. package/teamMembers.d.ts +58 -0
  230. package/teamMembers.js +62 -22
  231. package/teamMembers.js.map +1 -1
  232. package/teamMembership.d.ts +67 -0
  233. package/teamMembership.js +59 -22
  234. package/teamMembership.js.map +1 -1
  235. package/teamRepository.d.ts +59 -3
  236. package/teamRepository.js +57 -22
  237. package/teamRepository.js.map +1 -1
  238. package/teamSettings.d.ts +119 -0
  239. package/teamSettings.js +99 -0
  240. package/teamSettings.js.map +1 -0
  241. package/teamSyncGroupMapping.d.ts +36 -0
  242. package/teamSyncGroupMapping.js +36 -21
  243. package/teamSyncGroupMapping.js.map +1 -1
  244. package/types/input.d.ts +206 -0
  245. package/types/output.d.ts +498 -0
  246. package/userGpgKey.d.ts +39 -0
  247. package/userGpgKey.js +42 -21
  248. package/userGpgKey.js.map +1 -1
  249. package/userInvitationAccepter.d.ts +30 -0
  250. package/userInvitationAccepter.js +38 -17
  251. package/userInvitationAccepter.js.map +1 -1
  252. package/userSshKey.d.ts +50 -0
  253. package/userSshKey.js +48 -22
  254. package/userSshKey.js.map +1 -1
@@ -1,4 +1,31 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a GitHub repository milestone resource.
4
+ *
5
+ * This resource allows you to create and manage milestones for a GitHub Repository within an organization or user account.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as github from "@pulumi/github";
12
+ *
13
+ * // Create a milestone for a repository
14
+ * const example = new github.RepositoryMilestone("example", {
15
+ * owner: "example-owner",
16
+ * repository: "example-repository",
17
+ * title: "v1.1.0",
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * A GitHub Repository Milestone can be imported using an ID made up of `owner/repository/number`, e.g.
24
+ *
25
+ * ```sh
26
+ * $ pulumi import github:index/repositoryMilestone:RepositoryMilestone example example-owner/example-repository/1
27
+ * ```
28
+ */
2
29
  export declare class RepositoryMilestone extends pulumi.CustomResource {
3
30
  /**
4
31
  * Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
@@ -15,15 +42,33 @@ export declare class RepositoryMilestone extends pulumi.CustomResource {
15
42
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
43
  */
17
44
  static isInstance(obj: any): obj is RepositoryMilestone;
45
+ /**
46
+ * A description of the milestone.
47
+ */
18
48
  readonly description: pulumi.Output<string | undefined>;
19
49
  /**
20
- * in yyyy-mm-dd format
50
+ * The milestone due date. In `yyyy-mm-dd` format.
21
51
  */
22
52
  readonly dueDate: pulumi.Output<string | undefined>;
53
+ /**
54
+ * The number of the milestone.
55
+ */
23
56
  readonly number: pulumi.Output<number>;
57
+ /**
58
+ * The owner of the GitHub Repository.
59
+ */
24
60
  readonly owner: pulumi.Output<string>;
61
+ /**
62
+ * The name of the GitHub Repository.
63
+ */
25
64
  readonly repository: pulumi.Output<string>;
65
+ /**
66
+ * The state of the milestone. Either `open` or `closed`. Default: `open`
67
+ */
26
68
  readonly state: pulumi.Output<string | undefined>;
69
+ /**
70
+ * The title of the milestone.
71
+ */
27
72
  readonly title: pulumi.Output<string>;
28
73
  /**
29
74
  * Create a RepositoryMilestone resource with the given unique name, arguments, and options.
@@ -38,28 +83,61 @@ export declare class RepositoryMilestone extends pulumi.CustomResource {
38
83
  * Input properties used for looking up and filtering RepositoryMilestone resources.
39
84
  */
40
85
  export interface RepositoryMilestoneState {
86
+ /**
87
+ * A description of the milestone.
88
+ */
41
89
  description?: pulumi.Input<string>;
42
90
  /**
43
- * in yyyy-mm-dd format
91
+ * The milestone due date. In `yyyy-mm-dd` format.
44
92
  */
45
93
  dueDate?: pulumi.Input<string>;
94
+ /**
95
+ * The number of the milestone.
96
+ */
46
97
  number?: pulumi.Input<number>;
98
+ /**
99
+ * The owner of the GitHub Repository.
100
+ */
47
101
  owner?: pulumi.Input<string>;
102
+ /**
103
+ * The name of the GitHub Repository.
104
+ */
48
105
  repository?: pulumi.Input<string>;
106
+ /**
107
+ * The state of the milestone. Either `open` or `closed`. Default: `open`
108
+ */
49
109
  state?: pulumi.Input<string>;
110
+ /**
111
+ * The title of the milestone.
112
+ */
50
113
  title?: pulumi.Input<string>;
51
114
  }
52
115
  /**
53
116
  * The set of arguments for constructing a RepositoryMilestone resource.
54
117
  */
55
118
  export interface RepositoryMilestoneArgs {
119
+ /**
120
+ * A description of the milestone.
121
+ */
56
122
  description?: pulumi.Input<string>;
57
123
  /**
58
- * in yyyy-mm-dd format
124
+ * The milestone due date. In `yyyy-mm-dd` format.
59
125
  */
60
126
  dueDate?: pulumi.Input<string>;
127
+ /**
128
+ * The owner of the GitHub Repository.
129
+ */
61
130
  owner: pulumi.Input<string>;
131
+ /**
132
+ * The name of the GitHub Repository.
133
+ */
62
134
  repository: pulumi.Input<string>;
135
+ /**
136
+ * The state of the milestone. Either `open` or `closed`. Default: `open`
137
+ */
63
138
  state?: pulumi.Input<string>;
139
+ /**
140
+ * The title of the milestone.
141
+ */
64
142
  title: pulumi.Input<string>;
65
143
  }
@@ -5,7 +5,56 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryMilestone = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a GitHub repository milestone resource.
10
+ *
11
+ * This resource allows you to create and manage milestones for a GitHub Repository within an organization or user account.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as github from "@pulumi/github";
18
+ *
19
+ * // Create a milestone for a repository
20
+ * const example = new github.RepositoryMilestone("example", {
21
+ * owner: "example-owner",
22
+ * repository: "example-repository",
23
+ * title: "v1.1.0",
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * A GitHub Repository Milestone can be imported using an ID made up of `owner/repository/number`, e.g.
30
+ *
31
+ * ```sh
32
+ * $ pulumi import github:index/repositoryMilestone:RepositoryMilestone example example-owner/example-repository/1
33
+ * ```
34
+ */
8
35
  class RepositoryMilestone extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new RepositoryMilestone(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of RepositoryMilestone. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === RepositoryMilestone.__pulumiType;
57
+ }
9
58
  constructor(name, argsOrState, opts) {
10
59
  let resourceInputs = {};
11
60
  opts = opts || {};
@@ -41,28 +90,6 @@ class RepositoryMilestone extends pulumi.CustomResource {
41
90
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
42
91
  super(RepositoryMilestone.__pulumiType, name, resourceInputs, opts);
43
92
  }
44
- /**
45
- * Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
46
- * properties used to qualify the lookup.
47
- *
48
- * @param name The _unique_ name of the resulting resource.
49
- * @param id The _unique_ provider ID of the resource to lookup.
50
- * @param state Any extra arguments used during the lookup.
51
- * @param opts Optional settings to control the behavior of the CustomResource.
52
- */
53
- static get(name, id, state, opts) {
54
- return new RepositoryMilestone(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
- }
56
- /**
57
- * Returns true if the given object is an instance of RepositoryMilestone. This is designed to work even
58
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
- */
60
- static isInstance(obj) {
61
- if (obj === undefined || obj === null) {
62
- return false;
63
- }
64
- return obj['__pulumiType'] === RepositoryMilestone.__pulumiType;
65
- }
66
93
  }
67
94
  exports.RepositoryMilestone = RepositoryMilestone;
68
95
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryMilestone.js","sourceRoot":"","sources":["../repositoryMilestone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IA+C1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK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,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAlGL,kDAmGC;AArFG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
@@ -1,4 +1,23 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage projects for GitHub 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 = new github.Repository("example", {
12
+ * description: "My awesome codebase",
13
+ * hasProjects: true,
14
+ * });
15
+ * const project = new github.RepositoryProject("project", {
16
+ * body: "This is a repository project.",
17
+ * repository: example.name,
18
+ * });
19
+ * ```
20
+ */
2
21
  export declare class RepositoryProject extends pulumi.CustomResource {
3
22
  /**
4
23
  * Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
@@ -15,10 +34,22 @@ export declare class RepositoryProject extends pulumi.CustomResource {
15
34
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
35
  */
17
36
  static isInstance(obj: any): obj is RepositoryProject;
37
+ /**
38
+ * The body of the project.
39
+ */
18
40
  readonly body: pulumi.Output<string | undefined>;
19
41
  readonly etag: pulumi.Output<string>;
42
+ /**
43
+ * The name of the project.
44
+ */
20
45
  readonly name: pulumi.Output<string>;
46
+ /**
47
+ * The repository of the project.
48
+ */
21
49
  readonly repository: pulumi.Output<string>;
50
+ /**
51
+ * URL of the project
52
+ */
22
53
  readonly url: pulumi.Output<string>;
23
54
  /**
24
55
  * Create a RepositoryProject resource with the given unique name, arguments, and options.
@@ -33,17 +64,38 @@ export declare class RepositoryProject extends pulumi.CustomResource {
33
64
  * Input properties used for looking up and filtering RepositoryProject resources.
34
65
  */
35
66
  export interface RepositoryProjectState {
67
+ /**
68
+ * The body of the project.
69
+ */
36
70
  body?: pulumi.Input<string>;
37
71
  etag?: pulumi.Input<string>;
72
+ /**
73
+ * The name of the project.
74
+ */
38
75
  name?: pulumi.Input<string>;
76
+ /**
77
+ * The repository of the project.
78
+ */
39
79
  repository?: pulumi.Input<string>;
80
+ /**
81
+ * URL of the project
82
+ */
40
83
  url?: pulumi.Input<string>;
41
84
  }
42
85
  /**
43
86
  * The set of arguments for constructing a RepositoryProject resource.
44
87
  */
45
88
  export interface RepositoryProjectArgs {
89
+ /**
90
+ * The body of the project.
91
+ */
46
92
  body?: pulumi.Input<string>;
93
+ /**
94
+ * The name of the project.
95
+ */
47
96
  name?: pulumi.Input<string>;
97
+ /**
98
+ * The repository of the project.
99
+ */
48
100
  repository: pulumi.Input<string>;
49
101
  }
@@ -5,7 +5,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryProject = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to create and manage projects for 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 = new github.Repository("example", {
18
+ * description: "My awesome codebase",
19
+ * hasProjects: true,
20
+ * });
21
+ * const project = new github.RepositoryProject("project", {
22
+ * body: "This is a repository project.",
23
+ * repository: example.name,
24
+ * });
25
+ * ```
26
+ */
8
27
  class RepositoryProject extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name, id, state, opts) {
38
+ return new RepositoryProject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
39
+ }
40
+ /**
41
+ * Returns true if the given object is an instance of RepositoryProject. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj) {
45
+ if (obj === undefined || obj === null) {
46
+ return false;
47
+ }
48
+ return obj['__pulumiType'] === RepositoryProject.__pulumiType;
49
+ }
9
50
  constructor(name, argsOrState, opts) {
10
51
  let resourceInputs = {};
11
52
  opts = opts || {};
@@ -31,28 +72,6 @@ class RepositoryProject extends pulumi.CustomResource {
31
72
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
32
73
  super(RepositoryProject.__pulumiType, name, resourceInputs, opts);
33
74
  }
34
- /**
35
- * Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
36
- * properties used to qualify the lookup.
37
- *
38
- * @param name The _unique_ name of the resulting resource.
39
- * @param id The _unique_ provider ID of the resource to lookup.
40
- * @param state Any extra arguments used during the lookup.
41
- * @param opts Optional settings to control the behavior of the CustomResource.
42
- */
43
- static get(name, id, state, opts) {
44
- return new RepositoryProject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
45
- }
46
- /**
47
- * Returns true if the given object is an instance of RepositoryProject. This is designed to work even
48
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
- */
50
- static isInstance(obj) {
51
- if (obj === undefined || obj === null) {
52
- return false;
53
- }
54
- return obj['__pulumiType'] === RepositoryProject.__pulumiType;
55
- }
56
75
  }
57
76
  exports.RepositoryProject = RepositoryProject;
58
77
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryProject.js","sourceRoot":"","sources":["../repositoryProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA0CxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;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CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA7EL,8CA8EC;AAhEG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
@@ -1,4 +1,22 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.
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 = new github.RepositoryPullRequest("example", {
12
+ * baseRef: "main",
13
+ * baseRepository: "example-repository",
14
+ * body: "This will change everything",
15
+ * headRef: "feature-branch",
16
+ * title: "My newest feature",
17
+ * });
18
+ * ```
19
+ */
2
20
  export declare class RepositoryPullRequest extends pulumi.CustomResource {
3
21
  /**
4
22
  * Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
@@ -15,27 +33,69 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
15
33
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
34
  */
17
35
  static isInstance(obj: any): obj is RepositoryPullRequest;
36
+ /**
37
+ * Name of the branch serving as the base of the Pull Request.
38
+ */
18
39
  readonly baseRef: pulumi.Output<string>;
40
+ /**
41
+ * Name of the base repository to retrieve the Pull Requests from.
42
+ */
19
43
  readonly baseRepository: pulumi.Output<string>;
44
+ /**
45
+ * Head commit SHA of the Pull Request base.
46
+ */
20
47
  readonly baseSha: pulumi.Output<string>;
48
+ /**
49
+ * Body of the Pull Request.
50
+ */
21
51
  readonly body: pulumi.Output<string | undefined>;
52
+ /**
53
+ * Indicates Whether this Pull Request is a draft.
54
+ */
22
55
  readonly draft: pulumi.Output<boolean>;
56
+ /**
57
+ * Name of the branch serving as the head of the Pull Request.
58
+ */
23
59
  readonly headRef: pulumi.Output<string>;
60
+ /**
61
+ * Head commit SHA of the Pull Request head.
62
+ */
24
63
  readonly headSha: pulumi.Output<string>;
25
64
  /**
26
- * List of names of labels on the PR
65
+ * List of label names set on the Pull Request.
27
66
  */
28
67
  readonly labels: pulumi.Output<string[]>;
68
+ /**
69
+ * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
70
+ */
29
71
  readonly maintainerCanModify: pulumi.Output<boolean | undefined>;
72
+ /**
73
+ * The number of the Pull Request within the repository.
74
+ */
30
75
  readonly number: pulumi.Output<number>;
76
+ /**
77
+ * Unix timestamp indicating the Pull Request creation time.
78
+ */
31
79
  readonly openedAt: pulumi.Output<number>;
32
80
  /**
33
- * Username of the PR creator
81
+ * GitHub login of the user who opened the Pull Request.
34
82
  */
35
83
  readonly openedBy: pulumi.Output<string>;
84
+ /**
85
+ * Owner of the repository. If not provided, the provider's default owner is used.
86
+ */
36
87
  readonly owner: pulumi.Output<string | undefined>;
88
+ /**
89
+ * the current Pull Request state - can be "open", "closed" or "merged".
90
+ */
37
91
  readonly state: pulumi.Output<string>;
92
+ /**
93
+ * The title of the Pull Request.
94
+ */
38
95
  readonly title: pulumi.Output<string>;
96
+ /**
97
+ * The timestamp of the last Pull Request update.
98
+ */
39
99
  readonly updatedAt: pulumi.Output<number>;
40
100
  /**
41
101
  * Create a RepositoryPullRequest resource with the given unique name, arguments, and options.
@@ -50,38 +110,101 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
50
110
  * Input properties used for looking up and filtering RepositoryPullRequest resources.
51
111
  */
52
112
  export interface RepositoryPullRequestState {
113
+ /**
114
+ * Name of the branch serving as the base of the Pull Request.
115
+ */
53
116
  baseRef?: pulumi.Input<string>;
117
+ /**
118
+ * Name of the base repository to retrieve the Pull Requests from.
119
+ */
54
120
  baseRepository?: pulumi.Input<string>;
121
+ /**
122
+ * Head commit SHA of the Pull Request base.
123
+ */
55
124
  baseSha?: pulumi.Input<string>;
125
+ /**
126
+ * Body of the Pull Request.
127
+ */
56
128
  body?: pulumi.Input<string>;
129
+ /**
130
+ * Indicates Whether this Pull Request is a draft.
131
+ */
57
132
  draft?: pulumi.Input<boolean>;
133
+ /**
134
+ * Name of the branch serving as the head of the Pull Request.
135
+ */
58
136
  headRef?: pulumi.Input<string>;
137
+ /**
138
+ * Head commit SHA of the Pull Request head.
139
+ */
59
140
  headSha?: pulumi.Input<string>;
60
141
  /**
61
- * List of names of labels on the PR
142
+ * List of label names set on the Pull Request.
62
143
  */
63
144
  labels?: pulumi.Input<pulumi.Input<string>[]>;
145
+ /**
146
+ * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
147
+ */
64
148
  maintainerCanModify?: pulumi.Input<boolean>;
149
+ /**
150
+ * The number of the Pull Request within the repository.
151
+ */
65
152
  number?: pulumi.Input<number>;
153
+ /**
154
+ * Unix timestamp indicating the Pull Request creation time.
155
+ */
66
156
  openedAt?: pulumi.Input<number>;
67
157
  /**
68
- * Username of the PR creator
158
+ * GitHub login of the user who opened the Pull Request.
69
159
  */
70
160
  openedBy?: pulumi.Input<string>;
161
+ /**
162
+ * Owner of the repository. If not provided, the provider's default owner is used.
163
+ */
71
164
  owner?: pulumi.Input<string>;
165
+ /**
166
+ * the current Pull Request state - can be "open", "closed" or "merged".
167
+ */
72
168
  state?: pulumi.Input<string>;
169
+ /**
170
+ * The title of the Pull Request.
171
+ */
73
172
  title?: pulumi.Input<string>;
173
+ /**
174
+ * The timestamp of the last Pull Request update.
175
+ */
74
176
  updatedAt?: pulumi.Input<number>;
75
177
  }
76
178
  /**
77
179
  * The set of arguments for constructing a RepositoryPullRequest resource.
78
180
  */
79
181
  export interface RepositoryPullRequestArgs {
182
+ /**
183
+ * Name of the branch serving as the base of the Pull Request.
184
+ */
80
185
  baseRef: pulumi.Input<string>;
186
+ /**
187
+ * Name of the base repository to retrieve the Pull Requests from.
188
+ */
81
189
  baseRepository: pulumi.Input<string>;
190
+ /**
191
+ * Body of the Pull Request.
192
+ */
82
193
  body?: pulumi.Input<string>;
194
+ /**
195
+ * Name of the branch serving as the head of the Pull Request.
196
+ */
83
197
  headRef: pulumi.Input<string>;
198
+ /**
199
+ * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
200
+ */
84
201
  maintainerCanModify?: pulumi.Input<boolean>;
202
+ /**
203
+ * Owner of the repository. If not provided, the provider's default owner is used.
204
+ */
85
205
  owner?: pulumi.Input<string>;
206
+ /**
207
+ * The title of the Pull Request.
208
+ */
86
209
  title: pulumi.Input<string>;
87
210
  }
@@ -5,7 +5,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryPullRequest = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.
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 = new github.RepositoryPullRequest("example", {
18
+ * baseRef: "main",
19
+ * baseRepository: "example-repository",
20
+ * body: "This will change everything",
21
+ * headRef: "feature-branch",
22
+ * title: "My newest feature",
23
+ * });
24
+ * ```
25
+ */
8
26
  class RepositoryPullRequest extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new RepositoryPullRequest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of RepositoryPullRequest. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === RepositoryPullRequest.__pulumiType;
48
+ }
9
49
  constructor(name, argsOrState, opts) {
10
50
  let resourceInputs = {};
11
51
  opts = opts || {};
@@ -62,28 +102,6 @@ class RepositoryPullRequest extends pulumi.CustomResource {
62
102
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
103
  super(RepositoryPullRequest.__pulumiType, name, resourceInputs, opts);
64
104
  }
65
- /**
66
- * Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
67
- * properties used to qualify the lookup.
68
- *
69
- * @param name The _unique_ name of the resulting resource.
70
- * @param id The _unique_ provider ID of the resource to lookup.
71
- * @param state Any extra arguments used during the lookup.
72
- * @param opts Optional settings to control the behavior of the CustomResource.
73
- */
74
- static get(name, id, state, opts) {
75
- return new RepositoryPullRequest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
76
- }
77
- /**
78
- * Returns true if the given object is an instance of RepositoryPullRequest. This is designed to work even
79
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
80
- */
81
- static isInstance(obj) {
82
- if (obj === undefined || obj === null) {
83
- return false;
84
- }
85
- return obj['__pulumiType'] === RepositoryPullRequest.__pulumiType;
86
- }
87
105
  }
88
106
  exports.RepositoryPullRequest = RepositoryPullRequest;
89
107
  /** @internal */