Skip to content

Commit 107aa9f

Browse files
azure-sdksima-zhuweshaggard
authored
Sync eng/common directory with azure-sdk-tools for PR 1425 (Azure#16817)
* Trim off the target branch * Update eng/common/scripts/get-markdown-files-from-changed-files.ps1 Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> * Update get-markdown-files-from-changed-files.ps1 * Update get-markdown-files-from-changed-files.ps1 * Trim the slash Co-authored-by: Sima Zhu <sizhu@microsoft.com> Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
1 parent b222aa7 commit 107aa9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/scripts/get-markdown-files-from-changed-files.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param (
22
# The root repo we scaned with.
33
[string] $RootRepo = '$PSScriptRoot/../../..',
44
# The target branch to compare with.
5-
[string] $targetBranch = "origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}"
5+
[string] $targetBranch = ("origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}" -replace "/refs/heads/")
66
)
77
$deletedFiles = (git diff $targetBranch HEAD --name-only --diff-filter=D)
88
$renamedFiles = (git diff $targetBranch HEAD --diff-filter=R)

0 commit comments

Comments
 (0)