Skip to content

Commit 9b0a81b

Browse files
committed
Get-Changed-Components: return discrete items instead of comma-separated list
1 parent b920000 commit 9b0a81b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Get-Changed-Components.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ $retChangedComponents = -not [string]::IsNullOrWhiteSpace($changedComponentFiles
5050
$retAllComponents = [string]::IsNullOrWhiteSpace($changedComponentFiles) -or -not [string]::IsNullOrWhiteSpace($otherChanges);
5151

5252
if ($retAllComponents) {
53-
return 'all';
53+
return @('all');
5454
}
5555

5656
if ($retChangedComponents) {
5757
$names = $changedComponentFiles | ForEach-Object { ($_ -replace '^components/', '') -replace '/.*$', '' }
5858
$uniqueNames = $names | Sort-Object -Unique
59-
$changedComponentsList = $uniqueNames -join ','
60-
return $changedComponentsList
59+
return $uniqueNames
6160
}
6261

6362
Write-Error "Unhandled code path."

0 commit comments

Comments
 (0)