Skip to content

Commit

Permalink
fix path iin Metadata-Helpers.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik authored and azure-sdk committed Mar 7, 2023
1 parent 0b61a13 commit 3bf89f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/common/scripts/Helpers/Metadata-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function GetAllGithubUsers ([string]$TenantId, [string]$ClientId, [string]$Clien

function GetPrimaryCodeOwner ([string]$TargetDirectory)
{
$codeOwnerArray = &"$PSScriptRoot/../get-codeowners/get-codeowners.ps1" -TargetDirectory $TargetDirectory
$codeOwnerArray = &"$PSScriptRoot/../get-codeowners.ps1" -TargetDirectory $TargetDirectory
if ($codeOwnerArray) {
Write-Host "Code Owners are $codeOwnerArray."
return $codeOwnerArray[0]
Expand Down
4 changes: 2 additions & 2 deletions eng/common/scripts/get-codeowners.lib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Get-CodeownersTool([string] $ToolPath, [string] $DevOpsFeed, [string] $
<#
.SYNOPSIS
A function that given as input $TargetPath param, returns the owners
of that path, as determined by CODEOWNERS file passed in $CodeOwnersFileLocation
of that path, as determined by CODEOWNERS file passed in $CodeownersFileLocation
param.
.PARAMETER TargetPath
Expand Down Expand Up @@ -88,7 +88,7 @@ function Get-Codeowners(
{
if ([string]::IsNullOrWhiteSpace($CodeownersFileLocation)) {
# The $PSScriptRoot is assumed to be azure-sdk-tools/eng/common/scripts/get-codeowners.ps1
$CodeOwnersFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS)
$CodeownersFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS)
}

# Backward compaitiblity: if $TargetPath is not provided, fall-back to the legacy $TargetDirectory
Expand Down

0 comments on commit 3bf89f8

Please sign in to comment.