@pulumi/github 6.15.0-alpha.1786702465 → 6.15.0

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 (372) hide show
  1. package/actionsEnvironmentSecret.d.ts +49 -11
  2. package/actionsEnvironmentSecret.d.ts.map +1 -1
  3. package/actionsEnvironmentSecret.js +49 -11
  4. package/actionsEnvironmentSecret.js.map +1 -1
  5. package/actionsEnvironmentVariable.d.ts +5 -2
  6. package/actionsEnvironmentVariable.d.ts.map +1 -1
  7. package/actionsEnvironmentVariable.js +5 -2
  8. package/actionsEnvironmentVariable.js.map +1 -1
  9. package/actionsHostedRunner.d.ts +8 -9
  10. package/actionsHostedRunner.d.ts.map +1 -1
  11. package/actionsHostedRunner.js +8 -9
  12. package/actionsHostedRunner.js.map +1 -1
  13. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -4
  14. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
  15. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +2 -4
  16. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
  17. package/actionsOrganizationPermissions.d.ts +1 -2
  18. package/actionsOrganizationPermissions.d.ts.map +1 -1
  19. package/actionsOrganizationPermissions.js +1 -2
  20. package/actionsOrganizationPermissions.js.map +1 -1
  21. package/actionsOrganizationSecret.d.ts +12 -14
  22. package/actionsOrganizationSecret.d.ts.map +1 -1
  23. package/actionsOrganizationSecret.js +12 -14
  24. package/actionsOrganizationSecret.js.map +1 -1
  25. package/actionsOrganizationSecretRepositories.d.ts +6 -3
  26. package/actionsOrganizationSecretRepositories.d.ts.map +1 -1
  27. package/actionsOrganizationSecretRepositories.js +6 -3
  28. package/actionsOrganizationSecretRepositories.js.map +1 -1
  29. package/actionsOrganizationSecretRepository.d.ts +6 -3
  30. package/actionsOrganizationSecretRepository.d.ts.map +1 -1
  31. package/actionsOrganizationSecretRepository.js +6 -3
  32. package/actionsOrganizationSecretRepository.js.map +1 -1
  33. package/actionsOrganizationVariable.d.ts +5 -2
  34. package/actionsOrganizationVariable.d.ts.map +1 -1
  35. package/actionsOrganizationVariable.js +5 -2
  36. package/actionsOrganizationVariable.js.map +1 -1
  37. package/actionsOrganizationVariableRepositories.d.ts +6 -3
  38. package/actionsOrganizationVariableRepositories.d.ts.map +1 -1
  39. package/actionsOrganizationVariableRepositories.js +6 -3
  40. package/actionsOrganizationVariableRepositories.js.map +1 -1
  41. package/actionsOrganizationVariableRepository.d.ts +6 -3
  42. package/actionsOrganizationVariableRepository.d.ts.map +1 -1
  43. package/actionsOrganizationVariableRepository.js +6 -3
  44. package/actionsOrganizationVariableRepository.js.map +1 -1
  45. package/actionsOrganizationWorkflowPermissions.d.ts +2 -2
  46. package/actionsOrganizationWorkflowPermissions.js +2 -2
  47. package/actionsRepositoryAccessLevel.d.ts +1 -2
  48. package/actionsRepositoryAccessLevel.d.ts.map +1 -1
  49. package/actionsRepositoryAccessLevel.js +1 -2
  50. package/actionsRepositoryAccessLevel.js.map +1 -1
  51. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +5 -10
  52. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
  53. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +2 -4
  54. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
  55. package/actionsRepositoryPermissions.d.ts +1 -2
  56. package/actionsRepositoryPermissions.d.ts.map +1 -1
  57. package/actionsRepositoryPermissions.js +1 -2
  58. package/actionsRepositoryPermissions.js.map +1 -1
  59. package/actionsRunnerGroup.d.ts +1 -2
  60. package/actionsRunnerGroup.d.ts.map +1 -1
  61. package/actionsRunnerGroup.js +1 -2
  62. package/actionsRunnerGroup.js.map +1 -1
  63. package/actionsSecret.d.ts +10 -12
  64. package/actionsSecret.d.ts.map +1 -1
  65. package/actionsSecret.js +10 -12
  66. package/actionsSecret.js.map +1 -1
  67. package/actionsVariable.d.ts +5 -2
  68. package/actionsVariable.d.ts.map +1 -1
  69. package/actionsVariable.js +5 -2
  70. package/actionsVariable.js.map +1 -1
  71. package/appInstallationRepositories.d.ts +21 -8
  72. package/appInstallationRepositories.d.ts.map +1 -1
  73. package/appInstallationRepositories.js +21 -8
  74. package/appInstallationRepositories.js.map +1 -1
  75. package/appInstallationRepository.d.ts +3 -8
  76. package/appInstallationRepository.d.ts.map +1 -1
  77. package/appInstallationRepository.js +3 -8
  78. package/appInstallationRepository.js.map +1 -1
  79. package/branch.d.ts +2 -4
  80. package/branch.d.ts.map +1 -1
  81. package/branch.js +2 -4
  82. package/branch.js.map +1 -1
  83. package/branchDefault.d.ts +43 -18
  84. package/branchDefault.d.ts.map +1 -1
  85. package/branchDefault.js +9 -9
  86. package/branchDefault.js.map +1 -1
  87. package/codespacesOrganizationSecret.d.ts +6 -26
  88. package/codespacesOrganizationSecret.d.ts.map +1 -1
  89. package/codespacesOrganizationSecret.js +3 -20
  90. package/codespacesOrganizationSecret.js.map +1 -1
  91. package/codespacesSecret.d.ts +4 -11
  92. package/codespacesSecret.d.ts.map +1 -1
  93. package/codespacesSecret.js +4 -11
  94. package/codespacesSecret.js.map +1 -1
  95. package/codespacesUserSecret.d.ts +3 -20
  96. package/codespacesUserSecret.d.ts.map +1 -1
  97. package/codespacesUserSecret.js +3 -20
  98. package/codespacesUserSecret.js.map +1 -1
  99. package/config/vars.d.ts +21 -13
  100. package/config/vars.d.ts.map +1 -1
  101. package/config/vars.js +12 -0
  102. package/config/vars.js.map +1 -1
  103. package/dependabotOrganizationSecret.d.ts +32 -13
  104. package/dependabotOrganizationSecret.d.ts.map +1 -1
  105. package/dependabotOrganizationSecret.js +32 -13
  106. package/dependabotOrganizationSecret.js.map +1 -1
  107. package/dependabotOrganizationSecretRepositories.d.ts +6 -3
  108. package/dependabotOrganizationSecretRepositories.d.ts.map +1 -1
  109. package/dependabotOrganizationSecretRepositories.js +6 -3
  110. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  111. package/dependabotOrganizationSecretRepository.d.ts +6 -3
  112. package/dependabotOrganizationSecretRepository.d.ts.map +1 -1
  113. package/dependabotOrganizationSecretRepository.js +6 -3
  114. package/dependabotOrganizationSecretRepository.js.map +1 -1
  115. package/dependabotSecret.d.ts +10 -12
  116. package/dependabotSecret.d.ts.map +1 -1
  117. package/dependabotSecret.js +10 -12
  118. package/dependabotSecret.js.map +1 -1
  119. package/enterpriseActionsPermissions.d.ts +1 -2
  120. package/enterpriseActionsPermissions.d.ts.map +1 -1
  121. package/enterpriseActionsPermissions.js +1 -2
  122. package/enterpriseActionsPermissions.js.map +1 -1
  123. package/enterpriseActionsRunnerGroup.d.ts +1 -2
  124. package/enterpriseActionsRunnerGroup.d.ts.map +1 -1
  125. package/enterpriseActionsRunnerGroup.js +1 -2
  126. package/enterpriseActionsRunnerGroup.js.map +1 -1
  127. package/enterpriseActionsWorkflowPermissions.d.ts +1 -8
  128. package/enterpriseActionsWorkflowPermissions.d.ts.map +1 -1
  129. package/enterpriseActionsWorkflowPermissions.js +1 -8
  130. package/enterpriseActionsWorkflowPermissions.js.map +1 -1
  131. package/enterpriseSecurityAnalysisSettings.d.ts +0 -8
  132. package/enterpriseSecurityAnalysisSettings.d.ts.map +1 -1
  133. package/enterpriseSecurityAnalysisSettings.js +0 -8
  134. package/enterpriseSecurityAnalysisSettings.js.map +1 -1
  135. package/getActionsEnvironmentPublicKey.d.ts +2 -4
  136. package/getActionsEnvironmentPublicKey.d.ts.map +1 -1
  137. package/getActionsEnvironmentPublicKey.js +2 -4
  138. package/getActionsEnvironmentPublicKey.js.map +1 -1
  139. package/getActionsOrganizationPublicKey.d.ts +2 -4
  140. package/getActionsOrganizationPublicKey.d.ts.map +1 -1
  141. package/getActionsOrganizationPublicKey.js +2 -4
  142. package/getActionsOrganizationPublicKey.js.map +1 -1
  143. package/getActionsPublicKey.d.ts +2 -4
  144. package/getActionsPublicKey.d.ts.map +1 -1
  145. package/getActionsPublicKey.js +2 -4
  146. package/getActionsPublicKey.js.map +1 -1
  147. package/getAppToken.d.ts +10 -10
  148. package/getAppToken.js +10 -10
  149. package/getCodespacesOrganizationPublicKey.d.ts +2 -4
  150. package/getCodespacesOrganizationPublicKey.d.ts.map +1 -1
  151. package/getCodespacesOrganizationPublicKey.js +2 -4
  152. package/getCodespacesOrganizationPublicKey.js.map +1 -1
  153. package/getCodespacesPublicKey.d.ts +2 -4
  154. package/getCodespacesPublicKey.d.ts.map +1 -1
  155. package/getCodespacesPublicKey.js +2 -4
  156. package/getCodespacesPublicKey.js.map +1 -1
  157. package/getCodespacesUserPublicKey.d.ts +2 -4
  158. package/getCodespacesUserPublicKey.d.ts.map +1 -1
  159. package/getCodespacesUserPublicKey.js +2 -4
  160. package/getCodespacesUserPublicKey.js.map +1 -1
  161. package/getCollaborators.d.ts +5 -5
  162. package/getDependabotOrganizationPublicKey.d.ts +2 -4
  163. package/getDependabotOrganizationPublicKey.d.ts.map +1 -1
  164. package/getDependabotOrganizationPublicKey.js +2 -4
  165. package/getDependabotOrganizationPublicKey.js.map +1 -1
  166. package/getDependabotPublicKey.d.ts +2 -4
  167. package/getDependabotPublicKey.d.ts.map +1 -1
  168. package/getDependabotPublicKey.js +2 -4
  169. package/getDependabotPublicKey.js.map +1 -1
  170. package/getGithubApp.d.ts +6 -3
  171. package/getGithubApp.d.ts.map +1 -1
  172. package/getGithubApp.js +2 -2
  173. package/getGithubApp.js.map +1 -1
  174. package/getMembership.d.ts +3 -9
  175. package/getMembership.d.ts.map +1 -1
  176. package/getMembership.js +2 -8
  177. package/getMembership.js.map +1 -1
  178. package/getOrganizationExternalIdentities.d.ts +2 -4
  179. package/getOrganizationExternalIdentities.d.ts.map +1 -1
  180. package/getOrganizationExternalIdentities.js +2 -4
  181. package/getOrganizationExternalIdentities.js.map +1 -1
  182. package/getOrganizationIpAllowList.d.ts +2 -7
  183. package/getOrganizationIpAllowList.d.ts.map +1 -1
  184. package/getOrganizationIpAllowList.js +2 -6
  185. package/getOrganizationIpAllowList.js.map +1 -1
  186. package/getOrganizationSecurityManagers.d.ts +1 -1
  187. package/getOrganizationTeamSyncGroups.d.ts +1 -1
  188. package/getOrganizationTeams.d.ts +3 -3
  189. package/getOrganizationTeams.js +2 -2
  190. package/getOrganizationWebhooks.d.ts +3 -4
  191. package/getOrganizationWebhooks.d.ts.map +1 -1
  192. package/getOrganizationWebhooks.js +2 -2
  193. package/getOrganizationWebhooks.js.map +1 -1
  194. package/getReleaseAsset.d.ts +2 -4
  195. package/getReleaseAsset.d.ts.map +1 -1
  196. package/getReleaseAsset.js +2 -4
  197. package/getReleaseAsset.js.map +1 -1
  198. package/getRepositories.d.ts +2 -4
  199. package/getRepositories.d.ts.map +1 -1
  200. package/getRepositories.js +2 -4
  201. package/getRepositories.js.map +1 -1
  202. package/getRepositoryDeploymentBranchPolicies.d.ts +2 -2
  203. package/getRepositoryEnvironments.d.ts +4 -0
  204. package/getRepositoryEnvironments.d.ts.map +1 -1
  205. package/getRepositoryEnvironments.js +4 -0
  206. package/getRepositoryEnvironments.js.map +1 -1
  207. package/getRepositoryFile.d.ts +2 -4
  208. package/getRepositoryFile.d.ts.map +1 -1
  209. package/getRepositoryFile.js +2 -4
  210. package/getRepositoryFile.js.map +1 -1
  211. package/getRepositoryWebhooks.d.ts +1 -2
  212. package/getRepositoryWebhooks.d.ts.map +1 -1
  213. package/getRepositoryWebhooks.js.map +1 -1
  214. package/getTeam.d.ts +4 -4
  215. package/getUserExternalIdentity.d.ts +4 -8
  216. package/getUserExternalIdentity.d.ts.map +1 -1
  217. package/getUserExternalIdentity.js +2 -4
  218. package/getUserExternalIdentity.js.map +1 -1
  219. package/issue.d.ts +3 -4
  220. package/issue.d.ts.map +1 -1
  221. package/issue.js +3 -4
  222. package/issue.js.map +1 -1
  223. package/issueLabel.d.ts +4 -9
  224. package/issueLabel.d.ts.map +1 -1
  225. package/issueLabel.js +4 -9
  226. package/issueLabel.js.map +1 -1
  227. package/issueLabels.d.ts +1 -2
  228. package/issueLabels.d.ts.map +1 -1
  229. package/issueLabels.js +1 -2
  230. package/issueLabels.js.map +1 -1
  231. package/membership.d.ts +7 -24
  232. package/membership.d.ts.map +1 -1
  233. package/membership.js +1 -3
  234. package/membership.js.map +1 -1
  235. package/organizationCustomProperties.d.ts +0 -8
  236. package/organizationCustomProperties.d.ts.map +1 -1
  237. package/organizationCustomProperties.js +0 -8
  238. package/organizationCustomProperties.js.map +1 -1
  239. package/organizationCustomRole.d.ts +1 -2
  240. package/organizationCustomRole.d.ts.map +1 -1
  241. package/organizationCustomRole.js +1 -2
  242. package/organizationCustomRole.js.map +1 -1
  243. package/organizationRoleTeamAssignment.d.ts +6 -4
  244. package/organizationRoleTeamAssignment.d.ts.map +1 -1
  245. package/organizationRoleTeamAssignment.js +6 -4
  246. package/organizationRoleTeamAssignment.js.map +1 -1
  247. package/organizationRuleset.d.ts +0 -38
  248. package/organizationRuleset.d.ts.map +1 -1
  249. package/organizationRuleset.js +0 -38
  250. package/organizationRuleset.js.map +1 -1
  251. package/organizationSecurityManager.d.ts +4 -0
  252. package/organizationSecurityManager.d.ts.map +1 -1
  253. package/organizationSecurityManager.js +4 -0
  254. package/organizationSecurityManager.js.map +1 -1
  255. package/organizationSettings.d.ts +1 -2
  256. package/organizationSettings.d.ts.map +1 -1
  257. package/organizationSettings.js +1 -2
  258. package/organizationSettings.js.map +1 -1
  259. package/organizationWebhook.d.ts +1 -2
  260. package/organizationWebhook.d.ts.map +1 -1
  261. package/organizationWebhook.js +1 -2
  262. package/organizationWebhook.js.map +1 -1
  263. package/package.json +2 -2
  264. package/projectCard.d.ts +3 -6
  265. package/projectCard.d.ts.map +1 -1
  266. package/projectCard.js.map +1 -1
  267. package/provider.d.ts +33 -19
  268. package/provider.d.ts.map +1 -1
  269. package/provider.js +2 -0
  270. package/provider.js.map +1 -1
  271. package/release.d.ts +1 -2
  272. package/release.d.ts.map +1 -1
  273. package/release.js +1 -2
  274. package/release.js.map +1 -1
  275. package/repository.d.ts +13 -29
  276. package/repository.d.ts.map +1 -1
  277. package/repository.js +1 -2
  278. package/repository.js.map +1 -1
  279. package/repositoryCollaborator.d.ts +15 -30
  280. package/repositoryCollaborator.d.ts.map +1 -1
  281. package/repositoryCollaborator.js +4 -13
  282. package/repositoryCollaborator.js.map +1 -1
  283. package/repositoryCollaborators.d.ts +51 -32
  284. package/repositoryCollaborators.d.ts.map +1 -1
  285. package/repositoryCollaborators.js +31 -16
  286. package/repositoryCollaborators.js.map +1 -1
  287. package/repositoryCustomProperty.d.ts +26 -18
  288. package/repositoryCustomProperty.d.ts.map +1 -1
  289. package/repositoryCustomProperty.js +8 -6
  290. package/repositoryCustomProperty.js.map +1 -1
  291. package/repositoryDependabotSecurityUpdates.d.ts +1 -3
  292. package/repositoryDependabotSecurityUpdates.d.ts.map +1 -1
  293. package/repositoryDependabotSecurityUpdates.js +1 -3
  294. package/repositoryDependabotSecurityUpdates.js.map +1 -1
  295. package/repositoryDeployKey.d.ts +3 -5
  296. package/repositoryDeployKey.d.ts.map +1 -1
  297. package/repositoryDeployKey.js +3 -5
  298. package/repositoryDeployKey.js.map +1 -1
  299. package/repositoryDeploymentBranchPolicy.d.ts +4 -0
  300. package/repositoryDeploymentBranchPolicy.d.ts.map +1 -1
  301. package/repositoryDeploymentBranchPolicy.js +4 -0
  302. package/repositoryDeploymentBranchPolicy.js.map +1 -1
  303. package/repositoryEnvironment.d.ts +6 -0
  304. package/repositoryEnvironment.d.ts.map +1 -1
  305. package/repositoryEnvironment.js +6 -0
  306. package/repositoryEnvironment.js.map +1 -1
  307. package/repositoryEnvironmentDeploymentPolicy.d.ts +4 -0
  308. package/repositoryEnvironmentDeploymentPolicy.d.ts.map +1 -1
  309. package/repositoryEnvironmentDeploymentPolicy.js +4 -0
  310. package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
  311. package/repositoryFile.d.ts +13 -14
  312. package/repositoryFile.d.ts.map +1 -1
  313. package/repositoryFile.js +10 -8
  314. package/repositoryFile.js.map +1 -1
  315. package/repositoryPages.d.ts +1 -3
  316. package/repositoryPages.d.ts.map +1 -1
  317. package/repositoryPages.js +1 -3
  318. package/repositoryPages.js.map +1 -1
  319. package/repositoryTopics.d.ts +1 -2
  320. package/repositoryTopics.d.ts.map +1 -1
  321. package/repositoryTopics.js +1 -2
  322. package/repositoryTopics.js.map +1 -1
  323. package/repositoryVulnerabilityAlerts.d.ts +1 -3
  324. package/repositoryVulnerabilityAlerts.d.ts.map +1 -1
  325. package/repositoryVulnerabilityAlerts.js +1 -3
  326. package/repositoryVulnerabilityAlerts.js.map +1 -1
  327. package/repositoryWebhook.d.ts +4 -6
  328. package/repositoryWebhook.d.ts.map +1 -1
  329. package/repositoryWebhook.js +2 -4
  330. package/repositoryWebhook.js.map +1 -1
  331. package/team.d.ts +9 -14
  332. package/team.d.ts.map +1 -1
  333. package/team.js +1 -2
  334. package/team.js.map +1 -1
  335. package/teamMembers.d.ts +32 -39
  336. package/teamMembers.d.ts.map +1 -1
  337. package/teamMembers.js +12 -32
  338. package/teamMembers.js.map +1 -1
  339. package/teamMembership.d.ts +4 -10
  340. package/teamMembership.d.ts.map +1 -1
  341. package/teamMembership.js +1 -4
  342. package/teamMembership.js.map +1 -1
  343. package/teamRepository.d.ts +8 -17
  344. package/teamRepository.d.ts.map +1 -1
  345. package/teamRepository.js +5 -11
  346. package/teamRepository.js.map +1 -1
  347. package/teamSettings.d.ts +6 -7
  348. package/teamSettings.d.ts.map +1 -1
  349. package/teamSettings.js +6 -7
  350. package/teamSettings.js.map +1 -1
  351. package/teamSyncGroupMapping.d.ts +5 -16
  352. package/teamSyncGroupMapping.d.ts.map +1 -1
  353. package/teamSyncGroupMapping.js +2 -4
  354. package/teamSyncGroupMapping.js.map +1 -1
  355. package/types/input.d.ts +23 -39
  356. package/types/input.d.ts.map +1 -1
  357. package/types/output.d.ts +26 -44
  358. package/types/output.d.ts.map +1 -1
  359. package/userGpgKey.d.ts +4 -8
  360. package/userGpgKey.d.ts.map +1 -1
  361. package/userGpgKey.js +1 -2
  362. package/userGpgKey.js.map +1 -1
  363. package/userInvitationAccepter.d.ts +2 -4
  364. package/userInvitationAccepter.d.ts.map +1 -1
  365. package/userInvitationAccepter.js +2 -4
  366. package/userInvitationAccepter.js.map +1 -1
  367. package/userSshKey.d.ts +1 -1
  368. package/userSshKey.js +1 -1
  369. package/workflowRepositoryPermissions.d.ts +1 -2
  370. package/workflowRepositoryPermissions.d.ts.map +1 -1
  371. package/workflowRepositoryPermissions.js +1 -2
  372. package/workflowRepositoryPermissions.js.map +1 -1
