From a74375761bf724259e448fdd27e85614556f26c4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:58:09 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 9106 (#23555) Co-authored-by: Scott Beddall --- eng/common/scripts/Generate-PR-Diff.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Generate-PR-Diff.ps1 b/eng/common/scripts/Generate-PR-Diff.ps1 index 3b508b1cb994..5c3d764009fe 100644 --- a/eng/common/scripts/Generate-PR-Diff.ps1 +++ b/eng/common/scripts/Generate-PR-Diff.ps1 @@ -41,8 +41,13 @@ if (!(Test-Path $ArtifactPath)) $ArtifactPath = Resolve-Path $ArtifactPath $ArtifactName = Join-Path $ArtifactPath "diff.json" +$changedFiles = @() +$changedServices = @() + $changedFiles = Get-ChangedFiles -DiffPath $TargetPath -$changedServices = Get-ChangedServices -ChangedFiles $changedFiles +if ($changedFiles) { + $changedServices = Get-ChangedServices -ChangedFiles $changedFiles +} $result = [PSCustomObject]@{ "ChangedFiles" = $changedFiles