copyWith method
Input$CreateBranchProtectionRuleInput
copyWith({
- bool? allowsDeletions()?,
- bool? allowsForcePushes()?,
- List<
String> ? bypassForcePushActorIds()?, - List<
String> ? bypassPullRequestActorIds()?, - String? clientMutationId()?,
- bool? dismissesStaleReviews()?,
- bool? isAdminEnforced()?,
- String? pattern,
- List<
String> ? pushActorIds()?, - String? repositoryId,
- int? requiredApprovingReviewCount()?,
- List<
String> ? requiredStatusCheckContexts()?, - List<
Input$RequiredStatusCheckInput> ? requiredStatusChecks()?, - bool? requiresApprovingReviews()?,
- bool? requiresCodeOwnerReviews()?,
- bool? requiresCommitSignatures()?,
- bool? requiresConversationResolution()?,
- bool? requiresLinearHistory()?,
- bool? requiresStatusChecks()?,
- bool? requiresStrictStatusChecks()?,
- bool? restrictsPushes()?,
- bool? restrictsReviewDismissals()?,
- List<
String> ? reviewDismissalActorIds()?,
Implementation
Input$CreateBranchProtectionRuleInput copyWith(
{bool? Function()? allowsDeletions,
bool? Function()? allowsForcePushes,
List<String>? Function()? bypassForcePushActorIds,
List<String>? Function()? bypassPullRequestActorIds,
String? Function()? clientMutationId,
bool? Function()? dismissesStaleReviews,
bool? Function()? isAdminEnforced,
String? pattern,
List<String>? Function()? pushActorIds,
String? repositoryId,
int? Function()? requiredApprovingReviewCount,
List<String>? Function()? requiredStatusCheckContexts,
List<Input$RequiredStatusCheckInput>? Function()?
requiredStatusChecks,
bool? Function()? requiresApprovingReviews,
bool? Function()? requiresCodeOwnerReviews,
bool? Function()? requiresCommitSignatures,
bool? Function()? requiresConversationResolution,
bool? Function()? requiresLinearHistory,
bool? Function()? requiresStatusChecks,
bool? Function()? requiresStrictStatusChecks,
bool? Function()? restrictsPushes,
bool? Function()? restrictsReviewDismissals,
List<String>? Function()? reviewDismissalActorIds}) =>
Input$CreateBranchProtectionRuleInput(
allowsDeletions: allowsDeletions == null
? this.allowsDeletions
: allowsDeletions(),
allowsForcePushes: allowsForcePushes == null
? this.allowsForcePushes
: allowsForcePushes(),
bypassForcePushActorIds: bypassForcePushActorIds == null
? this.bypassForcePushActorIds
: bypassForcePushActorIds(),
bypassPullRequestActorIds: bypassPullRequestActorIds == null
? this.bypassPullRequestActorIds
: bypassPullRequestActorIds(),
clientMutationId: clientMutationId == null
? this.clientMutationId
: clientMutationId(),
dismissesStaleReviews: dismissesStaleReviews == null
? this.dismissesStaleReviews
: dismissesStaleReviews(),
isAdminEnforced: isAdminEnforced == null
? this.isAdminEnforced
: isAdminEnforced(),
pattern: pattern == null ? this.pattern : pattern,
pushActorIds:
pushActorIds == null ? this.pushActorIds : pushActorIds(),
repositoryId: repositoryId == null ? this.repositoryId : repositoryId,
requiredApprovingReviewCount: requiredApprovingReviewCount == null
? this.requiredApprovingReviewCount
: requiredApprovingReviewCount(),
requiredStatusCheckContexts: requiredStatusCheckContexts == null
? this.requiredStatusCheckContexts
: requiredStatusCheckContexts(),
requiredStatusChecks: requiredStatusChecks == null
? this.requiredStatusChecks
: requiredStatusChecks(),
requiresApprovingReviews: requiresApprovingReviews == null
? this.requiresApprovingReviews
: requiresApprovingReviews(),
requiresCodeOwnerReviews: requiresCodeOwnerReviews == null
? this.requiresCodeOwnerReviews
: requiresCodeOwnerReviews(),
requiresCommitSignatures: requiresCommitSignatures == null
? this.requiresCommitSignatures
: requiresCommitSignatures(),
requiresConversationResolution: requiresConversationResolution == null
? this.requiresConversationResolution
: requiresConversationResolution(),
requiresLinearHistory: requiresLinearHistory == null
? this.requiresLinearHistory
: requiresLinearHistory(),
requiresStatusChecks: requiresStatusChecks == null
? this.requiresStatusChecks
: requiresStatusChecks(),
requiresStrictStatusChecks: requiresStrictStatusChecks == null
? this.requiresStrictStatusChecks
: requiresStrictStatusChecks(),
restrictsPushes: restrictsPushes == null
? this.restrictsPushes
: restrictsPushes(),
restrictsReviewDismissals: restrictsReviewDismissals == null
? this.restrictsReviewDismissals
: restrictsReviewDismissals(),
reviewDismissalActorIds: reviewDismissalActorIds == null
? this.reviewDismissalActorIds
: reviewDismissalActorIds());