@@ -354,6 +354,7 @@ $optional_params_cli = @(
354
354
" review_comments" ,
355
355
" static_analysis" ,
356
356
" static_analysis_tool" ,
357
+ " review_scope" ,
357
358
" dependency_check" ,
358
359
" dependency_check.snyk_auth_token" ,
359
360
" cra_version" ,
@@ -377,6 +378,7 @@ $optional_params_server = @(
377
378
" review_comments" ,
378
379
" static_analysis" ,
379
380
" static_analysis_tool" ,
381
+ " review_scope" ,
380
382
" dependency_check" ,
381
383
" dependency_check.snyk_auth_token" ,
382
384
" server_port" ,
@@ -452,7 +454,7 @@ foreach ($param in $required_params) {
452
454
foreach ($param in $optional_params ) {
453
455
if ($param -eq " dependency_check.snyk_auth_token" -and $props [" dependency_check" ] -eq " True" ) {
454
456
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 " ) {
456
458
Ask- For- Param $param $false
457
459
}
458
460
}
@@ -478,6 +480,9 @@ foreach ($param in $required_params + $bee_params + $optional_params) {
478
480
$docker_cmd += " --static_analysis.fb_infer.enabled=$validated_boolean "
479
481
} elseif ($param -eq " static_analysis_tool" ) {
480
482
$docker_cmd += " --$param =$ ( $props [$param ]) "
483
+ } elseif ($param -eq " review_scope" ) {
484
+ $scopes = $ ($props [$param ]) -replace ' ,\s*' , ' ,'
485
+ $docker_cmd += " --$param ='[$scopes ]'"
481
486
} elseif ($param -eq " dependency_check" ) {
482
487
$validated_boolean = Validate- Boolean $props [$param ]
483
488
$docker_cmd += " --dependency_check.enabled=$validated_boolean "
0 commit comments