@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
@@ -5,7 +5,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryDeployKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a GitHub repository deploy key resource.
10
+ *
11
+ * A deploy key is an SSH key that is stored on your server and grants
12
+ * access to a single GitHub repository. This key is attached directly to the repository instead of to a personal user
13
+ * account.
14
+ *
15
+ * This resource allows you to add/remove repository deploy keys.
16
+ *
17
+ * Further documentation on GitHub repository deploy keys:
18
+ * - [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)
19
+ *
20
+ * ## Example Usage
21
+ *
22
+ * ```typescript
23
+ * import * as pulumi from "@pulumi/pulumi";
24
+ * import * as github from "@pulumi/github";
25
+ *
26
+ * // Add a deploy key
27
+ * const exampleRepositoryDeployKey = new github.RepositoryDeployKey("exampleRepositoryDeployKey", {
28
+ * key: "ssh-rsa AAA...",
29
+ * readOnly: false,
30
+ * repository: "test-repo",
31
+ * title: "Repository test key",
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Repository deploy keys can be imported using a colon-separated pair of repository name and GitHub's key id. The latter can be obtained by GitHub's SDKs and API.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import github:index/repositoryDeployKey:RepositoryDeployKey foo test-repo:23824728
41
+ * ```
42
+ */
8
43
  class RepositoryDeployKey extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing RepositoryDeployKey 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 RepositoryDeployKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
+ }
56
+ /**
57
+ * Returns true if the given object is an instance of RepositoryDeployKey. 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'] === RepositoryDeployKey.__pulumiType;
65
+ }
9
66
  constructor(name, argsOrState, opts) {
10
67
  let resourceInputs = {};
11
68
  opts = opts || {};
@@ -37,28 +94,6 @@ class RepositoryDeployKey extends pulumi.CustomResource {
37
94
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
38
95
  super(RepositoryDeployKey.__pulumiType, name, resourceInputs, opts);
39
96
  }
40
- /**
41
- * Get an existing RepositoryDeployKey resource's state with the given name, ID, and optional extra
42
- * properties used to qualify the lookup.
43
- *
44
- * @param name The _unique_ name of the resulting resource.
45
- * @param id The _unique_ provider ID of the resource to lookup.
46
- * @param state Any extra arguments used during the lookup.
47
- * @param opts Optional settings to control the behavior of the CustomResource.
48
- */
49
- static get(name, id, state, opts) {
50
- return new RepositoryDeployKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
51
- }
52
- /**
53
- * Returns true if the given object is an instance of RepositoryDeployKey. This is designed to work even
54
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
- */
56
- static isInstance(obj) {
57
- if (obj === undefined || obj === null) {
58
- return false;
59
- }
60
- return obj['__pulumiType'] === RepositoryDeployKey.__pulumiType;
61
- }
62
97
  }
63
98
  exports.RepositoryDeployKey = RepositoryDeployKey;
