Skip to content

Commit 69cab9d

Browse files
Sync eng/common directory with azure-sdk-tools for PR 1203 (#15441)
* Refactoring artifact-metadata-parsing.ps1, update-docs-metadata.ps1, and create-tags-and-git-release.ps1 * Clean up common imports * Refactor Update-docs-ci.ps1 Co-authored-by: Chidozie Ononiwu <[email protected]>
1 parent 9926619 commit 69cab9d

14 files changed

+49
-637
lines changed

eng/common/scripts/Add-IssueComment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ param(
1616
[string]$AuthToken
1717
)
1818

19-
. "${PSScriptRoot}\common.ps1"
19+
. (Join-Path $PSScriptRoot common.ps1)
2020

2121
try {
2222
Add-GithubIssueComment -RepoOwner $RepoOwner -RepoName $RepoName `

eng/common/scripts/Add-IssueLabels.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ param(
1616
[string]$AuthToken
1717
)
1818

19-
. "${PSScriptRoot}\common.ps1"
19+
. (Join-Path $PSScriptRoot common.ps1)
2020

2121
try {
2222
Add-GithubIssueLabels -RepoOwner $RepoOwner -RepoName $RepoName `

eng/common/scripts/Delete-RemoteBranches.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ param(
55
$AuthToken
66
)
77

8-
. "${PSScriptRoot}\common.ps1"
8+
. (Join-Path $PSScriptRoot common.ps1)
99

1010
LogDebug "Operating on Repo [ $RepoName ]"
1111
try{

eng/common/scripts/Get-PullRequestCreator.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param (
1212
[string]$AuthToken
1313
)
1414

15-
. "${PSScriptRoot}\common.ps1"
15+
. (Join-Path $PSScriptRoot common.ps1)
1616

1717
try
1818
{

eng/common/scripts/Package-Properties.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function Get-PkgProperties
9393
{
9494
$pkgDirectoryPath = Join-Path $serviceDirectoryPath $directory.Name
9595

96-
if ((Get-ChildItem -Path Function: | ? { $_.Name -eq $GetPackageInfoFromRepoFn }).Count -gt 0)
96+
if ($GetPackageInfoFromRepoFn -and (Test-Path "Function:$GetPackageInfoFromRepoFn"))
9797
{
9898
$pkgProps = &$GetPackageInfoFromRepoFn -pkgPath $pkgDirectoryPath -serviceDirectory $ServiceDirectory -pkgName $PackageName
9999
}

eng/common/scripts/Queue-Pipeline.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ param(
2121
[string]$Base64EncodedAuthToken
2222
)
2323

24-
. "${PSScriptRoot}\logging.ps1"
25-
. "${PSScriptRoot}\Invoke-DevOpsAPI.ps1"
24+
. (Join-Path $PSScriptRoot common.ps1)
2625

2726
if ($CancelPreviousBuilds)
2827
{

eng/common/scripts/Submit-PullRequest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ param(
5959
[boolean]$CloseAfterOpenForTesting=$false
6060
)
6161

62-
. "${PSScriptRoot}\common.ps1"
62+
. (Join-Path $PSScriptRoot common.ps1)
6363

6464
try {
6565
$resp = Get-GitHubPullRequests -RepoOwner $RepoOwner -RepoName $RepoName `

eng/common/scripts/Update-ChangeLog.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if ($ReleaseDate -and ($Unreleased -eq $True)) {
2222
exit 1
2323
}
2424

25-
. "${PSScriptRoot}\common.ps1"
25+
. (Join-Path $PSScriptRoot common.ps1)
2626

2727
if ($ReleaseDate)
2828
{

0 commit comments

Comments
 (0)