azure-sdk-for-cpp/eng/common/scripts/get-markdown-files-from-changed-files.ps1
Azure SDK Bot 300612ca4e
Sync eng/common directory with azure-sdk-tools for PR 2861 (#3425)
* Use common script for git diff changes

* remove extra files

* suppress spell check

* suppress false positive cspelling

* Address comments

* make changes to cspell

* Suppress to right values

* More fix

Co-authored-by: sima-zhu <sizhu@microsoft.com>
2022-03-23 16:59:07 -07:00

14 lines
432 B
PowerShell

# cSpell:ignore Committish
# cSpell:ignore PULLREQUEST
# cSpell:ignore TARGETBRANCH
param (
# The root repo we scanned with.
[string] $RootRepo = '$PSScriptRoot/../../..',
# The target branch to compare with.
[string] $targetBranch = ("origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}" -replace "/refs/heads/")
)
. (Join-Path $PSScriptRoot common.ps1)
return Get-ChangedFiles -TargetCommittish $targetBranch -DiffPath '*.md'