@@ -413,12 +413,14 @@ required_params_cli=(
413
413
)
414
414
415
415
optional_params_cli=(
416
+ " acceptable_suggestions_enabled"
416
417
" review_comments"
417
418
" static_analysis"
418
419
" static_analysis_tool"
419
420
" linters_feedback"
420
421
" secret_scanner_feedback"
421
422
" review_scope"
423
+ " enable_default_branch"
422
424
" exclude_branches"
423
425
" exclude_files"
424
426
" exclude_draft_pr"
@@ -451,12 +453,14 @@ optional_params_server=(
451
453
" git.provider"
452
454
" git.access_token"
453
455
" bito_cli.bito.access_key"
456
+ " acceptable_suggestions_enabled"
454
457
" review_comments"
455
458
" static_analysis"
456
459
" static_analysis_tool"
457
460
" linters_feedback"
458
461
" secret_scanner_feedback"
459
462
" review_scope"
463
+ " enable_default_branch"
460
464
" exclude_branches"
461
465
" exclude_files"
462
466
" exclude_draft_pr"
542
546
for param in " ${optional_params[@]} " ; do
543
547
if [ " $param " == " dependency_check.snyk_auth_token" ] && [ " ${props["dependency_check"]} " == " True" ]; then
544
548
ask_for_param " $param " " False"
545
- elif [ " $param " != " dependency_check.snyk_auth_token" ] && [ " $param " != " env" ] && [ " $param " != " cli_path" ] && [ " $param " != " output_path" ] && [ " $param " != " static_analysis_tool" ] && [ " $param " != " linters_feedback" ] && [ " $param " != " secret_scanner_feedback" ] && [ " $param " != " git.domain" ] && [ " $param " != " review_scope" ] && [ " $param " != " exclude_branches" ] && [ " $param " != " nexus_url" ] && [ " $param " != " exclude_files" ] && [ " $param " != " exclude_draft_pr" ] && [ " $param " != " cr_event_type" ] && [ " $param " != " posting_to_pr" ] && [ " $param " != " custom_rules.configured_ws_ids" ] && [ " $param " != " custom_rules.aws_access_key_id" ] && [ " $param " != " custom_rules.aws_secret_access_key" ] && [ " $param " != " custom_rules.region_name" ] && [ " $param " != " custom_rules.bucket_name" ] && [ " $param " != " custom_rules.aes_key" ] && [ " $param " != " code_context_config.partial_timeout" ] && [ " $param " != " code_context_config.max_depth" ] && [ " $param " != " code_context_config.kill_timeout_sec" ]; then
549
+ elif [ "$param" != "acceptable_suggestions_enabled" ] && [ "$param" != "dependency_check.snyk_auth_token" ] && [ "$param" != "env" ] && [ "$param" != "cli_path" ] && [ "$param" != "output_path" ] && [ "$param" != "static_analysis_tool" ] && [ "$param" != "linters_feedback" ] && [ "$param" != "secret_scanner_feedback" ] && [ "$param" != "enable_default_branch" ] && [ "$param" != "git.domain" ] && [ "$param" != "review_scope" ] && [ "$param" != "exclude_branches" ] && [ "$param" != "nexus_url" ] && [ "$param" != "exclude_files" ] && [ "$param" != "exclude_draft_pr" ] && [ "$param" != "cr_event_type" ] && [ "$param" != "posting_to_pr" ] && [ "$param" != "custom_rules.configured_ws_ids" ] && [ "$param" != "custom_rules.aws_access_key_id" ] && [ "$param" != "custom_rules.aws_secret_access_key" ] && [ "$param" != "custom_rules.region_name" ] && [ "$param" != "custom_rules.bucket_name" ] && [ "$param" != "custom_rules.aes_key" ] && [ "$param" != "code_context_config.partial_timeout" ] && [ "$param" != "code_context_config.max_depth" ] && [ "$param" != "code_context_config.kill_timeout_sec" ]; then
546
550
ask_for_param " $param " " False"
547
551
fi
548
552
done
@@ -580,9 +584,15 @@ for param in "${required_params[@]}" "${bee_params[@]}" "${optional_params[@]}";
580
584
elif [ " $param " == " secret_scanner_feedback" ]; then
581
585
props[$param ]=$( validate_boolean " ${props[$param]} " )
582
586
docker_cmd+=" --secret_scanner_feedback=${props[$param]} "
587
+ elif [ " $param " == " acceptable_suggestions_enabled" ]; then
588
+ props[$param ]=$( validate_boolean " ${props[$param]} " )
589
+ docker_cmd+=" --acceptable_suggestions_enabled=${props[$param]} "
583
590
elif [ " $param " == " review_scope" ]; then
584
591
scopes=$( echo ${props[$param]} | sed ' s/, */,/g' )
585
592
docker_cmd+=" --review_scope='[$scopes ]'"
593
+ elif [ " $param " == " enable_default_branch" ]; then
594
+ props[$param ]=$( validate_boolean " ${props[$param]} " )
595
+ docker_cmd+=" --enable_default_branch=${props[$param]} "
586
596
elif [ " $param " == " exclude_branches" ]; then
587
597
docker_cmd+=" --exclude_branches='${props[$param]} '"
588
598
elif [ " $param " == " exclude_files" ]; then
0 commit comments