Skip to content

Commit e9ca860

Browse files
authored
Update bito-cra.sh for include branches
1 parent cbf5253 commit e9ca860

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cra-scripts/bito-cra.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ optional_params_cli=(
422422
"review_scope"
423423
"enable_default_branch"
424424
"exclude_branches"
425+
"include_branches"
425426
"exclude_files"
426427
"exclude_draft_pr"
427428
"dependency_check"
@@ -462,6 +463,7 @@ optional_params_server=(
462463
"review_scope"
463464
"enable_default_branch"
464465
"exclude_branches"
466+
"include_branches"
465467
"exclude_files"
466468
"exclude_draft_pr"
467469
"dependency_check"
@@ -546,7 +548,7 @@ done
546548
for param in "${optional_params[@]}"; do
547549
if [ "$param" == "dependency_check.snyk_auth_token" ] && [ "${props["dependency_check"]}" == "True" ]; then
548550
ask_for_param "$param" "False"
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
551+
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" != "include_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
550552
ask_for_param "$param" "False"
551553
fi
552554
done
@@ -595,6 +597,8 @@ for param in "${required_params[@]}" "${bee_params[@]}" "${optional_params[@]}";
595597
docker_cmd+=" --enable_default_branch=${props[$param]}"
596598
elif [ "$param" == "exclude_branches" ]; then
597599
docker_cmd+=" --exclude_branches='${props[$param]}'"
600+
elif [ "$param" == "include_branches" ]; then
601+
docker_cmd+=" --include_branches='${props[$param]}'"
598602
elif [ "$param" == "exclude_files" ]; then
599603
docker_cmd+=" --exclude_files='${props[$param]}'"
600604
elif [ "$param" == "exclude_draft_pr" ]; then

0 commit comments

Comments
 (0)