Skip to content

Commit 3e609b1

Browse files
azure-sdkscbedd
andauthored
Sync eng/common directory with azure-sdk-tools for PR 9106 (Azure#37793)
Co-authored-by: Scott Beddall <[email protected]>
1 parent 287459c commit 3e609b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eng/common/scripts/Generate-PR-Diff.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ if (!(Test-Path $ArtifactPath))
4141
$ArtifactPath = Resolve-Path $ArtifactPath
4242
$ArtifactName = Join-Path $ArtifactPath "diff.json"
4343

44+
$changedFiles = @()
45+
$changedServices = @()
46+
4447
$changedFiles = Get-ChangedFiles -DiffPath $TargetPath
45-
$changedServices = Get-ChangedServices -ChangedFiles $changedFiles
48+
if ($changedFiles) {
49+
$changedServices = Get-ChangedServices -ChangedFiles $changedFiles
50+
}
4651

4752
$result = [PSCustomObject]@{
4853
"ChangedFiles" = $changedFiles

0 commit comments

Comments
 (0)