@@ -413,12 +413,14 @@ required_params_cli=(
413413)
414414
415415optional_params_cli=(
416+ " acceptable_suggestions_enabled"
416417 " review_comments"
417418 " static_analysis"
418419 " static_analysis_tool"
419420 " linters_feedback"
420421 " secret_scanner_feedback"
421422 " review_scope"
423+ " enable_default_branch"
422424 " exclude_branches"
423425 " exclude_files"
424426 " exclude_draft_pr"
@@ -451,12 +453,14 @@ optional_params_server=(
451453 " git.provider"
452454 " git.access_token"
453455 " bito_cli.bito.access_key"
456+ " acceptable_suggestions_enabled"
454457 " review_comments"
455458 " static_analysis"
456459 " static_analysis_tool"
457460 " linters_feedback"
458461 " secret_scanner_feedback"
459462 " review_scope"
463+ " enable_default_branch"
460464 " exclude_branches"
461465 " exclude_files"
462466 " exclude_draft_pr"
542546for param in " ${optional_params[@]} " ; do
543547 if [ " $param " == " dependency_check.snyk_auth_token" ] && [ " ${props["dependency_check"]} " == " True" ]; then
544548 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
546550 ask_for_param " $param " " False"
547551 fi
548552done
@@ -580,9 +584,15 @@ for param in "${required_params[@]}" "${bee_params[@]}" "${optional_params[@]}";
580584 elif [ " $param " == " secret_scanner_feedback" ]; then
581585 props[$param ]=$( validate_boolean " ${props[$param]} " )
582586 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]} "
583590 elif [ " $param " == " review_scope" ]; then
584591 scopes=$( echo ${props[$param]} | sed ' s/, */,/g' )
585592 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]} "
586596 elif [ " $param " == " exclude_branches" ]; then
587597 docker_cmd+=" --exclude_branches='${props[$param]} '"
588598 elif [ " $param " == " exclude_files" ]; then
0 commit comments