# Wrapper Script for ChangeLog Verification in a PR [CmdletBinding()] param ( [String]$PackagePropertiesFolder ) Set-StrictMode -Version 3 . (Join-Path $PSScriptRoot common.ps1) # find which packages we need to confirm the changelog for $packageProperties = Get-ChildItem -Recurse "$PackagePropertiesFolder" *.json # grab the json file, then confirm the changelog entry for it $allPassing = $true foreach($propertiesFile in $packageProperties) { $PackageProp = Get-Content -Path $propertiesFile | ConvertFrom-Json $validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.ChangeLogPath -VersionString $PackageProp.Version -ForRelease $false if (-not $validChangeLog) { $allPassing = $false } } if (!$allPassing) { exit 1 } exit 0