@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
package/types/input.d.ts CHANGED
@@ -1,23 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs } from "../types";
3
3
  export interface ActionsOrganizationPermissionsAllowedActionsConfig {
4
- /**
5
- * Whether GitHub-owned actions are allowed in the organization.
6
- */
7
4
  githubOwnedAllowed: pulumi.Input<boolean>;
8
- /**
9
- * Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
10
- */
11
5
  patternsAlloweds?: pulumi.Input<pulumi.Input<string>[]>;
12
- /**
13
- * Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
14
- */
15
6
  verifiedAllowed?: pulumi.Input<boolean>;
16
7
  }
17
8
  export interface ActionsOrganizationPermissionsEnabledRepositoriesConfig {
18
- /**
19
- * List of repository IDs to enable for GitHub Actions.
20
- */
21
9
  repositoryIds: pulumi.Input<pulumi.Input<number>[]>;
22
10
  }
23
11
  export interface BranchProtectionRequiredPullRequestReview {
@@ -60,9 +48,6 @@ export interface OrganizationWebhookConfiguration {
60
48
  contentType?: pulumi.Input<string>;
61
49
  insecureSsl?: pulumi.Input<boolean>;
62
50
  secret?: pulumi.Input<string>;
63
- /**
64
- * URL of the webhook
65
- */
66
51
  url: pulumi.Input<string>;
67
52
  }
68
53
  export interface ProviderAppAuth {
@@ -70,67 +55,24 @@ export interface ProviderAppAuth {
70
55
  installationId: pulumi.Input<string>;
71
56
  pemFile: pulumi.Input<string>;
72
57
  }
73
- export interface RepositoryBranch {
74
- /**
75
- * The name of the repository.
76
- */
77
- name?: pulumi.Input<string>;
78
- /**
79
- * Whether the branch is protected.
80
- */
81
- protected?: pulumi.Input<boolean>;
82
- }
83
58
  export interface RepositoryEnvironmentDeploymentBranchPolicy {
84
- /**
85
- * Whether only branches that match the specified name patterns can deploy to this environment.
86
- */
87
59
  customBranchPolicies: pulumi.Input<boolean>;
88
- /**
89
- * Whether only branches with branch protection rules can deploy to this environment.
90
- */
91
60
  protectedBranches: pulumi.Input<boolean>;
92
61
  }
93
62
  export interface RepositoryEnvironmentReviewer {
94
- /**
95
- * Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
96
- */
97
63
  teams?: pulumi.Input<pulumi.Input<number>[]>;
98
- /**
99
- * Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
100
- */
101
64
  users?: pulumi.Input<pulumi.Input<number>[]>;
102
65
  }
103
66
  export interface RepositoryPages {
104
- /**
105
- * The custom domain for the repository. This can only be set after the repository has been created.
106
- */
107
67
  cname?: pulumi.Input<string>;
108
- /**
109
- * Whether the rendered GitHub Pages site has a custom 404 page.
110
- */
111
68
  custom404?: pulumi.Input<boolean>;
112
- /**
113
- * The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
114
- */
115
69
  htmlUrl?: pulumi.Input<string>;
116
- /**
117
- * The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
118
- */
119
70
  source: pulumi.Input<inputs.RepositoryPagesSource>;
120
- /**
121
- * The GitHub Pages site's build status e.g. `building` or `built`.
122
- */
123
71
  status?: pulumi.Input<string>;
124
72
  url?: pulumi.Input<string>;
125
73
  }
126
74
  export interface RepositoryPagesSource {
127
- /**
128
- * The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
129
- */
130
75
  branch: pulumi.Input<string>;
131
- /**
132
- * The repository directory from which the site publishes (Default: `/`).
133
- */
134
76
  path?: pulumi.Input<string>;
135
77
  }
136
78
  export interface RepositoryTemplate {
@@ -138,46 +80,18 @@ export interface RepositoryTemplate {
138
80
  repository: pulumi.Input<string>;
139
81
  }
140
82
  export interface RepositoryWebhookConfiguration {
141
- /**
142
- * The content type for the payload. Valid values are either `form` or `json`.
143
- */
144
83
  contentType?: pulumi.Input<string>;
145
- /**
146
- * Insecure SSL boolean toggle. Defaults to `false`.
147
- */
148
84
  insecureSsl?: pulumi.Input<boolean>;
149
- /**
150
- * The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).
151
- */
152
85
  secret?: pulumi.Input<string>;
153
- /**
154
- * The URL of the webhook.
155
- */
156
86
  url: pulumi.Input<string>;
157
87
  }
158
88
  export interface TeamMembersMember {
159
- /**
160
- * The role of the user within the team.
161
- * Must be one of `member` or `maintainer`. Defaults to `member`.
162
- */
163
89
  role?: pulumi.Input<string>;
164
- /**
165
- * The user to add to the team.
166
- */
167
90
  username: pulumi.Input<string>;
168
91
  }
169
92
  export interface TeamSyncGroupMappingGroup {
170
- /**
171
- * The description of the IdP group.
172
- */
173
93
  groupDescription: pulumi.Input<string>;
174
- /**
175
- * The ID of the IdP group.
176
- */
177
94
  groupId: pulumi.Input<string>;
178
- /**
179
- * The name of the IdP group.
180
- */
181
95
  groupName: pulumi.Input<string>;
182
96
  }
183
97
  export declare namespace config {
package/types/output.d.ts CHANGED
@@ -1,22 +1,10 @@
1
1
  import { output as outputs } from "../types";
2
2
  export interface ActionsOrganizationPermissionsAllowedActionsConfig {
3
- /**
4
- * Whether GitHub-owned actions are allowed in the organization.
5
- */
6
3
  githubOwnedAllowed: boolean;
7
- /**
8
- * Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, monalisa/octocat@*, monalisa/octocat@v2, monalisa/*."
9
- */
10
4
  patternsAlloweds?: string[];
11
- /**
12
- * Whether actions in GitHub Marketplace from verified creators are allowed. Set to true to allow all GitHub Marketplace actions by verified creators.
13
- */
14
5
  verifiedAllowed?: boolean;
15
6
  }
16
7
  export interface ActionsOrganizationPermissionsEnabledRepositoriesConfig {
17
- /**
18
- * List of repository IDs to enable for GitHub Actions.
19
- */
20
8
  repositoryIds: number[];
21
9
  }
22
10
  export interface BranchProtectionRequiredPullRequestReview {
@@ -55,150 +43,58 @@ export interface BranchProtectionV3Restrictions {
55
43
  teams?: string[];
56
44
  users?: string[];
57
45
  }
46
+ export interface GetActionsOrganizationSecretsSecret {
47
+ createdAt: string;
48
+ name: string;
49
+ updatedAt: string;
50
+ visibility: string;
51
+ }
52
+ export interface GetActionsSecretsSecret {
53
+ createdAt: string;
54
+ name: string;
55
+ updatedAt: string;
56
+ }
58
57
  export interface GetCollaboratorsCollaborator {
59
- /**
60
- * The GitHub API URL for the collaborator's events.
61
- */
62
58
  eventsUrl: string;
63
- /**
64
- * The GitHub API URL for the collaborator's followers.
65
- */
66
59
  followersUrl: string;
67
- /**
68
- * The GitHub API URL for those following the collaborator.
69
- */
70
60
  followingUrl: string;
71
- /**
72
- * The GitHub API URL for the collaborator's gists.
73
- */
74
61
  gistsUrl: string;
75
- /**
76
- * The GitHub HTML URL for the collaborator.
77
- */
78
62
  htmlUrl: string;
79
- /**
80
- * The ID of the collaborator.
81
- */
82
63
  id: number;
83
- /**
84
- * The collaborator's login.
85
- */
86
64
  login: string;
87
- /**
88
- * The GitHub API URL for the collaborator's organizations.
89
- */
90
65
  organizationsUrl: string;
91
- /**
92
- * The permission of the collaborator.
93
- */
94
66
  permission: string;
95
- /**
96
- * The GitHub API URL for the collaborator's received events.
97
- */
98
67
  receivedEventsUrl: string;
99
- /**
100
- * The GitHub API URL for the collaborator's repositories.
101
- */
102
68
  reposUrl: string;
103
- /**
104
- * Whether the user is a GitHub admin.
105
- */
106
69
  siteAdmin: boolean;
107
- /**
108
- * The GitHub API URL for the collaborator's starred repositories.
109
- */
110
70
  starredUrl: string;
111
- /**
112
- * The GitHub API URL for the collaborator's subscribed repositories.
113
- */
114
71
  subscriptionsUrl: string;
115
- /**
116
- * The type of the collaborator (ex. `user`).
117
- */
118
72
  type: string;
119
- /**
120
- * The GitHub API URL for the collaborator.
121
- */
122
73
  url: string;
123
74
  }
124
75
  export interface GetExternalGroupsExternalGroup {
125
- /**
126
- * the ID of the group.
127
- */
128
76
  groupId: number;
129
- /**
130
- * the name of the group.
131
- */
132
77
  groupName: string;
133
- /**
134
- * the date the group was last updated.
135
- */
136
78
  updatedAt: string;
137
79
  }
138
80
  export interface GetOrganizationTeamSyncGroupsGroup {
139
- /**
140
- * The description of the IdP group.
141
- */
142
81
  groupDescription: string;
143
- /**
144
- * The ID of the IdP group.
145
- */
146
82
  groupId: string;
147
- /**
148
- * The name of the IdP group.
149
- */
150
83
  groupName: string;
151
84
  }
152
85
  export interface GetOrganizationTeamsTeam {
153
- /**
154
- * the team's description.
155
- */
156
86
  description: string;
157
- /**
158
- * the ID of the team.
159
- */
160
87
  id: number;
161
- /**
162
- * List of team members.
163
- */
164
88
  members: string[];
165
- /**
166
- * the team's full name.
167
- */
168
89
  name: string;
169
- /**
170
- * the Node ID of the team.
171
- */
172
90
  nodeId: string;
173
- /**
174
- * the team's privacy type.
175
- */
176
91
  privacy: string;
177
- /**
178
- * List of team repositories.
179
- */
180
92
  repositories: string[];
181
- /**
182
- * the slug of the team.
183
- */
184
93
  slug: string;
185
94
  }
186
- export interface GetRepositoryBranch {
187
- /**
188
- * The name of the repository.
189
- */
190
- name: string;
191
- /**
192
- * Whether the branch is protected.
193
- */
194
- protected: boolean;
195
- }
196
95
  export interface GetRepositoryPage {
197
96
  cname: string;
198
97
  custom404: boolean;
199
- /**
200
- * URL to the repository on the web.
201
- */
202
98
  htmlUrl: string;
203
99
  sources: outputs.GetRepositoryPageSource[];
204
100
  status: string;
@@ -209,71 +105,28 @@ export interface GetRepositoryPageSource {
209
105
  path: string;
210
106
  }
211
107
  export interface GetRepositoryPullRequestsResult {
212
- /**
213
- * If set, filters Pull Requests by base branch name.
214
- */
215
108
  baseRef: string;
216
- /**
217
- * Head commit SHA of the Pull Request base.
218
- */
219
109
  baseSha: string;
220
- /**
221
- * Body of the Pull Request.
222
- */
223
110
  body: string;
224
- /**
225
- * Indicates Whether this Pull Request is a draft.
226
- */
227
111
  draft: boolean;
228
- /**
229
- * Owner of the Pull Request head repository.
230
- */
231
112
  headOwner: string;
232
- /**
233
- * If set, filters Pull Requests by head user or head organization and branch name in the format of "user:ref-name" or "organization:ref-name". For example: "github:new-script-format" or "octocat:test-branch".
234
- */
235
113
  headRef: string;
236
- /**
237
- * Name of the Pull Request head repository.
238
- */
239
114
  headRepository: string;
240
- /**
241
- * Head commit SHA of the Pull Request head.
242
- */
243
115
  headSha: string;
244
- /**
245
- * List of label names set on the Pull Request.
246
- */
247
116
  labels: string[];
248
- /**
249
- * Indicates whether the base repository maintainers can modify the Pull Request.
250
- */
251
117
  maintainerCanModify: boolean;
252
- /**
253
- * The number of the Pull Request within the repository.
254
- */
255
118
  number: number;
256
- /**
257
- * Unix timestamp indicating the Pull Request creation time.
258
- */
259
119
  openedAt: number;
260
- /**
261
- * GitHub login of the user who opened the Pull Request.
262
- */
263
120
  openedBy: string;
264
- /**
265
- * If set, filters Pull Requests by state. Can be "open", "closed", or "all". Default: "open".
266
- */
267
121
  state: string;
268
- /**
269
- * The title of the Pull Request.
270
- */
271
122
  title: string;
272
- /**
273
- * The timestamp of the last Pull Request update.
274
- */
275
123
  updatedAt: number;
276
124
  }
125
+ export interface GetRepositoryTeamsTeam {
126
+ name: string;
127
+ permission: string;
128
+ slug: string;
129
+ }
277
130
  export interface GetTreeEntry {
278
131
  mode: string;
279
132
  path: string;
@@ -285,72 +138,26 @@ export interface OrganizationWebhookConfiguration {
285
138
  contentType?: string;
286
139
  insecureSsl?: boolean;
287
140
  secret?: string;
288
- /**
289
- * URL of the webhook
290
- */
291
141
  url: string;
292
142
  }
293
- export interface RepositoryBranch {
294
- /**
295
- * The name of the repository.
296
- */
297
- name: string;
298
- /**
299
- * Whether the branch is protected.
300
- */
301
- protected: boolean;
302
- }
303
143
  export interface RepositoryEnvironmentDeploymentBranchPolicy {
304
- /**
305
- * Whether only branches that match the specified name patterns can deploy to this environment.
306
- */
307
144
  customBranchPolicies: boolean;
308
- /**
309
- * Whether only branches with branch protection rules can deploy to this environment.
310
- */
311
145
  protectedBranches: boolean;
312
146
  }
313
147
  export interface RepositoryEnvironmentReviewer {
314
- /**
315
- * Up to 6 IDs for teams who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
316
- */
317
148
  teams?: number[];
318
- /**
319
- * Up to 6 IDs for users who may review jobs that reference the environment. Reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
320
- */
321
149
  users?: number[];
322
150
  }
323
151
  export interface RepositoryPages {
324
- /**
325
- * The custom domain for the repository. This can only be set after the repository has been created.
326
- */
327
152
  cname?: string;
328
- /**
329
- * Whether the rendered GitHub Pages site has a custom 404 page.
330
- */
331
153
  custom404: boolean;
332
- /**
333
- * The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
334
- */
335
154
  htmlUrl: string;
336
- /**
337
- * The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
338
- */
339
155
  source: outputs.RepositoryPagesSource;
340
- /**
341
- * The GitHub Pages site's build status e.g. `building` or `built`.
342
- */
343
156
  status: string;
344
157
  url: string;
345
158
  }
346
159
  export interface RepositoryPagesSource {
347
- /**
348
- * The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
349
- */
350
160
  branch: string;
351
- /**
352
- * The repository directory from which the site publishes (Default: `/`).
353
- */
354
161
  path?: string;
355
162
  }
356
163
  export interface RepositoryTemplate {
@@ -358,46 +165,18 @@ export interface RepositoryTemplate {
358
165
  repository: string;
359
166
  }
360
167
  export interface RepositoryWebhookConfiguration {
361
- /**
362
- * The content type for the payload. Valid values are either `form` or `json`.
363
- */
364
168
  contentType?: string;
365
- /**
366
- * Insecure SSL boolean toggle. Defaults to `false`.
367
- */
368
169
  insecureSsl?: boolean;
369
- /**
370
- * The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).
371
- */
372
170
  secret?: string;
373
- /**
374
- * The URL of the webhook.
375
- */
376
171
  url: string;
377
172
  }
378
173
  export interface TeamMembersMember {
379
- /**
380
- * The role of the user within the team.
381
- * Must be one of `member` or `maintainer`. Defaults to `member`.
382
- */
383
174
  role?: string;
384
- /**
385
- * The user to add to the team.
386
- */
387
175
  username: string;
388
176
  }
389
177
  export interface TeamSyncGroupMappingGroup {
390
- /**
391
- * The description of the IdP group.
392
- */
393
178
  groupDescription: string;
394
- /**
395
- * The ID of the IdP group.
396
- */
397
179
  groupId: string;
398
- /**
399
- * The name of the IdP group.
400
- */
401
180
  groupName: string;
402
181
  }
403
182
  export declare namespace config {
package/userGpgKey.d.ts CHANGED
@@ -1,26 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Provides a GitHub user's GPG key resource.
4
- *
5
- * This resource allows you to add/remove GPG keys from your user account.
6
- *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as github from "@pulumi/github";
12
- *
13
- * const example = new github.UserGpgKey("example", {
14
- * armoredPublicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----
15
- * ...
16
- * -----END PGP PUBLIC KEY BLOCK-----`,
17
- * });
18
- * ```
19
- *
20
- * ## Import
21
- *
22
- * GPG keys are not importable due to the fact that [API](https://developer.github.com/v3/users/gpg_keys/#gpg-keys) does not return previously uploaded GPG key.
23
- */
24
2
  export declare class UserGpgKey extends pulumi.CustomResource {
25
3
  /**
26
4
  * Get an existing UserGpgKey resource's state with the given name, ID, and optional extra
@@ -37,15 +15,8 @@ export declare class UserGpgKey extends pulumi.CustomResource {
37
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
38
16
  */
39
17
  static isInstance(obj: any): obj is UserGpgKey;
40
- /**
41
- * Your public GPG key, generated in ASCII-armored format.
42
- * See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
43
- */
44
18
  readonly armoredPublicKey: pulumi.Output<string>;
45
19
  readonly etag: pulumi.Output<string>;
46
- /**
47
- * The key ID of the GPG key, e.g. `3262EFF25BA0D270`
48
- */
49
20
  readonly keyId: pulumi.Output<string>;
50
21
  /**
51
22
  * Create a UserGpgKey resource with the given unique name, arguments, and options.
@@ -60,24 +31,13 @@ export declare class UserGpgKey extends pulumi.CustomResource {
60
31
  * Input properties used for looking up and filtering UserGpgKey resources.
61
32
  */
62
33
  export interface UserGpgKeyState {
63
- /**
64
- * Your public GPG key, generated in ASCII-armored format.
65
- * See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
66
- */
67
34
  armoredPublicKey?: pulumi.Input<string>;
68
35
  etag?: pulumi.Input<string>;
69
- /**
70
- * The key ID of the GPG key, e.g. `3262EFF25BA0D270`
71
- */
72
36
  keyId?: pulumi.Input<string>;
73
37
  }
74
38
  /**
75
39
  * The set of arguments for constructing a UserGpgKey resource.
76
40
  */
77
41
  export interface UserGpgKeyArgs {
78
- /**
79
- * Your public GPG key, generated in ASCII-armored format.
80
- * See [Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/) for help on creating a GPG key.
81
- */
82
42
  armoredPublicKey: pulumi.Input<string>;
83
43
  }
package/userGpgKey.js CHANGED
@@ -5,28 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.UserGpgKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Provides a GitHub user's GPG key resource.
10
- *
11
- * This resource allows you to add/remove GPG keys from your user account.
12
- *
13
- * ## Example Usage
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as github from "@pulumi/github";
18
- *
19
- * const example = new github.UserGpgKey("example", {
20
- * armoredPublicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----
21
- * ...
22
- * -----END PGP PUBLIC KEY BLOCK-----`,
23
- * });
24
- * ```
25
- *
26
- * ## Import
27
- *
28
- * GPG keys are not importable due to the fact that [API](https://developer.github.com/v3/users/gpg_keys/#gpg-keys) does not return previously uploaded GPG key.
29
- */
30
8
  class UserGpgKey extends pulumi.CustomResource {
31
9
  constructor(name, argsOrState, opts) {
32
10
  let resourceInputs = {};
package/userGpgKey.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"userGpgKey.js","sourceRoot":"","sources":["../userGpgKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA+CjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,CAAC,IA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;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCA4DC;AA9CG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -1,25 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Provides a resource to manage GitHub repository collaborator invitations.
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as github from "@pulumi/github";
10
- *
11
- * const exampleRepository = new github.Repository("exampleRepository", {});
12
- * const exampleRepositoryCollaborator = new github.RepositoryCollaborator("exampleRepositoryCollaborator", {
13
- * repository: exampleRepository.name,
14
- * username: "example-username",
15
- * permission: "push",
16
- * });
17
- * const invitee = new github.Provider("invitee", {token: _var.invitee_token});
18
- * const exampleUserInvitationAccepter = new github.UserInvitationAccepter("exampleUserInvitationAccepter", {invitationId: exampleRepositoryCollaborator.invitationId}, {
19
- * provider: "github.invitee",
20
- * });
21
- * ```
22
- */
23
2
  export declare class UserInvitationAccepter extends pulumi.CustomResource {
24
3
  /**
25
4
  * Get an existing UserInvitationAccepter resource's state with the given name, ID, and optional extra
@@ -36,9 +15,6 @@ export declare class UserInvitationAccepter extends pulumi.CustomResource {
36
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
16
  */
38
17
  static isInstance(obj: any): obj is UserInvitationAccepter;
39
- /**
40
- * ID of the invitation to accept
41
- */
42
18
  readonly invitationId: pulumi.Output<string>;
43
19
  /**
44
20
  * Create a UserInvitationAccepter resource with the given unique name, arguments, and options.
@@ -53,17 +29,11 @@ export declare class UserInvitationAccepter extends pulumi.CustomResource {
53
29
  * Input properties used for looking up and filtering UserInvitationAccepter resources.
54
30
  */
55
31
  export interface UserInvitationAccepterState {
56
- /**
57
- * ID of the invitation to accept
58
- */
59
32
  invitationId?: pulumi.Input<string>;
60
33
  }
61
34
  /**
62
35
  * The set of arguments for constructing a UserInvitationAccepter resource.
63
36
  */
64
37
  export interface UserInvitationAccepterArgs {
65
- /**
66
- * ID of the invitation to accept
67
- */
68
38
  invitationId: pulumi.Input<string>;
69
39
  }