From 8509778743c42d9a77f3d20fe2bd22b9d70bf666 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:44:46 -0800 Subject: [PATCH] Avoid unnecessary CHANGELOG release date prompt (#39948) Resolves #7261 Co-authored-by: Heath Stewart --- eng/common/scripts/Prepare-Release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index 63038872bdb7a..e3c18af350e03 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -182,7 +182,7 @@ if (Test-Path "Function:SetPackageVersion") { $replaceLatestEntryTitle = $true $latestVersion = Get-LatestReleaseDateFromChangeLog -ChangeLogLocation $packageProperties.ChangeLogPath - if ($latestVersion) + if ($latestVersion -and $latestVersion -ne $ParsedReleaseDate) { $promptMessage = "The latest entry in the CHANGELOG.md already has a release date. Do you want to replace the latest entry title? Please enter (y or n)." while (($readInput = Read-Host -Prompt $promptMessage) -notmatch '^[yn]$'){ }