@@ -404,12 +404,14 @@ $required_params_cli = @(
404
404
)
405
405
406
406
$optional_params_cli = @ (
407
+ " acceptable_suggestions_enabled" ,
407
408
" review_comments" ,
408
409
" static_analysis" ,
409
410
" static_analysis_tool" ,
410
411
" linters_feedback" ,
411
412
" secret_scanner_feedback" ,
412
413
" review_scope" ,
414
+ " enable_default_branch" ,
413
415
" exclude_branches" ,
414
416
" exclude_files" ,
415
417
" exclude_draft_pr" ,
@@ -438,6 +440,7 @@ $required_params_server = @(
438
440
)
439
441
440
442
$optional_params_server = @ (
443
+ " acceptable_suggestions_enabled" ,
441
444
" git.provider" ,
442
445
" git.access_token" ,
443
446
" bito_cli.bito.access_key" ,
@@ -447,6 +450,7 @@ $optional_params_server = @(
447
450
" linters_feedback" ,
448
451
" secret_scanner_feedback" ,
449
452
" review_scope" ,
453
+ " enable_default_branch" ,
450
454
" exclude_branches" ,
451
455
" exclude_files" ,
452
456
" exclude_draft_pr" ,
@@ -534,7 +538,7 @@ foreach ($param in $required_params) {
534
538
foreach ($param in $optional_params ) {
535
539
if ($param -eq " dependency_check.snyk_auth_token" -and $props [" dependency_check" ] -eq " True" ) {
536
540
Ask- For- Param $param $false
537
- } elseif ($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 " git.domain" -and $param -ne " review_scope" -and $param -ne " exclude_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" ) {
541
+ } 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 " 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" ) {
538
542
Ask- For- Param $param $false
539
543
}
540
544
}
@@ -566,9 +570,15 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
566
570
} elseif ($param -eq " secret_scanner_feedback" ) {
567
571
$validated_boolean = Validate- Boolean $props [$param ]
568
572
$docker_cmd += " --$param =$validated_boolean "
573
+ } elseif ($param -eq " acceptable_suggestions_enabled" ) {
574
+ $validated_boolean = Validate- Boolean $props [$param ]
575
+ $docker_cmd += " --$param =$validated_boolean "
569
576
} elseif ($param -eq " review_scope" ) {
570
577
$scopes = $ ($props [$param ]) -replace ' ,\s*' , ' ,'
571
578
$docker_cmd += " --$param ='[$scopes ]'"
579
+ } elseif ($param -eq " enable_default_branch" ) {
580
+ $validated_boolean = Validate- Boolean $props [$param ]
581
+ $docker_cmd += " --$param =$validated_boolean "
572
582
} elseif ($param -eq " exclude_branches" ) {
573
583
$docker_cmd += " --exclude_branches='$ ( $props [$param ]) '"
574
584
} elseif ($param -eq " exclude_files" ) {
0 commit comments