Skip to content

Commit ed8bd13

Browse files
azure-sdkheaths
andauthored
Avoid unnecessary CHANGELOG release date prompt (Azure#33130)
Resolves #7261 Co-authored-by: Heath Stewart <heaths@microsoft.com>
1 parent 70bebbf commit ed8bd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/scripts/Prepare-Release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ if (Test-Path "Function:SetPackageVersion")
182182
{
183183
$replaceLatestEntryTitle = $true
184184
$latestVersion = Get-LatestReleaseDateFromChangeLog -ChangeLogLocation $packageProperties.ChangeLogPath
185-
if ($latestVersion)
185+
if ($latestVersion -and $latestVersion -ne $ParsedReleaseDate)
186186
{
187187
$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)."
188188
while (($readInput = Read-Host -Prompt $promptMessage) -notmatch '^[yn]$'){ }

0 commit comments

Comments
 (0)