From 0f6cf2d8bd7d2b02ad268690c9e562384d82a96e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:05:29 -0700 Subject: [PATCH] Docs onboarding: ValidatePackageForOnboarding2 -> PackageIsValidForDocsOnboarding (#23509) Co-authored-by: Daniel Jurek --- eng/common/scripts/Update-DocsMsPackages.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 00ab4b458d..fc422872b0 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -54,7 +54,7 @@ function GetMetadata($moniker) { return $metadata } -function ValidatePackageForOnboarding2($package) { +function PackageIsValidForDocsOnboarding($package) { if (!(Test-Path "Function:$ValidateDocsMsPackagesFn")) { return $true } @@ -88,7 +88,7 @@ foreach ($moniker in $MONIKERS) { if ($package.ContainsKey('_SkipDocsValidation') -and $true -eq $package['_SkipDocsValidation']) { Write-Host "Skip validation for package: $($packageIdentity)" } - elseif (!(ValidatePackageForOnboarding2 $package)) { + elseif (!(PackageIsValidForDocsOnboarding $package)) { LogWarning "Skip adding package that did not pass validation: $($packageIdentity)" continue } @@ -101,7 +101,7 @@ foreach ($moniker in $MONIKERS) { $oldPackage = $alreadyOnboardedPackages[$packageIdentity] if ($oldPackage.Version -ne $package.Version) { - if (!(ValidatePackageForOnboarding2 $package)) { + if (!(PackageIsValidForDocsOnboarding $package)) { LogWarning "Omitting package that failed validation: $($packageIdentity)@$($package.Version)" continue }