@pulumi/github 5.17.0 → 5.18.0-alpha.1695225306
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.
- package/actionsEnvironmentVariable.d.ts +1 -1
- package/actionsEnvironmentVariable.js +1 -1
- package/actionsOrganizationPermissions.d.ts +1 -1
- package/actionsOrganizationPermissions.js +1 -1
- package/actionsOrganizationSecret.d.ts +1 -2
- package/actionsOrganizationSecret.js +1 -2
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +1 -1
- package/actionsOrganizationSecretRepositories.js +1 -1
- package/actionsOrganizationVariable.d.ts +1 -1
- package/actionsOrganizationVariable.js +1 -1
- package/actionsRepositoryAccessLevel.d.ts +1 -1
- package/actionsRepositoryAccessLevel.js +1 -1
- package/actionsRepositoryPermissions.d.ts +1 -1
- package/actionsRepositoryPermissions.js +1 -1
- package/actionsRunnerGroup.d.ts +1 -1
- package/actionsRunnerGroup.js +1 -1
- package/actionsSecret.d.ts +2 -3
- package/actionsSecret.js +2 -3
- package/actionsSecret.js.map +1 -1
- package/branch.d.ts +0 -2
- package/branch.js +0 -2
- package/branch.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.d.ts +1 -1
- package/codespacesOrganizationSecretRepositories.js +1 -1
- package/codespacesSecret.d.ts +1 -2
- package/codespacesSecret.js +1 -2
- package/codespacesSecret.js.map +1 -1
- package/enterpriseOrganization.d.ts +18 -1
- package/enterpriseOrganization.js +8 -1
- package/enterpriseOrganization.js.map +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +13 -0
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js +17 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +14 -0
- package/getActionsOrganizationPublicKey.js +18 -1
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +13 -0
- package/getActionsOrganizationRegistrationToken.js +17 -1
- package/getActionsOrganizationRegistrationToken.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +13 -0
- package/getActionsOrganizationSecrets.js +17 -1
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsOrganizationVariables.d.ts +13 -0
- package/getActionsOrganizationVariables.js +17 -1
- package/getActionsOrganizationVariables.js.map +1 -1
- package/getCodespacesOrganizationPublicKey.d.ts +14 -0
- package/getCodespacesOrganizationPublicKey.js +18 -1
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesOrganizationSecrets.d.ts +13 -0
- package/getCodespacesOrganizationSecrets.js +17 -1
- package/getCodespacesOrganizationSecrets.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +14 -0
- package/getCodespacesUserPublicKey.js +18 -1
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCodespacesUserSecrets.d.ts +13 -0
- package/getCodespacesUserSecrets.js +17 -1
- package/getCodespacesUserSecrets.js.map +1 -1
- package/getDependabotOrganizationPublicKey.d.ts +14 -0
- package/getDependabotOrganizationPublicKey.js +18 -1
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +13 -0
- package/getDependabotOrganizationSecrets.js +17 -1
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getExternalGroups.d.ts +15 -0
- package/getExternalGroups.js +19 -1
- package/getExternalGroups.js.map +1 -1
- package/getIpRanges.d.ts +13 -0
- package/getIpRanges.js +17 -1
- package/getIpRanges.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +14 -0
- package/getOrganizationExternalIdentities.js +18 -1
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +15 -0
- package/getOrganizationIpAllowList.js +19 -1
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +13 -0
- package/getOrganizationTeamSyncGroups.js +17 -1
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +15 -0
- package/getOrganizationWebhooks.js +19 -1
- package/getOrganizationWebhooks.js.map +1 -1
- package/getSshKeys.d.ts +13 -0
- package/getSshKeys.js +17 -1
- package/getSshKeys.js.map +1 -1
- package/index.d.ts +27 -0
- package/index.js +55 -22
- package/index.js.map +1 -1
- package/organizationRuleset.d.ts +147 -0
- package/organizationRuleset.js +87 -0
- package/organizationRuleset.js.map +1 -0
- package/organizationWebhook.d.ts +0 -1
- package/organizationWebhook.js +0 -1
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/projectCard.d.ts +1 -1
- package/projectCard.js +1 -1
- package/repository.d.ts +1 -1
- package/repositoryFile.d.ts +0 -1
- package/repositoryFile.js +0 -1
- package/repositoryFile.js.map +1 -1
- package/repositoryRuleset.d.ts +194 -0
- package/repositoryRuleset.js +124 -0
- package/repositoryRuleset.js.map +1 -0
- package/repositoryTagProtection.d.ts +3 -1
- package/repositoryTagProtection.js +3 -1
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryTopics.d.ts +87 -0
- package/repositoryTopics.js +84 -0
- package/repositoryTopics.js.map +1 -0
- package/repositoryWebhook.d.ts +3 -2
- package/repositoryWebhook.js +3 -2
- package/repositoryWebhook.js.map +1 -1
- package/teamSettings.d.ts +0 -1
- package/teamSettings.js +0 -1
- package/teamSettings.js.map +1 -1
- package/types/input.d.ts +467 -0
- package/types/output.d.ts +467 -0
package/types/input.d.ts
CHANGED
|
@@ -157,6 +157,243 @@ export interface BranchProtectionV3Restrictions {
|
|
|
157
157
|
*/
|
|
158
158
|
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
159
159
|
}
|
|
160
|
+
export interface OrganizationRulesetBypassActor {
|
|
161
|
+
/**
|
|
162
|
+
* (Number) The ID of the actor that can bypass a ruleset
|
|
163
|
+
*/
|
|
164
|
+
actorId: pulumi.Input<number>;
|
|
165
|
+
/**
|
|
166
|
+
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
167
|
+
*/
|
|
168
|
+
actorType: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
171
|
+
*/
|
|
172
|
+
bypassMode?: pulumi.Input<string>;
|
|
173
|
+
}
|
|
174
|
+
export interface OrganizationRulesetConditions {
|
|
175
|
+
/**
|
|
176
|
+
* (Block List, Min: 1, Max: 1) (see below for nested schema)
|
|
177
|
+
*/
|
|
178
|
+
refName: pulumi.Input<inputs.OrganizationRulesetConditionsRefName>;
|
|
179
|
+
/**
|
|
180
|
+
* The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. Conflicts with `repositoryName`.
|
|
181
|
+
*/
|
|
182
|
+
repositoryId?: pulumi.Input<number>;
|
|
183
|
+
/**
|
|
184
|
+
* Conflicts with `repositoryId`. (see below for nested schema)
|
|
185
|
+
*
|
|
186
|
+
* One of `repositoryId` and `repositoryName` must be set for the rule to target any repositories.
|
|
187
|
+
*/
|
|
188
|
+
repositoryName?: pulumi.Input<inputs.OrganizationRulesetConditionsRepositoryName>;
|
|
189
|
+
}
|
|
190
|
+
export interface OrganizationRulesetConditionsRefName {
|
|
191
|
+
/**
|
|
192
|
+
* (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
193
|
+
*/
|
|
194
|
+
excludes: pulumi.Input<pulumi.Input<string>[]>;
|
|
195
|
+
/**
|
|
196
|
+
* (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.
|
|
197
|
+
*/
|
|
198
|
+
includes: pulumi.Input<pulumi.Input<string>[]>;
|
|
199
|
+
}
|
|
200
|
+
export interface OrganizationRulesetConditionsRepositoryName {
|
|
201
|
+
/**
|
|
202
|
+
* (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
203
|
+
*/
|
|
204
|
+
excludes: pulumi.Input<pulumi.Input<string>[]>;
|
|
205
|
+
/**
|
|
206
|
+
* (List of String) Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.
|
|
207
|
+
*/
|
|
208
|
+
inlcudes: pulumi.Input<pulumi.Input<string>[]>;
|
|
209
|
+
protected?: pulumi.Input<boolean>;
|
|
210
|
+
}
|
|
211
|
+
export interface OrganizationRulesetRules {
|
|
212
|
+
/**
|
|
213
|
+
* (Block List, Max: 1) Parameters to be used for the branchNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tagNamePattern` as it only applies to rulesets with target `branch`. (see below for nested schema)
|
|
214
|
+
*/
|
|
215
|
+
branchNamePattern?: pulumi.Input<inputs.OrganizationRulesetRulesBranchNamePattern>;
|
|
216
|
+
/**
|
|
217
|
+
* (Block List, Max: 1) Parameters to be used for the commitAuthorEmailPattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
218
|
+
*/
|
|
219
|
+
commitAuthorEmailPattern?: pulumi.Input<inputs.OrganizationRulesetRulesCommitAuthorEmailPattern>;
|
|
220
|
+
/**
|
|
221
|
+
* (Block List, Max: 1) Parameters to be used for the commitMessagePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
222
|
+
*/
|
|
223
|
+
commitMessagePattern?: pulumi.Input<inputs.OrganizationRulesetRulesCommitMessagePattern>;
|
|
224
|
+
/**
|
|
225
|
+
* (Block List, Max: 1) Parameters to be used for the committerEmailPattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
226
|
+
*/
|
|
227
|
+
committerEmailPattern?: pulumi.Input<inputs.OrganizationRulesetRulesCommitterEmailPattern>;
|
|
228
|
+
/**
|
|
229
|
+
* (Boolean) Only allow users with bypass permission to create matching refs.
|
|
230
|
+
*/
|
|
231
|
+
creation?: pulumi.Input<boolean>;
|
|
232
|
+
/**
|
|
233
|
+
* (Boolean) Only allow users with bypass permissions to delete matching refs.
|
|
234
|
+
*/
|
|
235
|
+
deletion?: pulumi.Input<boolean>;
|
|
236
|
+
/**
|
|
237
|
+
* (Boolean) Prevent users with push access from force pushing to branches.
|
|
238
|
+
*/
|
|
239
|
+
nonFastForward?: pulumi.Input<boolean>;
|
|
240
|
+
/**
|
|
241
|
+
* (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema)
|
|
242
|
+
*/
|
|
243
|
+
pullRequest?: pulumi.Input<inputs.OrganizationRulesetRulesPullRequest>;
|
|
244
|
+
/**
|
|
245
|
+
* (Boolean) Prevent merge commits from being pushed to matching branches.
|
|
246
|
+
*/
|
|
247
|
+
requiredLinearHistory?: pulumi.Input<boolean>;
|
|
248
|
+
/**
|
|
249
|
+
* (Boolean) Commits pushed to matching branches must have verified signatures.
|
|
250
|
+
*/
|
|
251
|
+
requiredSignatures?: pulumi.Input<boolean>;
|
|
252
|
+
/**
|
|
253
|
+
* (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema)
|
|
254
|
+
*/
|
|
255
|
+
requiredStatusChecks?: pulumi.Input<inputs.OrganizationRulesetRulesRequiredStatusChecks>;
|
|
256
|
+
/**
|
|
257
|
+
* (Block List, Max: 1) Parameters to be used for the tagNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branchNamePattern` as it only applies to rulesets with target `tag`. (see below for nested schema)
|
|
258
|
+
*/
|
|
259
|
+
tagNamePattern?: pulumi.Input<inputs.OrganizationRulesetRulesTagNamePattern>;
|
|
260
|
+
/**
|
|
261
|
+
* (Boolean) Only allow users with bypass permission to update matching refs.
|
|
262
|
+
*/
|
|
263
|
+
update?: pulumi.Input<boolean>;
|
|
264
|
+
}
|
|
265
|
+
export interface OrganizationRulesetRulesBranchNamePattern {
|
|
266
|
+
/**
|
|
267
|
+
* (String) The name of the ruleset.
|
|
268
|
+
*/
|
|
269
|
+
name?: pulumi.Input<string>;
|
|
270
|
+
/**
|
|
271
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
272
|
+
*/
|
|
273
|
+
negate?: pulumi.Input<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
276
|
+
*/
|
|
277
|
+
operator: pulumi.Input<string>;
|
|
278
|
+
/**
|
|
279
|
+
* (String) The pattern to match with.
|
|
280
|
+
*/
|
|
281
|
+
pattern: pulumi.Input<string>;
|
|
282
|
+
}
|
|
283
|
+
export interface OrganizationRulesetRulesCommitAuthorEmailPattern {
|
|
284
|
+
/**
|
|
285
|
+
* (String) The name of the ruleset.
|
|
286
|
+
*/
|
|
287
|
+
name?: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
290
|
+
*/
|
|
291
|
+
negate?: pulumi.Input<boolean>;
|
|
292
|
+
/**
|
|
293
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
294
|
+
*/
|
|
295
|
+
operator: pulumi.Input<string>;
|
|
296
|
+
/**
|
|
297
|
+
* (String) The pattern to match with.
|
|
298
|
+
*/
|
|
299
|
+
pattern: pulumi.Input<string>;
|
|
300
|
+
}
|
|
301
|
+
export interface OrganizationRulesetRulesCommitMessagePattern {
|
|
302
|
+
/**
|
|
303
|
+
* (String) The name of the ruleset.
|
|
304
|
+
*/
|
|
305
|
+
name?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
308
|
+
*/
|
|
309
|
+
negate?: pulumi.Input<boolean>;
|
|
310
|
+
/**
|
|
311
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
312
|
+
*/
|
|
313
|
+
operator: pulumi.Input<string>;
|
|
314
|
+
/**
|
|
315
|
+
* (String) The pattern to match with.
|
|
316
|
+
*/
|
|
317
|
+
pattern: pulumi.Input<string>;
|
|
318
|
+
}
|
|
319
|
+
export interface OrganizationRulesetRulesCommitterEmailPattern {
|
|
320
|
+
/**
|
|
321
|
+
* (String) The name of the ruleset.
|
|
322
|
+
*/
|
|
323
|
+
name?: pulumi.Input<string>;
|
|
324
|
+
/**
|
|
325
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
326
|
+
*/
|
|
327
|
+
negate?: pulumi.Input<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
330
|
+
*/
|
|
331
|
+
operator: pulumi.Input<string>;
|
|
332
|
+
/**
|
|
333
|
+
* (String) The pattern to match with.
|
|
334
|
+
*/
|
|
335
|
+
pattern: pulumi.Input<string>;
|
|
336
|
+
}
|
|
337
|
+
export interface OrganizationRulesetRulesPullRequest {
|
|
338
|
+
/**
|
|
339
|
+
* (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
|
|
340
|
+
*/
|
|
341
|
+
dismissStaleReviewsOnPush?: pulumi.Input<boolean>;
|
|
342
|
+
/**
|
|
343
|
+
* (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`.
|
|
344
|
+
*/
|
|
345
|
+
requireCodeOwnerReview?: pulumi.Input<boolean>;
|
|
346
|
+
/**
|
|
347
|
+
* (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
|
|
348
|
+
*/
|
|
349
|
+
requireLastPushApproval?: pulumi.Input<boolean>;
|
|
350
|
+
/**
|
|
351
|
+
* (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
|
|
352
|
+
*/
|
|
353
|
+
requiredApprovingReviewCount?: pulumi.Input<number>;
|
|
354
|
+
/**
|
|
355
|
+
* (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
|
|
356
|
+
*/
|
|
357
|
+
requiredReviewThreadResolution?: pulumi.Input<boolean>;
|
|
358
|
+
}
|
|
359
|
+
export interface OrganizationRulesetRulesRequiredStatusChecks {
|
|
360
|
+
/**
|
|
361
|
+
* (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema)
|
|
362
|
+
*/
|
|
363
|
+
requiredChecks: pulumi.Input<pulumi.Input<inputs.OrganizationRulesetRulesRequiredStatusChecksRequiredCheck>[]>;
|
|
364
|
+
/**
|
|
365
|
+
* (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`.
|
|
366
|
+
*/
|
|
367
|
+
strictRequiredStatusChecksPolicy?: pulumi.Input<boolean>;
|
|
368
|
+
}
|
|
369
|
+
export interface OrganizationRulesetRulesRequiredStatusChecksRequiredCheck {
|
|
370
|
+
/**
|
|
371
|
+
* (String) The status check context name that must be present on the commit.
|
|
372
|
+
*/
|
|
373
|
+
context: pulumi.Input<string>;
|
|
374
|
+
/**
|
|
375
|
+
* (Number) The optional integration ID that this status check must originate from.
|
|
376
|
+
*/
|
|
377
|
+
integrationId?: pulumi.Input<number>;
|
|
378
|
+
}
|
|
379
|
+
export interface OrganizationRulesetRulesTagNamePattern {
|
|
380
|
+
/**
|
|
381
|
+
* (String) The name of the ruleset.
|
|
382
|
+
*/
|
|
383
|
+
name?: pulumi.Input<string>;
|
|
384
|
+
/**
|
|
385
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
386
|
+
*/
|
|
387
|
+
negate?: pulumi.Input<boolean>;
|
|
388
|
+
/**
|
|
389
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
390
|
+
*/
|
|
391
|
+
operator: pulumi.Input<string>;
|
|
392
|
+
/**
|
|
393
|
+
* (String) The pattern to match with.
|
|
394
|
+
*/
|
|
395
|
+
pattern: pulumi.Input<string>;
|
|
396
|
+
}
|
|
160
397
|
export interface OrganizationWebhookConfiguration {
|
|
161
398
|
contentType?: pulumi.Input<string>;
|
|
162
399
|
insecureSsl?: pulumi.Input<boolean>;
|
|
@@ -249,6 +486,236 @@ export interface RepositoryPagesSource {
|
|
|
249
486
|
*/
|
|
250
487
|
path?: pulumi.Input<string>;
|
|
251
488
|
}
|
|
489
|
+
export interface RepositoryRulesetBypassActor {
|
|
490
|
+
/**
|
|
491
|
+
* (Number) The ID of the actor that can bypass a ruleset
|
|
492
|
+
*/
|
|
493
|
+
actorId: pulumi.Input<number>;
|
|
494
|
+
/**
|
|
495
|
+
* The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
|
|
496
|
+
*/
|
|
497
|
+
actorType: pulumi.Input<string>;
|
|
498
|
+
/**
|
|
499
|
+
* (String) When the specified actor can bypass the ruleset. pullRequest means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pullRequest`.
|
|
500
|
+
*/
|
|
501
|
+
bypassMode?: pulumi.Input<string>;
|
|
502
|
+
}
|
|
503
|
+
export interface RepositoryRulesetConditions {
|
|
504
|
+
/**
|
|
505
|
+
* (Block List, Min: 1, Max: 1) (see below for nested schema)
|
|
506
|
+
*/
|
|
507
|
+
refName: pulumi.Input<inputs.RepositoryRulesetConditionsRefName>;
|
|
508
|
+
}
|
|
509
|
+
export interface RepositoryRulesetConditionsRefName {
|
|
510
|
+
/**
|
|
511
|
+
* (List of String) Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.
|
|
512
|
+
*/
|
|
513
|
+
excludes: pulumi.Input<pulumi.Input<string>[]>;
|
|
514
|
+
/**
|
|
515
|
+
* (List of String) Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.
|
|
516
|
+
*/
|
|
517
|
+
includes: pulumi.Input<pulumi.Input<string>[]>;
|
|
518
|
+
}
|
|
519
|
+
export interface RepositoryRulesetRules {
|
|
520
|
+
/**
|
|
521
|
+
* (Block List, Max: 1) Parameters to be used for the branchNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tagNamePattern` as it only applied to rulesets with target `branch`. (see below for nested schema)
|
|
522
|
+
*/
|
|
523
|
+
branchNamePattern?: pulumi.Input<inputs.RepositoryRulesetRulesBranchNamePattern>;
|
|
524
|
+
/**
|
|
525
|
+
* (Block List, Max: 1) Parameters to be used for the commitAuthorEmailPattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
526
|
+
*/
|
|
527
|
+
commitAuthorEmailPattern?: pulumi.Input<inputs.RepositoryRulesetRulesCommitAuthorEmailPattern>;
|
|
528
|
+
/**
|
|
529
|
+
* (Block List, Max: 1) Parameters to be used for the commitMessagePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
530
|
+
*/
|
|
531
|
+
commitMessagePattern?: pulumi.Input<inputs.RepositoryRulesetRulesCommitMessagePattern>;
|
|
532
|
+
/**
|
|
533
|
+
* (Block List, Max: 1) Parameters to be used for the committerEmailPattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see below for nested schema)
|
|
534
|
+
*/
|
|
535
|
+
committerEmailPattern?: pulumi.Input<inputs.RepositoryRulesetRulesCommitterEmailPattern>;
|
|
536
|
+
/**
|
|
537
|
+
* (Boolean) Only allow users with bypass permission to create matching refs.
|
|
538
|
+
*/
|
|
539
|
+
creation?: pulumi.Input<boolean>;
|
|
540
|
+
/**
|
|
541
|
+
* (Boolean) Only allow users with bypass permissions to delete matching refs.
|
|
542
|
+
*/
|
|
543
|
+
deletion?: pulumi.Input<boolean>;
|
|
544
|
+
/**
|
|
545
|
+
* (Boolean) Prevent users with push access from force pushing to branches.
|
|
546
|
+
*/
|
|
547
|
+
nonFastForward?: pulumi.Input<boolean>;
|
|
548
|
+
/**
|
|
549
|
+
* (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see below for nested schema)
|
|
550
|
+
*/
|
|
551
|
+
pullRequest?: pulumi.Input<inputs.RepositoryRulesetRulesPullRequest>;
|
|
552
|
+
/**
|
|
553
|
+
* (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see below for nested schema)
|
|
554
|
+
*/
|
|
555
|
+
requiredDeployments?: pulumi.Input<inputs.RepositoryRulesetRulesRequiredDeployments>;
|
|
556
|
+
/**
|
|
557
|
+
* (Boolean) Prevent merge commits from being pushed to matching branches.
|
|
558
|
+
*/
|
|
559
|
+
requiredLinearHistory?: pulumi.Input<boolean>;
|
|
560
|
+
/**
|
|
561
|
+
* (Boolean) Commits pushed to matching branches must have verified signatures.
|
|
562
|
+
*/
|
|
563
|
+
requiredSignatures?: pulumi.Input<boolean>;
|
|
564
|
+
/**
|
|
565
|
+
* (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema)
|
|
566
|
+
*/
|
|
567
|
+
requiredStatusChecks?: pulumi.Input<inputs.RepositoryRulesetRulesRequiredStatusChecks>;
|
|
568
|
+
/**
|
|
569
|
+
* (Block List, Max: 1) Parameters to be used for the tagNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branchNamePattern` as it only applied to rulesets with target `tag`. (see below for nested schema)
|
|
570
|
+
*/
|
|
571
|
+
tagNamePattern?: pulumi.Input<inputs.RepositoryRulesetRulesTagNamePattern>;
|
|
572
|
+
/**
|
|
573
|
+
* (Boolean) Only allow users with bypass permission to update matching refs.
|
|
574
|
+
*/
|
|
575
|
+
update?: pulumi.Input<boolean>;
|
|
576
|
+
/**
|
|
577
|
+
* (Boolean) Branch can pull changes from its upstream repository. This is only applicable to forked repositories. Requires `update` to be set to `true`. Note: behaviour is affected by a known bug on the GitHub side which may cause issues when using this parameter.
|
|
578
|
+
*/
|
|
579
|
+
updateAllowsFetchAndMerge?: pulumi.Input<boolean>;
|
|
580
|
+
}
|
|
581
|
+
export interface RepositoryRulesetRulesBranchNamePattern {
|
|
582
|
+
/**
|
|
583
|
+
* (String) The name of the ruleset.
|
|
584
|
+
*/
|
|
585
|
+
name?: pulumi.Input<string>;
|
|
586
|
+
/**
|
|
587
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
588
|
+
*/
|
|
589
|
+
negate?: pulumi.Input<boolean>;
|
|
590
|
+
/**
|
|
591
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
592
|
+
*/
|
|
593
|
+
operator: pulumi.Input<string>;
|
|
594
|
+
/**
|
|
595
|
+
* (String) The pattern to match with.
|
|
596
|
+
*/
|
|
597
|
+
pattern: pulumi.Input<string>;
|
|
598
|
+
}
|
|
599
|
+
export interface RepositoryRulesetRulesCommitAuthorEmailPattern {
|
|
600
|
+
/**
|
|
601
|
+
* (String) The name of the ruleset.
|
|
602
|
+
*/
|
|
603
|
+
name?: pulumi.Input<string>;
|
|
604
|
+
/**
|
|
605
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
606
|
+
*/
|
|
607
|
+
negate?: pulumi.Input<boolean>;
|
|
608
|
+
/**
|
|
609
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
610
|
+
*/
|
|
611
|
+
operator: pulumi.Input<string>;
|
|
612
|
+
/**
|
|
613
|
+
* (String) The pattern to match with.
|
|
614
|
+
*/
|
|
615
|
+
pattern: pulumi.Input<string>;
|
|
616
|
+
}
|
|
617
|
+
export interface RepositoryRulesetRulesCommitMessagePattern {
|
|
618
|
+
/**
|
|
619
|
+
* (String) The name of the ruleset.
|
|
620
|
+
*/
|
|
621
|
+
name?: pulumi.Input<string>;
|
|
622
|
+
/**
|
|
623
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
624
|
+
*/
|
|
625
|
+
negate?: pulumi.Input<boolean>;
|
|
626
|
+
/**
|
|
627
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
628
|
+
*/
|
|
629
|
+
operator: pulumi.Input<string>;
|
|
630
|
+
/**
|
|
631
|
+
* (String) The pattern to match with.
|
|
632
|
+
*/
|
|
633
|
+
pattern: pulumi.Input<string>;
|
|
634
|
+
}
|
|
635
|
+
export interface RepositoryRulesetRulesCommitterEmailPattern {
|
|
636
|
+
/**
|
|
637
|
+
* (String) The name of the ruleset.
|
|
638
|
+
*/
|
|
639
|
+
name?: pulumi.Input<string>;
|
|
640
|
+
/**
|
|
641
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
642
|
+
*/
|
|
643
|
+
negate?: pulumi.Input<boolean>;
|
|
644
|
+
/**
|
|
645
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
646
|
+
*/
|
|
647
|
+
operator: pulumi.Input<string>;
|
|
648
|
+
/**
|
|
649
|
+
* (String) The pattern to match with.
|
|
650
|
+
*/
|
|
651
|
+
pattern: pulumi.Input<string>;
|
|
652
|
+
}
|
|
653
|
+
export interface RepositoryRulesetRulesPullRequest {
|
|
654
|
+
/**
|
|
655
|
+
* (Boolean) New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
|
|
656
|
+
*/
|
|
657
|
+
dismissStaleReviewsOnPush?: pulumi.Input<boolean>;
|
|
658
|
+
/**
|
|
659
|
+
* (Boolean) Require an approving review in pull requests that modify files that have a designated code owner. Defaults to `false`.
|
|
660
|
+
*/
|
|
661
|
+
requireCodeOwnerReview?: pulumi.Input<boolean>;
|
|
662
|
+
/**
|
|
663
|
+
* (Boolean) Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
|
|
664
|
+
*/
|
|
665
|
+
requireLastPushApproval?: pulumi.Input<boolean>;
|
|
666
|
+
/**
|
|
667
|
+
* (Number) The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
|
|
668
|
+
*/
|
|
669
|
+
requiredApprovingReviewCount?: pulumi.Input<number>;
|
|
670
|
+
/**
|
|
671
|
+
* (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
|
|
672
|
+
*/
|
|
673
|
+
requiredReviewThreadResolution?: pulumi.Input<boolean>;
|
|
674
|
+
}
|
|
675
|
+
export interface RepositoryRulesetRulesRequiredDeployments {
|
|
676
|
+
/**
|
|
677
|
+
* (List of String) The environments that must be successfully deployed to before branches can be merged.
|
|
678
|
+
*/
|
|
679
|
+
requiredDeploymentEnvironments: pulumi.Input<pulumi.Input<string>[]>;
|
|
680
|
+
}
|
|
681
|
+
export interface RepositoryRulesetRulesRequiredStatusChecks {
|
|
682
|
+
/**
|
|
683
|
+
* (Block Set, Min: 1) Status checks that are required. Several can be defined. (see below for nested schema)
|
|
684
|
+
*/
|
|
685
|
+
requiredChecks: pulumi.Input<pulumi.Input<inputs.RepositoryRulesetRulesRequiredStatusChecksRequiredCheck>[]>;
|
|
686
|
+
/**
|
|
687
|
+
* (Boolean) Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`.
|
|
688
|
+
*/
|
|
689
|
+
strictRequiredStatusChecksPolicy?: pulumi.Input<boolean>;
|
|
690
|
+
}
|
|
691
|
+
export interface RepositoryRulesetRulesRequiredStatusChecksRequiredCheck {
|
|
692
|
+
/**
|
|
693
|
+
* (String) The status check context name that must be present on the commit.
|
|
694
|
+
*/
|
|
695
|
+
context: pulumi.Input<string>;
|
|
696
|
+
/**
|
|
697
|
+
* (Number) The optional integration ID that this status check must originate from.
|
|
698
|
+
*/
|
|
699
|
+
integrationId?: pulumi.Input<number>;
|
|
700
|
+
}
|
|
701
|
+
export interface RepositoryRulesetRulesTagNamePattern {
|
|
702
|
+
/**
|
|
703
|
+
* (String) The name of the ruleset.
|
|
704
|
+
*/
|
|
705
|
+
name?: pulumi.Input<string>;
|
|
706
|
+
/**
|
|
707
|
+
* (Boolean) If true, the rule will fail if the pattern matches.
|
|
708
|
+
*/
|
|
709
|
+
negate?: pulumi.Input<boolean>;
|
|
710
|
+
/**
|
|
711
|
+
* (String) The operator to use for matching. Can be one of: `startsWith`, `endsWith`, `contains`, `regex`.
|
|
712
|
+
*/
|
|
713
|
+
operator: pulumi.Input<string>;
|
|
714
|
+
/**
|
|
715
|
+
* (String) The pattern to match with.
|
|
716
|
+
*/
|
|
717
|
+
pattern: pulumi.Input<string>;
|
|
718
|
+
}
|
|
252
719
|
export interface RepositorySecurityAndAnalysis {
|
|
253
720
|
/**
|
|
254
721
|
* The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is `public`, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.
|