Skip to content

Commit

Permalink
Update existing comment from APIView bot (#2855)
Browse files Browse the repository at this point in the history
* Update existing comment from APIView bot
  • Loading branch information
praveenkuttappan authored and azure-sdk committed Mar 4, 2022
1 parent 236dd53 commit 6ce5e67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
DiffScriptPath: ''

steps:
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- pwsh: |
Expand All @@ -11,7 +14,7 @@ steps:
if ((!"$(System.PullRequest.SourceBranch)".StartsWith("sync-eng/common")) -and $targetBranch -eq $defaultBranch)
{
$filesInCommonDir = git diff "origin/${targetBranch}" HEAD --name-only -- 'eng/common/*'
$filesInCommonDir = ${PSScriptRoot}/../../../common/scripts/git-diff-changes.ps1 -SourceCommittish HEAD -TargetCommittish "origin/${targetBranch}" | Where { $_.StartsWith("eng/common") }
if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
{
Expand Down

0 comments on commit 6ce5e67

Please sign in to comment.