Skip to content

Commit

Permalink
resolve variable name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored and azure-sdk committed Apr 2, 2024
1 parent e0e1b81 commit cf2f73d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eng/common/scripts/Create-APIReview.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ function Upload-ReviewTokenFile($packageName, $apiLabel, $releaseStatus, $review
return $StatusCode
}

function Get-APITokenFileName($artifactName)
function Get-APITokenFileName($packageArtifactName)
{
$reviewTokenFileName = "${artifactName}_${LanguageShort}.json"
$tokenFilePath = Join-Path $ArtifactPath $artifactName $reviewTokenFileName
$reviewTokenFileName = "${packageArtifactName}_${LanguageShort}.json"
$tokenFilePath = Join-Path $ArtifactPath $packageArtifactName $reviewTokenFileName
if (Test-Path $tokenFilePath) {
Write-Host "Review token file is present at $tokenFilePath"
return $reviewTokenFileName
Expand All @@ -139,14 +139,14 @@ function Get-APITokenFileName($artifactName)
}
}

function Submit-APIReview($packageInfo, $packagePath, $artifactName)
function Submit-APIReview($packageInfo, $packagePath, $packageArtifactName)
{
$packageName = $packageInfo.Name
$apiLabel = "Source Branch:${SourceBranch}"

# Get generated review token file if present
# APIView processes request using different API if token file is already generated
$reviewTokenFileName = Get-APITokenFileName $artifactName
$reviewTokenFileName = Get-APITokenFileName $packageArtifactName
if ($reviewTokenFileName) {
Write-Host "Uploading review token file $reviewTokenFileName to APIView."
return Upload-ReviewTokenFile $packageName $apiLabel $packageInfo.ReleaseStatus $reviewTokenFileName $packageInfo.Version $packagePath
Expand Down

0 comments on commit cf2f73d

Please sign in to comment.