Skip to content

Commit b0d8855

Browse files
Merge pull request #50 from gitbito/release/2.2.1
Changes are approved.
2 parents 878c7d3 + dc6c971 commit b0d8855

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

cra-scripts/bito-cra.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ dependency_check.snyk_auth_token=
1616
review_comments=2
1717
server_port=10051
1818
cra_version=latest
19-
exclude_branches=main,master
19+
include_branches=
2020
exclude_files=*.xml,*.json,*.properties,.gitignore,*.yml,*.md
2121
exclude_draft_pr=True

cra-scripts/bito-cra.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ $optional_params_cli = @(
413413
"review_scope",
414414
"enable_default_branch",
415415
"exclude_branches",
416+
"include_branches",
416417
"exclude_files",
417418
"exclude_draft_pr",
418419
"dependency_check",
@@ -452,6 +453,7 @@ $optional_params_server = @(
452453
"review_scope",
453454
"enable_default_branch",
454455
"exclude_branches",
456+
"include_branches",
455457
"exclude_files",
456458
"exclude_draft_pr",
457459
"dependency_check",
@@ -538,7 +540,7 @@ foreach ($param in $required_params) {
538540
foreach ($param in $optional_params) {
539541
if ($param -eq "dependency_check.snyk_auth_token" -and $props["dependency_check"] -eq "True") {
540542
Ask-For-Param $param $false
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") {
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") {
542544
Ask-For-Param $param $false
543545
}
544546
}
@@ -581,6 +583,8 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
581583
$docker_cmd += " --$param=$validated_boolean"
582584
} elseif ($param -eq "exclude_branches") {
583585
$docker_cmd += " --exclude_branches='$($props[$param])'"
586+
} elseif ($param -eq "include_branches") {
587+
$docker_cmd += " --include_branches='$($props[$param])'"
584588
} elseif ($param -eq "exclude_files") {
585589
$docker_cmd += " --exclude_files='$($props[$param])'"
586590
} elseif ($param -eq "exclude_draft_pr") {

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)