We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287459c commit 3e609b1Copy full SHA for 3e609b1
eng/common/scripts/Generate-PR-Diff.ps1
@@ -41,8 +41,13 @@ if (!(Test-Path $ArtifactPath))
41
$ArtifactPath = Resolve-Path $ArtifactPath
42
$ArtifactName = Join-Path $ArtifactPath "diff.json"
43
44
+$changedFiles = @()
45
+$changedServices = @()
46
+
47
$changedFiles = Get-ChangedFiles -DiffPath $TargetPath
-$changedServices = Get-ChangedServices -ChangedFiles $changedFiles
48
+if ($changedFiles) {
49
+ $changedServices = Get-ChangedServices -ChangedFiles $changedFiles
50
+}
51
52
$result = [PSCustomObject]@{
53
"ChangedFiles" = $changedFiles
0 commit comments