@@ -354,6 +354,7 @@ $optional_params_cli = @(
354354 " review_comments" ,
355355 " static_analysis" ,
356356 " static_analysis_tool" ,
357+ " review_scope" ,
357358 " dependency_check" ,
358359 " dependency_check.snyk_auth_token" ,
359360 " cra_version" ,
@@ -377,6 +378,7 @@ $optional_params_server = @(
377378 " review_comments" ,
378379 " static_analysis" ,
379380 " static_analysis_tool" ,
381+ " review_scope" ,
380382 " dependency_check" ,
381383 " dependency_check.snyk_auth_token" ,
382384 " server_port" ,
@@ -452,7 +454,7 @@ foreach ($param in $required_params) {
452454foreach ($param in $optional_params ) {
453455 if ($param -eq " dependency_check.snyk_auth_token" -and $props [" dependency_check" ] -eq " True" ) {
454456 Ask- For- Param $param $false
455- } 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 " git.domain" ) {
457+ } 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 " git.domain" -and $param -ne " review_scope " ) {
456458 Ask- For- Param $param $false
457459 }
458460}
@@ -478,6 +480,9 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
478480 $docker_cmd += " --static_analysis.fb_infer.enabled=$validated_boolean "
479481 } elseif ($param -eq " static_analysis_tool" ) {
480482 $docker_cmd += " --$param =$ ( $props [$param ]) "
483+ } elseif ($param -eq " review_scope" ) {
484+ $scopes = $ ($props [$param ]) -replace ' ,\s*' , ' ,'
485+ $docker_cmd += " --$param ='[$scopes ]'"
481486 } elseif ($param -eq " dependency_check" ) {
482487 $validated_boolean = Validate- Boolean $props [$param ]
483488 $docker_cmd += " --dependency_check.enabled=$validated_boolean "
0 commit comments