@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713

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 (197) hide show
  1. package/README.md +1 -1
  2. package/actionsEnvironmentSecret.d.ts +0 -105
  3. package/actionsEnvironmentSecret.js +0 -48
  4. package/actionsEnvironmentSecret.js.map +1 -1
  5. package/actionsOrganizationPermissions.d.ts +0 -72
  6. package/actionsOrganizationPermissions.js +0 -36
  7. package/actionsOrganizationPermissions.js.map +1 -1
  8. package/actionsOrganizationSecret.d.ts +0 -110
  9. package/actionsOrganizationSecret.js +0 -50
  10. package/actionsOrganizationSecret.js.map +1 -1
  11. package/actionsOrganizationSecretRepositories.d.ts +0 -47
  12. package/actionsOrganizationSecretRepositories.js +0 -29
  13. package/actionsOrganizationSecretRepositories.js.map +1 -1
  14. package/actionsRunnerGroup.d.ts +0 -88
  15. package/actionsRunnerGroup.js +0 -25
  16. package/actionsRunnerGroup.js.map +1 -1
  17. package/actionsSecret.d.ts +0 -70
  18. package/actionsSecret.js +0 -22
  19. package/actionsSecret.js.map +1 -1
  20. package/appInstallationRepository.d.ts +0 -54
  21. package/appInstallationRepository.js +0 -36
  22. package/appInstallationRepository.js.map +1 -1
  23. package/branch.d.ts +0 -92
  24. package/branch.js +0 -38
  25. package/branch.js.map +1 -1
  26. package/branchDefault.d.ts +0 -53
  27. package/branchDefault.js +0 -35
  28. package/branchDefault.js.map +1 -1
  29. package/branchProtection.d.ts +3 -155
  30. package/branchProtection.js +0 -53
  31. package/branchProtection.js.map +1 -1
  32. package/branchProtectionV3.d.ts +0 -138
  33. package/branchProtectionV3.js +0 -66
  34. package/branchProtectionV3.js.map +1 -1
  35. package/emuGroupMapping.d.ts +0 -41
  36. package/emuGroupMapping.js +0 -23
  37. package/emuGroupMapping.js.map +1 -1
  38. package/getActionsOrganizationSecrets.d.ts +13 -0
  39. package/getActionsOrganizationSecrets.js +16 -0
  40. package/getActionsOrganizationSecrets.js.map +1 -0
  41. package/getActionsPublicKey.d.ts +0 -27
  42. package/getActionsPublicKey.js +0 -15
  43. package/getActionsPublicKey.js.map +1 -1
  44. package/getActionsSecrets.d.ts +30 -0
  45. package/getActionsSecrets.js +24 -0
  46. package/getActionsSecrets.js.map +1 -0
  47. package/getBranch.d.ts +0 -36
  48. package/getBranch.js +0 -15
  49. package/getBranch.js.map +1 -1
  50. package/getCollaborators.d.ts +0 -36
  51. package/getCollaborators.js +0 -15
  52. package/getCollaborators.js.map +1 -1
  53. package/getExternalGroups.d.ts +0 -17
  54. package/getExternalGroups.js +0 -14
  55. package/getExternalGroups.js.map +1 -1
  56. package/getIpRanges.d.ts +0 -84
  57. package/getIpRanges.js +0 -12
  58. package/getIpRanges.js.map +1 -1
  59. package/getMembership.d.ts +0 -38
  60. package/getMembership.js +0 -17
  61. package/getMembership.js.map +1 -1
  62. package/getOrganization.d.ts +0 -38
  63. package/getOrganization.js +0 -14
  64. package/getOrganization.js.map +1 -1
  65. package/getOrganizationTeamSyncGroups.d.ts +0 -15
  66. package/getOrganizationTeamSyncGroups.js +0 -12
  67. package/getOrganizationTeamSyncGroups.js.map +1 -1
  68. package/getOrganizationTeams.d.ts +0 -38
  69. package/getOrganizationTeams.js +0 -25
  70. package/getOrganizationTeams.js.map +1 -1
  71. package/getRef.d.ts +0 -33
  72. package/getRef.js +0 -15
  73. package/getRef.js.map +1 -1
  74. package/getRelease.d.ts +0 -121
  75. package/getRelease.js +0 -46
  76. package/getRelease.js.map +1 -1
  77. package/getRepositories.d.ts +0 -29
  78. package/getRepositories.js +0 -17
  79. package/getRepositories.js.map +1 -1
  80. package/getRepository.d.ts +0 -132
  81. package/getRepository.js +0 -14
  82. package/getRepository.js.map +1 -1
  83. package/getRepositoryFile.d.ts +0 -55
  84. package/getRepositoryFile.js +0 -17
  85. package/getRepositoryFile.js.map +1 -1
  86. package/getRepositoryMilestone.d.ts +0 -46
  87. package/getRepositoryMilestone.js +0 -16
  88. package/getRepositoryMilestone.js.map +1 -1
  89. package/getRepositoryPullRequest.d.ts +0 -75
  90. package/getRepositoryPullRequest.js +0 -15
  91. package/getRepositoryPullRequest.js.map +1 -1
  92. package/getRepositoryPullRequests.d.ts +0 -72
  93. package/getRepositoryPullRequests.js +0 -18
  94. package/getRepositoryPullRequests.js.map +1 -1
  95. package/getRepositoryTeams.d.ts +30 -0
  96. package/getRepositoryTeams.js +24 -0
  97. package/getRepositoryTeams.js.map +1 -0
  98. package/getTeam.d.ts +0 -47
  99. package/getTeam.js +0 -14
  100. package/getTeam.js.map +1 -1
  101. package/getTree.d.ts +0 -45
  102. package/getTree.js +0 -24
  103. package/getTree.js.map +1 -1
  104. package/getUser.d.ts +0 -87
  105. package/getUser.js +0 -21
  106. package/getUser.js.map +1 -1
  107. package/getUsers.d.ts +0 -37
  108. package/getUsers.js +0 -22
  109. package/getUsers.js.map +1 -1
  110. package/index.d.ts +4 -0
  111. package/index.js +8 -0
  112. package/index.js.map +1 -1
  113. package/issue.d.ts +6 -117
  114. package/issue.js +0 -63
  115. package/issue.js.map +1 -1
  116. package/issueLabel.d.ts +0 -64
  117. package/issueLabel.js +0 -22
  118. package/issueLabel.js.map +1 -1
  119. package/membership.d.ts +0 -49
  120. package/membership.js +0 -28
  121. package/membership.js.map +1 -1
  122. package/organizationBlock.d.ts +0 -23
  123. package/organizationBlock.js +0 -14
  124. package/organizationBlock.js.map +1 -1
  125. package/organizationProject.d.ts +0 -38
  126. package/organizationProject.js +0 -14
  127. package/organizationProject.js.map +1 -1
  128. package/organizationWebhook.d.ts +0 -63
  129. package/organizationWebhook.js +0 -30
  130. package/organizationWebhook.js.map +1 -1
  131. package/package.json +2 -2
  132. package/package.json.dev +2 -2
  133. package/projectCard.d.ts +0 -87
  134. package/projectCard.js +0 -51
  135. package/projectCard.js.map +1 -1
  136. package/projectColumn.d.ts +0 -31
  137. package/projectColumn.js +0 -13
  138. package/projectColumn.js.map +1 -1
  139. package/repository.d.ts +3 -377
  140. package/repository.js +0 -47
  141. package/repository.js.map +1 -1
  142. package/repositoryAutolinkReference.d.ts +6 -40
  143. package/repositoryAutolinkReference.js +0 -28
  144. package/repositoryAutolinkReference.js.map +1 -1
  145. package/repositoryCollaborator.d.ts +0 -90
  146. package/repositoryCollaborator.js +0 -42
  147. package/repositoryCollaborator.js.map +1 -1
  148. package/repositoryDeployKey.d.ts +0 -71
  149. package/repositoryDeployKey.js +0 -35
  150. package/repositoryDeployKey.js.map +1 -1
  151. package/repositoryEnvironment.d.ts +0 -61
  152. package/repositoryEnvironment.js +0 -34
  153. package/repositoryEnvironment.js.map +1 -1
  154. package/repositoryFile.d.ts +28 -68
  155. package/repositoryFile.js +0 -37
  156. package/repositoryFile.js.map +1 -1
  157. package/repositoryMilestone.d.ts +3 -81
  158. package/repositoryMilestone.js +0 -27
  159. package/repositoryMilestone.js.map +1 -1
  160. package/repositoryProject.d.ts +0 -52
  161. package/repositoryProject.js +0 -19
  162. package/repositoryProject.js.map +1 -1
  163. package/repositoryPullRequest.d.ts +4 -127
  164. package/repositoryPullRequest.js +0 -18
  165. package/repositoryPullRequest.js.map +1 -1
  166. package/repositoryTagProtection.d.ts +44 -0
  167. package/repositoryTagProtection.js +59 -0
  168. package/repositoryTagProtection.js.map +1 -0
  169. package/repositoryWebhook.d.ts +0 -79
  170. package/repositoryWebhook.js +0 -37
  171. package/repositoryWebhook.js.map +1 -1
  172. package/team.d.ts +0 -100
  173. package/team.js +0 -27
  174. package/team.js.map +1 -1
  175. package/teamMembers.d.ts +0 -58
  176. package/teamMembers.js +0 -40
  177. package/teamMembers.js.map +1 -1
  178. package/teamMembership.d.ts +0 -67
  179. package/teamMembership.js +0 -37
  180. package/teamMembership.js.map +1 -1
  181. package/teamRepository.d.ts +3 -59
  182. package/teamRepository.js +0 -35
  183. package/teamRepository.js.map +1 -1
  184. package/teamSyncGroupMapping.d.ts +0 -36
  185. package/teamSyncGroupMapping.js +0 -15
  186. package/teamSyncGroupMapping.js.map +1 -1
  187. package/types/input.d.ts +0 -86
  188. package/types/output.d.ts +16 -237
  189. package/userGpgKey.d.ts +0 -40
  190. package/userGpgKey.js +0 -22
  191. package/userGpgKey.js.map +1 -1
  192. package/userInvitationAccepter.d.ts +0 -30
  193. package/userInvitationAccepter.js +0 -21
  194. package/userInvitationAccepter.js.map +1 -1
  195. package/userSshKey.d.ts +0 -50
  196. package/userSshKey.js +0 -26
  197. package/userSshKey.js.map +1 -1
