From be8cf03ed02e12e84eecbce8d3334e5badebcfcb Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 4 Dec 2025 10:17:01 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 13193 (#6856) * Fix property name for skipVerifyChangeLog * Apply suggestion from @raych1 * Refactor ShouldVerifyChangeLog function condition * Apply suggestion from @raych1 --------- Co-authored-by: Ray Chen --- eng/common/scripts/Verify-ChangeLogs.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Verify-ChangeLogs.ps1 b/eng/common/scripts/Verify-ChangeLogs.ps1 index 242d00b3d..3b09a8cee 100644 --- a/eng/common/scripts/Verify-ChangeLogs.ps1 +++ b/eng/common/scripts/Verify-ChangeLogs.ps1 @@ -11,8 +11,10 @@ Set-StrictMode -Version 3 function ShouldVerifyChangeLog ($PkgArtifactDetails) { if ($PkgArtifactDetails) { - if ($PkgArtifactDetails.PSObject.Properties["skipVerifyChangeLog"] -eq $true) { - return $false + if ($PkgArtifactDetails.PSObject.Properties.Name -contains "skipVerifyChangeLog") { + if ($PkgArtifactDetails.skipVerifyChangeLog) { + return $false + } } return $true