Skip to content

Commit 3d63623

Browse files
Update bito-cra.ps1
1 parent ca45cdc commit 3d63623

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

cra-scripts/bito-cra.ps1

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ $optional_params_cli = @(
413413
"review_scope",
414414
"enable_default_branch",
415415
"exclude_branches",
416-
"include_branches",
416+
"include_source_branches",
417+
"include_target_branches",
417418
"exclude_files",
418419
"exclude_draft_pr",
419420
"dependency_check",
@@ -453,7 +454,8 @@ $optional_params_server = @(
453454
"review_scope",
454455
"enable_default_branch",
455456
"exclude_branches",
456-
"include_branches",
457+
"include_source_branches",
458+
"include_target_branches",
457459
"exclude_files",
458460
"exclude_draft_pr",
459461
"dependency_check",
@@ -540,7 +542,7 @@ foreach ($param in $required_params) {
540542
foreach ($param in $optional_params) {
541543
if ($param -eq "dependency_check.snyk_auth_token" -and $props["dependency_check"] -eq "True") {
542544
Ask-For-Param $param $false
543-
} elseif ($param -ne "acceptable_suggestions_enabled" -and $param -ne "dependency_check.snyk_auth_token" -and $param -ne "env" -and $param -ne "cli_path" -and $param -ne "output_path" -and $param -ne "static_analysis_tool" -and $param -ne "linters_feedback" -and $param -ne "secret_scanner_feedback" -and $param -ne "enable_default_branch" -and $param -ne "git.domain" -and $param -ne "review_scope" -and $param -ne "exclude_branches" -and $param -ne "include_branches" -and $param -ne "exclude_files" -and $param -ne "exclude_draft_pr" -and $param -ne "cr_event_type" -and $param -ne "posting_to_pr" -and $param -ne "custom_rules.configured_ws_ids" -and $param -ne "custom_rules.aws_access_key_id" -and $param -ne "custom_rules.aws_secret_access_key" -and $param -ne "custom_rules.region_name" -and $param -ne "custom_rules.bucket_name" -and $param -ne "custom_rules.aes_key" -and $param -ne "code_context_config.partial_timeout" -and $param -ne "code_context_config.max_depth" -and $param -ne "code_context_config.kill_timeout_sec") {
545+
} elseif ($param -ne "acceptable_suggestions_enabled" -and $param -ne "dependency_check.snyk_auth_token" -and $param -ne "env" -and $param -ne "cli_path" -and $param -ne "output_path" -and $param -ne "static_analysis_tool" -and $param -ne "linters_feedback" -and $param -ne "secret_scanner_feedback" -and $param -ne "enable_default_branch" -and $param -ne "git.domain" -and $param -ne "review_scope" -and $param -ne "exclude_branches" -and $param -ne "include_source_branches" -and $param -ne "include_target_branches" -and $param -ne "exclude_files" -and $param -ne "exclude_draft_pr" -and $param -ne "cr_event_type" -and $param -ne "posting_to_pr" -and $param -ne "custom_rules.configured_ws_ids" -and $param -ne "custom_rules.aws_access_key_id" -and $param -ne "custom_rules.aws_secret_access_key" -and $param -ne "custom_rules.region_name" -and $param -ne "custom_rules.bucket_name" -and $param -ne "custom_rules.aes_key" -and $param -ne "code_context_config.partial_timeout" -and $param -ne "code_context_config.max_depth" -and $param -ne "code_context_config.kill_timeout_sec") {
544546
Ask-For-Param $param $false
545547
}
546548
}
@@ -583,8 +585,10 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
583585
$docker_cmd += " --$param=$validated_boolean"
584586
} elseif ($param -eq "exclude_branches") {
585587
$docker_cmd += " --exclude_branches='$($props[$param])'"
586-
} elseif ($param -eq "include_branches") {
587-
$docker_cmd += " --include_branches='$($props[$param])'"
588+
} elseif ($param -eq "include_source_branches") {
589+
$docker_cmd += " --include_source_branches='$($props[$param])'"
590+
} elseif ($param -eq "include_target_branches") {
591+
$docker_cmd += " --include_target_branches='$($props[$param])'"
588592
} elseif ($param -eq "exclude_files") {
589593
$docker_cmd += " --exclude_files='$($props[$param])'"
590594
} elseif ($param -eq "exclude_draft_pr") {

0 commit comments

Comments
 (0)