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 <raychen@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-12-04 10:17:01 -08:00 committed by GitHub
parent b1a3020bf3
commit be8cf03ed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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