From 1674d8071b454585e899a76ebdf130e121e1f23c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 11 Mar 2025 18:06:54 -0700 Subject: [PATCH] use the pull request head sha for APIView PR runs (#6459) Co-authored-by: Chidozie Ononiwu --- eng/common/pipelines/templates/steps/detect-api-changes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/steps/detect-api-changes.yml b/eng/common/pipelines/templates/steps/detect-api-changes.yml index 822a70fff..2525dade5 100644 --- a/eng/common/pipelines/templates/steps/detect-api-changes.yml +++ b/eng/common/pipelines/templates/steps/detect-api-changes.yml @@ -16,7 +16,7 @@ steps: filePath: ${{ parameters.RepoRoot }}/eng/common/scripts/Detect-Api-Changes.ps1 arguments: > -ArtifactPath ${{parameters.ArtifactPath}} - -CommitSha '$(Build.SourceVersion)' + -CommitSha '$(System.PullRequest.SourceCommitId)' -BuildId $(Build.BuildId) -PullRequestNumber $(System.PullRequest.PullRequestNumber) -RepoFullName $(Build.Repository.Name)