@@ -1,19 +1,16 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Provides a GitHub branch default resource.
3
+ * Configures the default branch for a GitHub repository.
4
4
  *
5
- * This resource allows you to set the default branch for a given repository.
6
- *
7
- * Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
5
+ * > This resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
8
6
  *
9
7
  * ## Example Usage
10
8
  *
11
- * Basic usage:
12
- *
13
9
  * ```typescript
14
10
  * import * as pulumi from "@pulumi/pulumi";
15
11
  * import * as github from "@pulumi/github";
16
12
  *
13
+ * // Basic usage
17
14
  * const example = new github.Repository("example", {
18
15
  * name: "example",
19
16
  * description: "My awesome codebase",
@@ -29,12 +26,11 @@ import * as pulumi from "@pulumi/pulumi";
29
26
  * });
30
27
  * ```
31
28
  *
32
- * Renaming to a branch that doesn't exist:
33
- *
34
29
  * ```typescript
35
30
  * import * as pulumi from "@pulumi/pulumi";
36
31
  * import * as github from "@pulumi/github";
37
32
  *
33
+ * // Renaming to a branch that doesn't exist
38
34
  * const example = new github.Repository("example", {
39
35
  * name: "example",
40
36
  * description: "My awesome codebase",
@@ -49,7 +45,7 @@ import * as pulumi from "@pulumi/pulumi";
49
45
  *
50
46
  * ## Import
51
47
  *
52
- * GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
48
+ * The `pulumi import` command can be used, for example:
53
49
  *
54
50
  * ```sh