64
99
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryDeployKey.js","sourceRoot":"","sources":["../repositoryDeployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IA0C1D,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,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,c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AAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAnFL,kDAoFC;AAtEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
@@ -1,6 +1,40 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
+ /**
5
+ * This resource allows you to create and manage environments for a GitHub repository.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as github from "@pulumi/github";
12
+ *
13
+ * const current = github.getUser({
14
+ * username: "",
15
+ * });
16
+ * const exampleRepository = new github.Repository("exampleRepository", {description: "My awesome codebase"});
17
+ * const exampleRepositoryEnvironment = new github.RepositoryEnvironment("exampleRepositoryEnvironment", {
18
+ * environment: "example",
19
+ * repository: exampleRepository.name,
20
+ * reviewers: [{
21
+ * users: [current.then(current => current.id)],
22
+ * }],
23
+ * deploymentBranchPolicy: {
24
+ * protectedBranches: true,
25
+ * customBranchPolicies: false,
26
+ * },
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
33
+ *
34
+ * ```sh
35
+ * $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
36
+ * ```
37
+ */
4
38
  export declare class RepositoryEnvironment extends pulumi.CustomResource {
5
39
  /**
6
40
  * Get an existing RepositoryEnvironment resource's state with the given name, ID, and optional extra
@@ -18,9 +52,18 @@ export declare class RepositoryEnvironment extends pulumi.CustomResource {
18
52
  */
19
53
  static isInstance(obj: any): obj is RepositoryEnvironment;
20
54
  readonly deploymentBranchPolicy: pulumi.Output<outputs.RepositoryEnvironmentDeploymentBranchPolicy | undefined>;
55
+ /**
56
+ * The name of the environment.
57
+ */
21
58
  readonly environment: pulumi.Output<string>;
59
+ /**
60
+ * The repository of the environment.
61
+ */
22
62
  readonly repository: pulumi.Output<string>;
23
63
  readonly reviewers: pulumi.Output<outputs.RepositoryEnvironmentReviewer[] | undefined>;
64
+ /**
65
+ * Amount of time to delay a job after the job is initially triggered.
66
+ */
24
67
  readonly waitTimer: pulumi.Output<number | undefined>;
25
68
  /**
26
69
  * Create a RepositoryEnvironment resource with the given unique name, arguments, and options.
@@ -36,9 +79,18 @@ export declare class RepositoryEnvironment extends pulumi.CustomResource {
36
79
  */
37
80
  export interface RepositoryEnvironmentState {
38
81
  deploymentBranchPolicy?: pulumi.Input<inputs.RepositoryEnvironmentDeploymentBranchPolicy>;
82
+ /**
83
+ * The name of the environment.
84
+ */
39
85
  environment?: pulumi.Input<string>;
86
+ /**
87
+ * The repository of the environment.
88
+ */
40
89
  repository?: pulumi.Input<string>;
41
90
  reviewers?: pulumi.Input<pulumi.Input<inputs.RepositoryEnvironmentReviewer>[]>;
91
+ /**
92
+ * Amount of time to delay a job after the job is initially triggered.
93
+ */
42
94
  waitTimer?: pulumi.Input<number>;
43
95
  }
44
96
  /**
@@ -46,8 +98,17 @@ export interface RepositoryEnvironmentState {
46
98
  */
47
99
  export interface RepositoryEnvironmentArgs {
48
100
  deploymentBranchPolicy?: pulumi.Input<inputs.RepositoryEnvironmentDeploymentBranchPolicy>;
101
+ /**
102
+ * The name of the environment.
103
+ */
49
104
  environment: pulumi.Input<string>;
105
+ /**
106
+ * The repository of the environment.
107
+ */
50
108
  repository: pulumi.Input<string>;
51
109
  reviewers?: pulumi.Input<pulumi.Input<inputs.RepositoryEnvironmentReviewer>[]>;
110
+ /**
111
+ * Amount of time to delay a job after the job is initially triggered.
112
+ */
52
113
  waitTimer?: pulumi.Input<number>;
53
114
  }
@@ -5,7 +5,63 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryEnvironment = 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 environments for a GitHub repository.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as github from "@pulumi/github";
16
+ *
17
+ * const current = github.getUser({
18
+ * username: "",
19
+ * });
20
+ * const exampleRepository = new github.Repository("exampleRepository", {description: "My awesome codebase"});
21
+ * const exampleRepositoryEnvironment = new github.RepositoryEnvironment("exampleRepositoryEnvironment", {
22
+ * environment: "example",
23
+ * repository: exampleRepository.name,
24
+ * reviewers: [{
25
+ * users: [current.then(current => current.id)],
26
+ * }],
27
+ * deploymentBranchPolicy: {
28
+ * protectedBranches: true,
29
+ * customBranchPolicies: false,
30
+ * },
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
40
+ * ```
41
+ */
8
42
  class RepositoryEnvironment extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing RepositoryEnvironment resource's state with the given name, ID, and optional extra
45
+ * properties used to qualify the lookup.
46
+ *
47
+ * @param name The _unique_ name of the resulting resource.
48
+ * @param id The _unique_ provider ID of the resource to lookup.
49
+ * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
51
+ */
52
+ static get(name, id, state, opts) {
53
+ return new RepositoryEnvironment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
54
+ }
55
+ /**
56
+ * Returns true if the given object is an instance of RepositoryEnvironment. This is designed to work even
57
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
+ */
59
+ static isInstance(obj) {
60
+ if (obj === undefined || obj === null) {
61
+ return false;
62
+ }
63
+ return obj['__pulumiType'] === RepositoryEnvironment.__pulumiType;
64
+ }
9
65
  constructor(name, argsOrState, opts) {
10
66
  let resourceInputs = {};
11
67
  opts = opts || {};
@@ -34,28 +90,6 @@ class RepositoryEnvironment extends pulumi.CustomResource {
34
90
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
35
91
  super(RepositoryEnvironment.__pulumiType, name, resourceInputs, opts);
36
92
  }
37
- /**
38
- * Get an existing RepositoryEnvironment resource's state with the given name, ID, and optional extra
39
- * properties used to qualify the lookup.
40
- *
41
- * @param name The _unique_ name of the resulting resource.
42
- * @param id The _unique_ provider ID of the resource to lookup.
43
- * @param state Any extra arguments used during the lookup.
44
- * @param opts Optional settings to control the behavior of the CustomResource.
45
- */
46
- static get(name, id, state, opts) {
47
- return new RepositoryEnvironment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
48
- }
49
- /**
50
- * Returns true if the given object is an instance of RepositoryEnvironment. This is designed to work even
51
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
- */
53
- static isInstance(obj) {
54
- if (obj === undefined || obj === null) {
55
- return false;
56
- }
57
- return obj['__pulumiType'] === RepositoryEnvironment.__pulumiType;
58
- }
59
93
  }
60
94
  exports.RepositoryEnvironment = RepositoryEnvironment;
61
95
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA0C5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW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AAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA7EL,sDA8EC;AAhEG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
@@ -1,4 +1,41 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * This resource allows you to create and manage files within a
4
+ * GitHub repository.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as github from "@pulumi/github";
11
+ *
12
+ * const fooRepository = new github.Repository("fooRepository", {autoInit: true});
13
+ * const fooRepositoryFile = new github.RepositoryFile("fooRepositoryFile", {
14
+ * repository: fooRepository.name,
15
+ * branch: "main",
16
+ * file: ".gitignore",
17
+ * content: "**&#47;*.tfstate",
18
+ * commitMessage: "Managed by Terraform",
19
+ * commitAuthor: "Terraform User",
20
+ * commitEmail: "terraform@example.com",
21
+ * overwriteOnCreate: true,
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * Repository files can be imported using a combination of the `repo` and `file`, e.g.
28
+ *
29
+ * ```sh
30
+ * $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore
31
+ * ```
32
+ *
33
+ * To import a file from a branch other than main, append `:` and the branch name, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore:dev
37
+ * ```
38
+ */
2
39
  export declare class RepositoryFile extends pulumi.CustomResource {
3
40
  /**
4
41
  * Get an existing RepositoryFile resource's state with the given name, ID, and optional extra
@@ -16,45 +53,44 @@ export declare class RepositoryFile extends pulumi.CustomResource {
16
53
  */
17
54
  static isInstance(obj: any): obj is RepositoryFile;
18
55
  /**
19
- * The branch name, defaults to "main"
56
+ * Git branch (defaults to `main`).
57
+ * The branch must already exist, it will not be created if it does not already exist.
20
58
  */
21
59
  readonly branch: pulumi.Output<string | undefined>;
22
60
  /**
23
- * The commit author name, defaults to the authenticated user's name. GitHub app users may omit author and email
24
- * information so GitHub can verify commits as the GitHub App.
61
+ * Committer author name to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This maybe useful when a branch protection rule requires signed commits.
25
62
  */
26
63
  readonly commitAuthor: pulumi.Output<string | undefined>;
27
64
  /**
28
- * The commit author email address, defaults to the authenticated user's email address. GitHub app users may omit author
29
- * and email information so GitHub can verify commits as the GitHub App.
65
+ * Committer email address to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This may be useful when a branch protection rule requires signed commits.
30
66
  */
31
67
  readonly commitEmail: pulumi.Output<string | undefined>;
32
68
  /**
33
- * The commit message when creating or updating the file
69
+ * Commit message when adding or updating the managed file.
34
70
  */
35
71
  readonly commitMessage: pulumi.Output<string>;
36
72
  /**
37
- * The SHA of the commit that modified the file
73
+ * The SHA of the commit that modified the file.
38
74
  */
39
75
  readonly commitSha: pulumi.Output<string>;
40
76
  /**
41
- * The file's content
77
+ * The file content.
42
78
  */
43
79
  readonly content: pulumi.Output<string>;
44
80
  /**
45
- * The file path to manage
81
+ * The path of the file to manage.
46
82
  */
47
83
  readonly file: pulumi.Output<string>;
48
84
  /**
49
- * Enable overwriting existing files, defaults to "false"
85
+ * Enable overwriting existing files
50
86
  */
51
87
  readonly overwriteOnCreate: pulumi.Output<boolean | undefined>;
52
88
  /**
53
- * The repository name
89
+ * The repository to create the file in.
54
90
  */
55
91
  readonly repository: pulumi.Output<string>;
56
92
  /**
57
- * The blob SHA of the file
93
+ * The SHA blob of the file.
58
94
  */
59
95
  readonly sha: pulumi.Output<string>;
60
96
  /**
@@ -71,45 +107,44 @@ export declare class RepositoryFile extends pulumi.CustomResource {
71
107
  */
72
108
  export interface RepositoryFileState {
73
109
  /**
74
- * The branch name, defaults to "main"
110
+ * Git branch (defaults to `main`).
111
+ * The branch must already exist, it will not be created if it does not already exist.
75
112
  */
76
113
  branch?: pulumi.Input<string>;
77
114
  /**
78
- * The commit author name, defaults to the authenticated user's name. GitHub app users may omit author and email
79
- * information so GitHub can verify commits as the GitHub App.
115
+ * Committer author name to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This maybe useful when a branch protection rule requires signed commits.
80
116
  */
81
117
  commitAuthor?: pulumi.Input<string>;
82
118
  /**
83
- * The commit author email address, defaults to the authenticated user's email address. GitHub app users may omit author
84
- * and email information so GitHub can verify commits as the GitHub App.
119
+ * Committer email address to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This may be useful when a branch protection rule requires signed commits.
85
120
  */
86
121
  commitEmail?: pulumi.Input<string>;
87
122
  /**
88
- * The commit message when creating or updating the file
123
+ * Commit message when adding or updating the managed file.
89
124
  */
90
125
  commitMessage?: pulumi.Input<string>;
91
126
  /**
92
- * The SHA of the commit that modified the file
127
+ * The SHA of the commit that modified the file.
93
128
  */
94
129
  commitSha?: pulumi.Input<string>;
95
130
  /**
96
- * The file's content
131
+ * The file content.
97
132
  */
98
133
  content?: pulumi.Input<string>;
99
134
  /**
100
- * The file path to manage
135
+ * The path of the file to manage.
101
136
  */
102
137
  file?: pulumi.Input<string>;
103
138
  /**
104
- * Enable overwriting existing files, defaults to "false"
139
+ * Enable overwriting existing files
105
140
  */
106
141
  overwriteOnCreate?: pulumi.Input<boolean>;
107
142
  /**
108
- * The repository name
143
+ * The repository to create the file in.
109
144
  */
110
145
  repository?: pulumi.Input<string>;
111
146
  /**
112
- * The blob SHA of the file
147
+ * The SHA blob of the file.
113
148
  */
114
149
  sha?: pulumi.Input<string>;
115
150
  }
@@ -118,37 +153,36 @@ export interface RepositoryFileState {
118
153
  */
119
154
  export interface RepositoryFileArgs {
120
155
  /**
121
- * The branch name, defaults to "main"
156
+ * Git branch (defaults to `main`).
157
+ * The branch must already exist, it will not be created if it does not already exist.
122
158
  */
123
159
  branch?: pulumi.Input<string>;
124
160
  /**
125
- * The commit author name, defaults to the authenticated user's name. GitHub app users may omit author and email
126
- * information so GitHub can verify commits as the GitHub App.
161
+ * Committer author name to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This maybe useful when a branch protection rule requires signed commits.
127
162
  */
128
163
  commitAuthor?: pulumi.Input<string>;
129
164
  /**
130
- * The commit author email address, defaults to the authenticated user's email address. GitHub app users may omit author
131
- * and email information so GitHub can verify commits as the GitHub App.
165
+ * Committer email address to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This may be useful when a branch protection rule requires signed commits.
132
166
  */
133
167
  commitEmail?: pulumi.Input<string>;
134
168
  /**
135
- * The commit message when creating or updating the file
169
+ * Commit message when adding or updating the managed file.
136
170
  */
137
171
  commitMessage?: pulumi.Input<string>;
138
172
  /**
139
- * The file's content
173
+ * The file content.
140
174
  */
141
175
  content: pulumi.Input<string>;
142
176
  /**
143
- * The file path to manage
177
+ * The path of the file to manage.
144
178
  */
145
179
  file: pulumi.Input<string>;
146
180
  /**
147
- * Enable overwriting existing files, defaults to "false"
181
+ * Enable overwriting existing files
148
182
  */
149
183
  overwriteOnCreate?: pulumi.Input<boolean>;
150
184
  /**
151
- * The repository name
185
+ * The repository to create the file in.
152
186
  */
153
187
  repository: pulumi.Input<string>;
154
188
  }
package/repositoryFile.js CHANGED
@@ -5,7 +5,66 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RepositoryFile = 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 files within a
10
+ * GitHub repository.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as github from "@pulumi/github";
17
+ *
18
+ * const fooRepository = new github.Repository("fooRepository", {autoInit: true});
19
+ * const fooRepositoryFile = new github.RepositoryFile("fooRepositoryFile", {
20
+ * repository: fooRepository.name,
21
+ * branch: "main",
22
+ * file: ".gitignore",
23
+ * content: "**&#47;*.tfstate",
24
+ * commitMessage: "Managed by Terraform",
25
+ * commitAuthor: "Terraform User",
26
+ * commitEmail: "terraform@example.com",
27
+ * overwriteOnCreate: true,
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Repository files can be imported using a combination of the `repo` and `file`, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore
37
+ * ```
38
+ *
39
+ * To import a file from a branch other than main, append `:` and the branch name, e.g.
40
+ *
41
+ * ```sh
42
+ * $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example/.gitignore:dev
43
+ * ```
44
+ */
8
45
  class RepositoryFile extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing RepositoryFile resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param state Any extra arguments used during the lookup.
53
+ * @param opts Optional settings to control the behavior of the CustomResource.
54
+ */
55
+ static get(name, id, state, opts) {
56
+ return new RepositoryFile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
57
+ }
58
+ /**
59
+ * Returns true if the given object is an instance of RepositoryFile. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === RepositoryFile.__pulumiType;
67
+ }
9
68
  constructor(name, argsOrState, opts) {
10
69
  let resourceInputs = {};
11
70
  opts = opts || {};
@@ -47,28 +106,6 @@ class RepositoryFile extends pulumi.CustomResource {
47
106
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
48
107
  super(RepositoryFile.__pulumiType, name, resourceInputs, opts);
49
108
  }
50
- /**
51
- * Get an existing RepositoryFile resource's state with the given name, ID, and optional extra
52
- * properties used to qualify the lookup.
53
- *
54
- * @param name The _unique_ name of the resulting resource.
55
- * @param id The _unique_ provider ID of the resource to lookup.
56
- * @param state Any extra arguments used during the lookup.
57
- * @param opts Optional settings to control the behavior of the CustomResource.
58
- */
59
- static get(name, id, state, opts) {
60
- return new RepositoryFile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
61
- }
62
- /**
63
- * Returns true if the given object is an instance of RepositoryFile. This is designed to work even
64
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
65
- */
66
- static isInstance(obj) {
67
- if (obj === undefined || obj === null) {
68
- return false;
69
- }
70
- return obj['__pulumiType'] === RepositoryFile.__pulumiType;
71
- }
72
109
  }
73
110
  exports.RepositoryFile = RepositoryFile;
74
111
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../repositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA+ErD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,cAAc,CA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