Skip to content

Commit 5f51fb8

Browse files
azure-sdksima-zhuweshaggard
authored
Sync eng/common directory with azure-sdk-tools for PR 1425 (Azure#13857)
* Trim off the target branch * Update eng/common/scripts/get-markdown-files-from-changed-files.ps1 Co-authored-by: Wes Haggard <[email protected]> * Update get-markdown-files-from-changed-files.ps1 * Update get-markdown-files-from-changed-files.ps1 * Trim the slash Co-authored-by: Sima Zhu <[email protected]> Co-authored-by: Sima Zhu <[email protected]> Co-authored-by: Wes Haggard <[email protected]>
1 parent 55150cc commit 5f51fb8

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)