Skip to content

Commit

Permalink
Avoid unnecessary CHANGELOG release date prompt (#39948)
Browse files Browse the repository at this point in the history
Resolves #7261

Co-authored-by: Heath Stewart <[email protected]>
  • Loading branch information
azure-sdk and heaths authored Nov 13, 2023
1 parent 4b3686a commit 8509778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/scripts/Prepare-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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]$'){ }
Expand Down

0 comments on commit 8509778

Please sign in to comment.