@@ -1,71 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
- /**
4
- * Protects a GitHub branch.
5
- *
6
- * The `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
7
- *
8
- * This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
9
- *
10
- * ## Example Usage
11
- *
12
- * ```typescript
13
- * import * as pulumi from "@pulumi/pulumi";
14
- * import * as github from "@pulumi/github";
15
- *
16
- * // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
17
- * const example = new github.BranchProtectionV3("example", {
18
- * repository: github_repository.example.name,
19
- * branch: "main",
20
- * restrictions: {
21
- * users: ["foo-user"],
22
- * },
23
- * });
24
- * ```
25
- *
26
- * ```typescript
27
- * import * as pulumi from "@pulumi/pulumi";
28
- * import * as github from "@pulumi/github";
29
- *
30
- * const exampleRepository = new github.Repository("exampleRepository", {});
31
- * const exampleTeam = new github.Team("exampleTeam", {});
32
- * // Protect the main branch of the foo repository. Additionally, require that
33
- * // the "ci/travis" context to be passing and only allow the engineers team merge
34
- * // to the branch.
35
- * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
36
- * repository: exampleRepository.name,
37
- * branch: "main",
38
- * enforceAdmins: true,
39
- * requiredStatusChecks: {
40
- * strict: false,
41
- * contexts: ["ci/travis"],
42
- * },
43
- * requiredPullRequestReviews: {
44
- * dismissStaleReviews: true,
45
- * dismissalUsers: ["foo-user"],
46
- * dismissalTeams: [exampleTeam.slug],
47
- * },
48
- * restrictions: {
49
- * users: ["foo-user"],
50
- * teams: [exampleTeam.slug],
51
- * apps: ["foo-app"],
52
- * },
53
- * });
54
- * const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
55
- * teamId: exampleTeam.id,
56
- * repository: exampleRepository.name,
57
- * permission: "pull",
58
- * });
59
- * ```
60
- *
61
- * ## Import
62
- *
63
- * GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
64
- *
65
- * ```sh
66
- * $ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main
67
- * ```
68
- */
69
3
  export declare class BranchProtectionV3 extends pulumi.CustomResource {
70
4
  /**
71
5
  * Get an existing BranchProtectionV3 resource's state with the given name, ID, and optional extra
@@ -82,38 +16,14 @@ export declare class BranchProtectionV3 extends pulumi.CustomResource {
82
16
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
83
17
  */
84
18
  static isInstance(obj: any): obj is BranchProtectionV3;
85
- /**
86
- * The Git branch to protect.
87
- */
88
19
  readonly branch: pulumi.Output<string>;
89
- /**
90
- * Boolean, setting this to `true` enforces status checks for repository administrators.
91
- */
92
20
  readonly enforceAdmins: pulumi.Output<boolean | undefined>;
93
21
  readonly etag: pulumi.Output<string>;
94
- /**
95
- * The GitHub repository name.
96
- */
97
22
  readonly repository: pulumi.Output<string>;
98
- /**
99
- * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
100
- */
101
23
  readonly requireConversationResolution: pulumi.Output<boolean | undefined>;
102
- /**
103
- * Boolean, setting this to `true` requires all commits to be signed with GPG.
104
- */
105
24
  readonly requireSignedCommits: pulumi.Output<boolean | undefined>;
106
- /**
107
- * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
108
- */
109
25
  readonly requiredPullRequestReviews: pulumi.Output<outputs.BranchProtectionV3RequiredPullRequestReviews | undefined>;
110
- /**
111
- * Enforce restrictions for required status checks. See Required Status Checks below for details.
112
- */
113
26
  readonly requiredStatusChecks: pulumi.Output<outputs.BranchProtectionV3RequiredStatusChecks | undefined>;
114
- /**
115
- * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
116
- */
117
27
  readonly restrictions: pulumi.Output<outputs.BranchProtectionV3Restrictions | undefined>;
118
28
  /**
119
29
  * Create a BranchProtectionV3 resource with the given unique name, arguments, and options.
@@ -128,74 +38,26 @@ export declare class BranchProtectionV3 extends pulumi.CustomResource {
128
38
  * Input properties used for looking up and filtering BranchProtectionV3 resources.
129
39
  */
130
40
  export interface BranchProtectionV3State {
131
- /**
132
- * The Git branch to protect.
133
- */
134
41
  branch?: pulumi.Input<string>;
135
- /**
136
- * Boolean, setting this to `true` enforces status checks for repository administrators.
137
- */
138
42
  enforceAdmins?: pulumi.Input<boolean>;
139
43
  etag?: pulumi.Input<string>;
140
- /**
141
- * The GitHub repository name.
142
- */
143
44
  repository?: pulumi.Input<string>;
144
- /**
145
- * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
146
- */
147
45
  requireConversationResolution?: pulumi.Input<boolean>;
148
- /**
149
- * Boolean, setting this to `true` requires all commits to be signed with GPG.
150
- */
151
46
  requireSignedCommits?: pulumi.Input<boolean>;
152
- /**
153
- * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
154
- */
155
47
  requiredPullRequestReviews?: pulumi.Input<inputs.BranchProtectionV3RequiredPullRequestReviews>;
156
- /**
157
- * Enforce restrictions for required status checks. See Required Status Checks below for details.
158
- */
159
48
  requiredStatusChecks?: pulumi.Input<inputs.BranchProtectionV3RequiredStatusChecks>;
160
- /**
161
- * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
162
- */
163
49
  restrictions?: pulumi.Input<inputs.BranchProtectionV3Restrictions>;
164
50
  }
165
51
  /**
166
52
  * The set of arguments for constructing a BranchProtectionV3 resource.
167
53
  */
168
54
  export interface BranchProtectionV3Args {
169
- /**
170
- * The Git branch to protect.
171
- */
172
55
  branch: pulumi.Input<string>;
173
- /**
174
- * Boolean, setting this to `true` enforces status checks for repository administrators.
175
- */
176
56
  enforceAdmins?: pulumi.Input<boolean>;
177
- /**
178
- * The GitHub repository name.
179
- */
180
57
  repository: pulumi.Input<string>;
181
- /**
182
- * Boolean, setting this to `true` requires all conversations on code must be resolved before a pull request can be merged.
183
- */
184
58
  requireConversationResolution?: pulumi.Input<boolean>;
185
- /**
186
- * Boolean, setting this to `true` requires all commits to be signed with GPG.
187
- */
188
59
  requireSignedCommits?: pulumi.Input<boolean>;
189
- /**
190
- * Enforce restrictions for pull request reviews. See Required Pull Request Reviews below for details.
191
- */
192
60
  requiredPullRequestReviews?: pulumi.Input<inputs.BranchProtectionV3RequiredPullRequestReviews>;
193
- /**
194
- * Enforce restrictions for required status checks. See Required Status Checks below for details.
195
- */
196
61
  requiredStatusChecks?: pulumi.Input<inputs.BranchProtectionV3RequiredStatusChecks>;
197
- /**
198
- * Enforce restrictions for the users and teams that may push to the branch. See Restrictions below for details.
199
- */
200
62
  restrictions?: pulumi.Input<inputs.BranchProtectionV3Restrictions>;
201
63
  }
@@ -5,72 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.BranchProtectionV3 = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Protects a GitHub branch.
10
- *
11
- * The `github.BranchProtection` resource has moved to the GraphQL API, while this resource will continue to leverage the REST API.
12
- *
13
- * This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
14
- *
15
- * ## Example Usage
16
- *
17
- * ```typescript
18
- * import * as pulumi from "@pulumi/pulumi";
19
- * import * as github from "@pulumi/github";
20
- *
21
- * // Protect the main branch of the foo repository. Only allow a specific user to merge to the branch.
22
- * const example = new github.BranchProtectionV3("example", {
23
- * repository: github_repository.example.name,
24
- * branch: "main",
25
- * restrictions: {
26
- * users: ["foo-user"],
27
- * },
28
- * });
29
- * ```
30
- *
31
- * ```typescript
32
- * import * as pulumi from "@pulumi/pulumi";
33
- * import * as github from "@pulumi/github";
34
- *
35
- * const exampleRepository = new github.Repository("exampleRepository", {});
36
- * const exampleTeam = new github.Team("exampleTeam", {});
37
- * // Protect the main branch of the foo repository. Additionally, require that
38
- * // the "ci/travis" context to be passing and only allow the engineers team merge
39
- * // to the branch.
40
- * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
41
- * repository: exampleRepository.name,
42
- * branch: "main",
43
- * enforceAdmins: true,
44
- * requiredStatusChecks: {
45
- * strict: false,
46
- * contexts: ["ci/travis"],
47
- * },
48
- * requiredPullRequestReviews: {
49
- * dismissStaleReviews: true,
50
- * dismissalUsers: ["foo-user"],
51
- * dismissalTeams: [exampleTeam.slug],
52
- * },
53
- * restrictions: {
54
- * users: ["foo-user"],
55
- * teams: [exampleTeam.slug],
56
- * apps: ["foo-app"],
57
- * },
58
- * });
59
- * const exampleTeamRepository = new github.TeamRepository("exampleTeamRepository", {
60
- * teamId: exampleTeam.id,
61
- * repository: exampleRepository.name,
62
- * permission: "pull",
63
- * });
64
- * ```
65
- *
66
- * ## Import
67
- *
68
- * GitHub Branch Protection can be imported using an ID made up of `repository:branch`, e.g.
69
- *
70
- * ```sh
71
- * $ pulumi import github:index/branchProtectionV3:BranchProtectionV3 terraform terraform:main
72
- * ```
73
- */
74
8
  class BranchProtectionV3 extends pulumi.CustomResource {
75
9
  constructor(name, argsOrState, opts) {
76
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC;IACvE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAiFC;AAnEG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
@@ -1,27 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the API detailed [here](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as github from "@pulumi/github";
10
- *
11
- * const exampleEmuGroupMapping = new github.EmuGroupMapping("example_emu_group_mapping", {
12
- * groupId: 28836, // The group ID of the external group to link
13
- * teamSlug: "emu-test-team", // The GitHub team name to modify
14
- * });
15
- * ```
16
- *
17
- * ## Import
18
- *
19
- * GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
20
- *
21
- * ```sh
22
- * $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
23
- * ```
24
- */
25
2
  export declare class EmuGroupMapping extends pulumi.CustomResource {
26
3
  /**
27
4
  * Get an existing EmuGroupMapping resource's state with the given name, ID, and optional extra
@@ -39,13 +16,7 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
39
16
  */
40
17
  static isInstance(obj: any): obj is EmuGroupMapping;
41
18
  readonly etag: pulumi.Output<string>;
42
- /**
43
- * Integer corresponding to the external group ID to be linked
44
- */
45
19
  readonly groupId: pulumi.Output<number>;
46
- /**
47
- * Slug of the GitHub team
48
- */
49
20
  readonly teamSlug: pulumi.Output<string>;
50
21
  /**
51
22
  * Create a EmuGroupMapping resource with the given unique name, arguments, and options.
@@ -61,25 +32,13 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
61
32
  */
62
33
  export interface EmuGroupMappingState {
63
34
  etag?: pulumi.Input<string>;
64
- /**
65
- * Integer corresponding to the external group ID to be linked
66
- */
67
35
  groupId?: pulumi.Input<number>;
68
- /**
69
- * Slug of the GitHub team
70
- */
71
36
  teamSlug?: pulumi.Input<string>;
72
37
  }
73
38
  /**
74
39
  * The set of arguments for constructing a EmuGroupMapping resource.
75
40
  */
76
41
  export interface EmuGroupMappingArgs {
77
- /**
78
- * Integer corresponding to the external group ID to be linked
79
- */
80
42
  groupId: pulumi.Input<number>;
81
- /**
82
- * Slug of the GitHub team
83
- */
84
43
  teamSlug: pulumi.Input<string>;
85
44
  }
@@ -5,29 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.EmuGroupMapping = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the API detailed [here](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as github from "@pulumi/github";
16
- *
17
- * const exampleEmuGroupMapping = new github.EmuGroupMapping("example_emu_group_mapping", {
18
- * groupId: 28836, // The group ID of the external group to link
19
- * teamSlug: "emu-test-team", // The GitHub team name to modify
20
- * });
21
- * ```
22
- *
23
- * ## Import
24
- *
25
- * GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
26
- *
27
- * ```sh
28
- * $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
29
- * ```
30
- */
31
8
  class EmuGroupMapping extends pulumi.CustomResource {
32
9
  constructor(name, argsOrState, opts) {
33
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA8CtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAA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AAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IA7DD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CA+DC;AAjDG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ export declare function getActionsOrganizationSecrets(opts?: pulumi.InvokeOptions): Promise<GetActionsOrganizationSecretsResult>;
4
+ /**
5
+ * A collection of values returned by getActionsOrganizationSecrets.
6
+ */
7
+ export interface GetActionsOrganizationSecretsResult {
8
+ /**
9
+ * The provider-assigned unique ID for this managed resource.
10
+ */
11
+ readonly id: string;
12
+ readonly secrets: outputs.GetActionsOrganizationSecretsSecret[];
13
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getActionsOrganizationSecrets = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getActionsOrganizationSecrets(opts) {
9
+ if (!opts) {
10
+ opts = {};
11
+ }
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
13
+ return pulumi.runtime.invoke("github:index/getActionsOrganizationSecrets:getActionsOrganizationSecrets", {}, opts);
14
+ }
15
+ exports.getActionsOrganizationSecrets = getActionsOrganizationSecrets;
16
+ //# sourceMappingURL=getActionsOrganizationSecrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionsOrganizationSecrets.js","sourceRoot":"","sources":["../getActionsOrganizationSecrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,6BAA6B,CAAC,IAA2B;IACrE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sEAQC"}
@@ -1,27 +1,9 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
4
- * Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
5
- *
6
- * ## Example Usage
7
- *
8
- * ```typescript
9
- * import * as pulumi from "@pulumi/pulumi";
10
- * import * as github from "@pulumi/github";
11
- *
12
- * const example = pulumi.output(github.getActionsPublicKey({
13
- * repository: "example_repo",
14
- * }));
15
- * ```
16
- */
17
2
  export declare function getActionsPublicKey(args: GetActionsPublicKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetActionsPublicKeyResult>;
18
3
  /**
19
4
  * A collection of arguments for invoking getActionsPublicKey.
20
5
  */
21
6
  export interface GetActionsPublicKeyArgs {
22
- /**
23
- * Name of the repository to get public key from.
24
- */
25
7
  repository: string;
26
8
  }
27
9
  /**
@@ -32,13 +14,7 @@ export interface GetActionsPublicKeyResult {
32
14
  * The provider-assigned unique ID for this managed resource.
33
15
  */
34
16
  readonly id: string;
35
- /**
36
- * Actual key retrieved.
37
- */
38
17
  readonly key: string;
39
- /**
40
- * ID of the key that has been retrieved.
41
- */
42
18
  readonly keyId: string;
43
19
  readonly repository: string;
44
20
  }
@@ -47,8 +23,5 @@ export declare function getActionsPublicKeyOutput(args: GetActionsPublicKeyOutpu
47
23
  * A collection of arguments for invoking getActionsPublicKey.
48
24
  */
49
25
  export interface GetActionsPublicKeyOutputArgs {
50
- /**
51
- * Name of the repository to get public key from.
52
- */
53
26
  repository: pulumi.Input<string>;
54
27
  }
@@ -5,21 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getActionsPublicKeyOutput = exports.getActionsPublicKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
10
- * Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
11
- *
12
- * ## Example Usage
13
- *
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as github from "@pulumi/github";
17
- *
18
- * const example = pulumi.output(github.getActionsPublicKey({
19
- * repository: "example_repo",
20
- * }));
21
- * ```
22
- */
23
8
  function getActionsPublicKey(args, opts) {
24
9
  if (!opts) {
25
10
  opts = {};
@@ -1 +1 @@
1
- {"version":3,"file":"getActionsPublicKey.js","sourceRoot":"","sources":["../getActionsPublicKey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G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
@@ -0,0 +1,30 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ export declare function getActionsSecrets(args?: GetActionsSecretsArgs, opts?: pulumi.InvokeOptions): Promise<GetActionsSecretsResult>;
4
+ /**
5
+ * A collection of arguments for invoking getActionsSecrets.
6
+ */
7
+ export interface GetActionsSecretsArgs {
8
+ fullName?: string;
9
+ name?: string;
10
+ }
11
+ /**
12
+ * A collection of values returned by getActionsSecrets.
13
+ */
14
+ export interface GetActionsSecretsResult {
15
+ readonly fullName: string;
16
+ /**
17
+ * The provider-assigned unique ID for this managed resource.
18
+ */
19
+ readonly id: string;
20
+ readonly name: string;
21
+ readonly secrets: outputs.GetActionsSecretsSecret[];
22
+ }
23
+ export declare function getActionsSecretsOutput(args?: GetActionsSecretsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetActionsSecretsResult>;
24
+ /**
25
+ * A collection of arguments for invoking getActionsSecrets.
26
+ */
27
+ export interface GetActionsSecretsOutputArgs {
28
+ fullName?: pulumi.Input<string>;
29
+ name?: pulumi.Input<string>;
30
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getActionsSecretsOutput = exports.getActionsSecrets = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getActionsSecrets(args, opts) {
9
+ args = args || {};
10
+ if (!opts) {
11
+ opts = {};
12
+ }
13
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
14
+ return pulumi.runtime.invoke("github:index/getActionsSecrets:getActionsSecrets", {
15
+ "fullName": args.fullName,
16
+ "name": args.name,
17
+ }, opts);
18
+ }
19
+ exports.getActionsSecrets = getActionsSecrets;
20
+ function getActionsSecretsOutput(args, opts) {
21
+ return pulumi.output(args).apply(a => getActionsSecrets(a, opts));
22
+ }
23
+ exports.getActionsSecretsOutput = getActionsSecretsOutput;
24
+ //# sourceMappingURL=getActionsSecrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionsSecrets.js","sourceRoot":"","sources":["../getActionsSecrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8CAWC;AAuBD,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,0DAEC"}
package/getBranch.d.ts CHANGED
@@ -1,31 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Use this data source to retrieve information about a repository branch.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as github from "@pulumi/github";
10
- *
11
- * const development = pulumi.output(github.getBranch({
12
- * branch: "development",
13
- * repository: "example",
14
- * }));
15
- * ```
16
- */
17
2
  export declare function getBranch(args: GetBranchArgs, opts?: pulumi.InvokeOptions): Promise<GetBranchResult>;
18
3
  /**
19
4
  * A collection of arguments for invoking getBranch.
20
5
  */
21
6
  export interface GetBranchArgs {
22
- /**
23
- * The repository branch to create.
24
- */
25
7
  branch: string;
26
- /**
27
- * The GitHub repository name.
28
- */
29
8
  repository: string;
30
9
  }
31
10
  /**
@@ -33,22 +12,13 @@ export interface GetBranchArgs {
33
12
  */
34
13
  export interface GetBranchResult {
35
14
  readonly branch: string;
36
- /**
37
- * An etag representing the Branch object.
38
- */
39
15
  readonly etag: string;
40
16
  /**
41
17
  * The provider-assigned unique ID for this managed resource.
42
18
  */
43
19
  readonly id: string;
44
- /**
45
- * A string representing a branch reference, in the form of `refs/heads/<branch>`.
46
- */
47
20
  readonly ref: string;
48
21
  readonly repository: string;
49
- /**
50
- * A string storing the reference's `HEAD` commit's SHA1.
51
- */
52
22
  readonly sha: string;
53
23
  }
54
24
  export declare function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBranchResult>;
@@ -56,12 +26,6 @@ export declare function getBranchOutput(args: GetBranchOutputArgs, opts?: pulumi
56
26
  * A collection of arguments for invoking getBranch.
57
27
  */
58
28
  export interface GetBranchOutputArgs {
59
- /**
60
- * The repository branch to create.
61
- */
62
29
  branch: pulumi.Input<string>;
63
- /**
64
- * The GitHub repository name.
65
- */
66
30
  repository: pulumi.Input<string>;
67
31
  }
package/getBranch.js CHANGED
@@ -5,21 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getBranchOutput = exports.getBranch = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Use this data source to retrieve information about a repository branch.
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as github from "@pulumi/github";
16
- *
17
- * const development = pulumi.output(github.getBranch({
18
- * branch: "development",
19
- * repository: "example",
20
- * }));
21
- * ```
22
- */
23
8
  function getBranch(args, opts) {
24
9
  if (!opts) {
25
10
  opts = {};
package/getBranch.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AAwCD,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
1
+ {"version":3,"file":"getBranch.js","sourceRoot":"","sources":["../getBranch.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,E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