Skip to content

Commit

Permalink
Skip automatic API review for managment packages (#15987)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored Jan 6, 2021
1 parent e5b7b5c commit 7d860f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ function Find-python-Artifacts-For-Apireview($artifactDir, $artifactName)
{
# Find wheel file in given artifact directory
# Make sure to pick only package with given artifact name
# Skip auto API review creation for management packages
if ($artifactName -match "mgmt")
{
Write-Host "Skipping automatic API review for management artifact $($artifactName)"
return $null
}

$packageName = $artifactName + "-"
Write-Host "Searching for $($packageName) wheel in artifact path $($artifactDir)"
$files = Get-ChildItem "${artifactDir}" | Where-Object -FilterScript {$_.Name.StartsWith($packageName) -and $_.Name.EndsWith(".whl")}
Expand Down

0 comments on commit 7d860f5

Please sign in to comment.