55
51
  * $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
@@ -72,18 +68,29 @@ export declare class BranchDefault extends pulumi.CustomResource {
72
68
  */
73
69
  static isInstance(obj: any): obj is BranchDefault;
74
70
  /**
75
- * The branch (e.g. `main`)
71
+ * The name of the branch to set as the default (e.g. 'main').
76
72
  */
77
73
  readonly branch: pulumi.Output<string>;
74
+ /**
75
+ * The ETag header for the repository API response.
76
+ */
78
77
  readonly etag: pulumi.Output<string>;
79
78
  /**
80
- * Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
79
+ * If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
81
80
  */
82
81
  readonly rename: pulumi.Output<boolean | undefined>;
83
82
  /**
84
- * The GitHub repository
83
+ * The name of the GitHub repository.
85
84
  */
86
85
  readonly repository: pulumi.Output<string>;
86
+ /**
87
+ * The ID of the GitHub repository.
88
+ */
89
+ readonly repositoryId: pulumi.Output<number>;
90
+ /**
91
+ * If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
92
+ */
93
+ readonly waitForRename: pulumi.Output<boolean | undefined>;
87
94
  /**
88
95
  * Create a BranchDefault resource with the given unique name, arguments, and options.
89
96
  *
@@ -98,35 +105,53 @@ export declare class BranchDefault extends pulumi.CustomResource {
98
105
  */
99
106
  export interface BranchDefaultState {
100
107
  /**
101
- * The branch (e.g. `main`)
108
+ * The name of the branch to set as the default (e.g. 'main').
102
109
  */
103
110
  branch?: pulumi.Input<string | undefined>;
111
+ /**
112
+ * The ETag header for the repository API response.
113
+ */
104
114
  etag?: pulumi.Input<string | undefined>;
105
115
  /**
106
- * Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
116
+ * If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
107
117
  */
108
118
  rename?: pulumi.Input<boolean | undefined>;
109
119
  /**
110
- * The GitHub repository
120
+ * The name of the GitHub repository.
111
121
  */
112
122
  repository?: pulumi.Input<string | undefined>;
123
+ /**
124
+ * The ID of the GitHub repository.
125
+ */
126
+ repositoryId?: pulumi.Input<number | undefined>;
127
+ /**
128
+ * If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
129
+ */
130
+ waitForRename?: pulumi.Input<boolean | undefined>;
113
131
  }
114
132
  /**
115
133
  * The set of arguments for constructing a BranchDefault resource.
116
134
  */
117
135
  export interface BranchDefaultArgs {
118
136
  /**
119
- * The branch (e.g. `main`)
137
+ * The name of the branch to set as the default (e.g. 'main').
120
138
  */
121
139
  branch: pulumi.Input<string>;
140
+ /**
141
+ * The ETag header for the repository API response.
142
+ */
122
143
  etag?: pulumi.Input<string | undefined>;
123
144
  /**
124
- * Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
145
+ * If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
125
146
  */
126
147
  rename?: pulumi.Input<boolean | undefined>;
127
148
  /**
128
- * The GitHub repository
149
+ * The name of the GitHub repository.
129
150
  */
130
151
  repository: pulumi.Input<string>;
152
+ /**
153
+ * If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
154
+ */
155
+ waitForRename?: pulumi.Input<boolean | undefined>;
131
156
  }
132
157
  //# sourceMappingURL=branchDefault.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"branchDefault.d.ts","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,C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iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA8BzF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACrD"}
package/branchDefault.js CHANGED
@@ -29,20 +29,17 @@ exports.BranchDefault = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * Provides a GitHub branch default resource.
32
+ * Configures the default branch for a GitHub repository.
33
33
  *
34
- * This resource allows you to set the default branch for a given repository.
35
- *
36
- * Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
34
+ * > This resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
37
35
  *
38
36
  * ## Example Usage
39
37
  *
40
- * Basic usage:
41
- *
42
38
  * ```typescript
43
39
  * import * as pulumi from "@pulumi/pulumi";
44
40
  * import * as github from "@pulumi/github";
45
41
  *
42
+ * // Basic usage
46
43
  * const example = new github.Repository("example", {
47
44
  * name: "example",
48
45
  * description: "My awesome codebase",
@@ -58,12 +55,11 @@ const utilities = __importStar(require("./utilities"));
58
55
  * });
59
56
  * ```
60
57
  *
61
- * Renaming to a branch that doesn't exist:
62
- *
63
58
  * ```typescript
64
59
  * import * as pulumi from "@pulumi/pulumi";
65
60
  * import * as github from "@pulumi/github";
66
61
  *
62
+ * // Renaming to a branch that doesn't exist
67
63
  * const example = new github.Repository("example", {
68
64
  * name: "example",
69
65
  * description: "My awesome codebase",
@@ -78,7 +74,7 @@ const utilities = __importStar(require("./utilities"));
78
74
  *
79
75
  * ## Import
80
76
  *
81
- * GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
77
+ * The `pulumi import` command can be used, for example:
82
78
  *
83
79
  * ```sh
84
80
  * $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
@@ -118,6 +114,8 @@ class BranchDefault extends pulumi.CustomResource {
118
114
  resourceInputs["etag"] = state?.etag;
119
115
  resourceInputs["rename"] = state?.rename;
120
116
  resourceInputs["repository"] = state?.repository;
117
+ resourceInputs["repositoryId"] = state?.repositoryId;
118
+ resourceInputs["waitForRename"] = state?.waitForRename;
121
119
  }
122
120
  else {
123
121
  const args = argsOrState;
@@ -131,6 +129,8 @@ class BranchDefault extends pulumi.CustomResource {
131
129
  resourceInputs["etag"] = args?.etag;
132
130
  resourceInputs["rename"] = args?.rename;
133
131
  resourceInputs["repository"] = args?.repository;
132
+ resourceInputs["waitForRename"] = args?.waitForRename;
133
+ resourceInputs["repositoryId"] = undefined /*out*/;
134
134
  }
135
135
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
136
136
  super(BranchDefault.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0CAA0C,CAAC;IAEjF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAwBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,C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G,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAzFL,sCA0FC"}
@@ -1,27 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization.
4
- * You must have write access to a repository to use this resource.
3
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization. You must have write access to a repository to use this resource.
5
4
  *
6
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
7
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
5
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
8
6
  *
9
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
10
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
11
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
12
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
13
- * in your code. See below for an example of this abstraction.
14
- *
15
- * ## Import
16
- *
17
- * This resource can be imported using an ID made up of the secret name:
18
- *
19
- * ```sh
20
- * $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
21
- * ```
22
- *
23
- * NOTE: the implementation is limited in that it won't fetch the value of the
24
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
7
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
25
8
  */
26
9
  export declare class CodespacesOrganizationSecret extends pulumi.CustomResource {
27
10
  /**
@@ -64,8 +47,7 @@ export declare class CodespacesOrganizationSecret extends pulumi.CustomResource
64
47
  */
65
48
  readonly updatedAt: pulumi.Output<string>;
66
49
  /**
67
- * Configures the access that repositories have to the organization secret.
68
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
50
+ * Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
69
51
  */
70
52
  readonly visibility: pulumi.Output<string>;
71
53
  /**
@@ -106,8 +88,7 @@ export interface CodespacesOrganizationSecretState {
106
88
  */
107
89
  updatedAt?: pulumi.Input<string | undefined>;
108
90
  /**
109
- * Configures the access that repositories have to the organization secret.
110
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
91
+ * Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
111
92
  */
112
93
  visibility?: pulumi.Input<string | undefined>;
113
94
  }
@@ -132,8 +113,7 @@ export interface CodespacesOrganizationSecretArgs {
132
113
  */
133
114
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[] | undefined>;
134
115
  /**
135
- * Configures the access that repositories have to the organization secret.
136
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
116
+ * Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
137
117
  */
138
118
  visibility: pulumi.Input<string>;
139
119
  }
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesOrganizationSecret.d.ts","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,iCAAiC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,4BAA4B;IAO1K;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,4BAA4B;IAOvE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,C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,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -29,28 +29,11 @@ exports.CodespacesOrganizationSecret = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization.
33
- * You must have write access to a repository to use this resource.
32
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization. You must have write access to a repository to use this resource.
34
33
  *
35
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
36
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
34
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
37
35
  *
38
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
39
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
40
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
41
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
42
- * in your code. See below for an example of this abstraction.
43
- *
44
- * ## Import
45
- *
46
- * This resource can be imported using an ID made up of the secret name:
47
- *
48
- * ```sh
49
- * $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
50
- * ```
51
- *
52
- * NOTE: the implementation is limited in that it won't fetch the value of the
53
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
36
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
54
37
  */
55
38
  class CodespacesOrganizationSecret extends pulumi.CustomResource {
56
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesOrganizationSecret.js","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wEAAwE,CAAC;IAE/G;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IAwCD,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QAC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C,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAjGL,oEAkGC"}
@@ -1,16 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories.
4
- * You must have write access to a repository to use this resource.
3
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories. You must have write access to a repository to use this resource.
5
4
  *
6
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
7
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
5
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
8
6
  *
9
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
10
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
11
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
12
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
13
- * in your code. See below for an example of this abstraction.
7
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
14
8
  *
15
9
  * ## Import
16
10
  *
@@ -20,8 +14,7 @@ import * as pulumi from "@pulumi/pulumi";
20
14
  * $ pulumi import github:index/codespacesSecret:CodespacesSecret example_secret example_repository/example_secret_name
21
15
  * ```
22
16
  *
23
- * NOTE: the implementation is limited in that it won't fetch the value of the
24
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
17
+ * NOTE: the implementation is limited in that it won't fetch the value of the `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
25
18
  */
26
19
  export declare class CodespacesSecret extends pulumi.CustomResource {
27
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesSecret.d.ts","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC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,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
@@ -29,17 +29,11 @@ exports.CodespacesSecret = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories.
33
- * You must have write access to a repository to use this resource.
32
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories. You must have write access to a repository to use this resource.
34
33
  *
35
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
36
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
34
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
37
35
  *
38
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
39
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
40
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
41
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
42
- * in your code. See below for an example of this abstraction.
36
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
43
37
  *
44
38
  * ## Import
45
39
  *
@@ -49,8 +43,7 @@ const utilities = __importStar(require("./utilities"));
49
43
  * $ pulumi import github:index/codespacesSecret:CodespacesSecret example_secret example_repository/example_secret_name
50
44
  * ```
51
45
  *
52
- * NOTE: the implementation is limited in that it won't fetch the value of the
53
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
46
+ * NOTE: the implementation is limited in that it won't fetch the value of the `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
54
47
  */
55
48
  class CodespacesSecret extends pulumi.CustomResource {
56
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesSecret.js","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gDAAgD,CAAC;IAEvF;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CA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SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC"}
@@ -1,27 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user.
4
- * You must have write access to a repository to use this resource.
3
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user. You must have write access to a repository to use this resource.
5
4
  *
6
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
7
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
5
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
8
6
  *
9
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
10
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
11
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
12
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
13
- * in your code. See below for an example of this abstraction.
14
- *
15
- * ## Import
16
- *
17
- * This resource can be imported using an ID made up of the secret name:
18
- *
19
- * ```sh
20
- * $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
21
- * ```
22
- *
23
- * NOTE: the implementation is limited in that it won't fetch the value of the
24
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
7
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
25
8
  */
26
9
  export declare class CodespacesUserSecret extends pulumi.CustomResource {
27
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesUserSecret.d.ts","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAO1J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,oBAAoB;IAO/D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,qBAAqB,EAAE,MAAM,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WAAW,yBAAyB;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC5E"}
@@ -29,28 +29,11 @@ exports.CodespacesUserSecret = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user.
33
- * You must have write access to a repository to use this resource.
32
+ * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user. You must have write access to a repository to use this resource.
34
33
  *
35
- * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
36
- * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
34
+ * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
37
35
  *
38
- * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
39
- * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
40
- * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
41
- * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
42
- * in your code. See below for an example of this abstraction.
43
- *
44
- * ## Import
45
- *
46
- * This resource can be imported using an ID made up of the secret name:
47
- *
48
- * ```sh
49
- * $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
50
- * ```
51
- *
52
- * NOTE: the implementation is limited in that it won't fetch the value of the
53
- * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
36
+ * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
54
37
  */
55
38
  class CodespacesUserSecret extends pulumi.CustomResource {
56
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MA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,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAxFL,oDAyFC"}
package/config/vars.d.ts CHANGED
@@ -1,54 +1,62 @@
1
1
  import * as outputs from "../types/output";
2
2
  /**
3
- * The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token` and `appAuth` are not set.
3
+ * Authenticate using a GitHub App.
4
4
  */
5
5
  export declare const appAuth: outputs.config.AppAuth | undefined;
6
6
  /**
7
- * The GitHub Base API URL
7
+ * The base URL for the GitHub API; this defaults to the GitHub API URL. If you are using GitHub Enterprise Server (GHES) or GitHub Enterprise Cloud with Data Residency (GHEC-DR), this is required. This can also be set by the `GITHUB_BASE_URL` environment variable.
8
8
  */
9
9
  export declare const baseUrl: string;
10
10
  /**
11
- * Enable `insecure` mode for testing purposes
11
+ * The path to the cache directory for persisting GitHub API requests between runs; if not set there will be no caching between runs. This can also be set by the `GITHUB_CACHE_PATH` environment variable.
12
+ */
13
+ export declare const cachePath: string | undefined;
14
+ /**
15
+ * Allow insecure server connections when using SSL.
12
16
  */
13
17
  export declare const insecure: boolean | undefined;
14
18
  /**
15
- * Number of items per page for paginationDefaults to 100
19
+ * Use the legacy GitHub client implementation; if set to `false`, the new client implementation is used. This can also be set by the `GITHUB_LEGACY_CLIENT` environment variable.
20
+ */
21
+ export declare const legacyClient: boolean | undefined;
22
+ /**
23
+ * The maximum number of results per page for paginated API requests; this defaults to `100`. This can also be set by the `GITHUB_MAX_PER_PAGE` environment variable.
16
24
  */
17
25
  export declare const maxPerPage: number | undefined;
18
26
  /**
19
- * Number of times to retry a request after receiving an error status codeDefaults to 3
27
+ * The maximum number of retries for failed requests; this defaults to `3`.
20
28
  */
21
29
  export declare const maxRetries: number | undefined;
22
30
  /**
23
- * The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.
31
+ * GitHub organization to manage. This can also be set by the `GITHUB_ORGANIZATION` environment variable.
24
32
  */
25
33
  export declare const organization: string | undefined;
26
34
  /**
27
- * The GitHub owner name to manage. Use this field instead of `organization` when managing individual accounts.
35
+ * GitHub organization or user account to manage; this is required when authenticating using a GitHub App. If the owner is not provided and a token is provided, the provider will attempt to auto-detect the owner associated with the token. This can also be set by the `GITHUB_OWNER` environment variable.
28
36
  */
29
37
  export declare const owner: string | undefined;
30
38
  /**
31
- * Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github Enterprise without strict rate limits. While it is possible to enable this setting on github.com, github.com's best practices recommend using serialization to avoid hitting abuse rate limitsDefaults to false if not set
39
+ * Allow the provider to make parallel API calls; this is experimental and may cause concurrency and rate limiting issues. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is designed to safely handle parallel requests.
32
40
  */
33
41
  export declare const parallelRequests: boolean | undefined;
34
42
  /**
35
- * Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.
43
+ * The delay in milliseconds between read operations; this defaults to `0`. This can be used to mitigate rate limiting issues when performing a large number of read operations. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is GitHub rate limit aware.
36
44
  */
37
45
  export declare const readDelayMs: number | undefined;
38
46
  /**
39
- * Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or 1s if not set, the maxRetries must be set to greater than zero.
47
+ * The delay in milliseconds between retry attempts; this defaults to `1000`. This setting only applies when `maxRetries` is greater than `0`.
40
48
  */
41
49
  export declare const retryDelayMs: number | undefined;
42
50
  /**
43
- * Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults to [500, 502, 503, 504]
51
+ * List of HTTP status codes that should be retried; if not set this uses the provider defaults. This setting only applies when `maxRetries` is greater than `0`. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation handles the retry logic.
44
52
  */
45
53
  export declare const retryableErrors: number[] | undefined;
46
54
  /**
47
- * The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `appAuth` are not set.
55
+ * GitHub OAuth or Personal Access Token (PAT) to use for authentication. This can also be set by the `GITHUB_TOKEN` environment variable.
48
56
  */
49
57
  export declare const token: string | undefined;
50
58
  /**
51
- * Amount of time in milliseconds to sleep in between writes to GitHub API. Defaults to 1000ms or 1s if not set.
59
+ * The delay in milliseconds between write operations; this defaults to `1000`. This is used to mitigate the GitHub API's abuse rate limits when writing. Note that **ALL** requests to the GraphQL API are implemented as `POST` requests under the hood, so this setting affects those calls as well. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is GitHub rate limit aware.
52
60
  */
53
61
  export declare const writeDelayMs: number | undefined;
54
62
  //# sourceMappingURL=vars.d.ts.map