Skip to content

Commit

Permalink
Clean-up changelog scripts (Azure#20779)
Browse files Browse the repository at this point in the history
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
  • Loading branch information
azure-sdk and weshaggard authored Sep 22, 2021
1 parent 518af90 commit eca1c81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 64 deletions.
61 changes: 0 additions & 61 deletions eng/common/scripts/Collect-ChangeLogs.ps1

This file was deleted.

7 changes: 4 additions & 3 deletions eng/common/scripts/Update-ChangeLog.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Unreleased: Default is true. If it is set to false, then today's date will be set in verion title. If it is True then title will show "Unreleased"
# ReplaceLatestEntryTitle: Replaces the latest changelog entry title.

[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[String]$Version,
Expand Down Expand Up @@ -74,21 +75,21 @@ if ($ChangeLogEntries.Contains($Version))
{
if ($ChangeLogEntries[$Version].ReleaseStatus -eq $ReleaseStatus)
{
LogWarning "Version [$Version] is already present in change log with specificed ReleaseStatus [$ReleaseStatus]. No Change made."
LogDebug "Version [$Version] is already present in change log with specificed ReleaseStatus [$ReleaseStatus]. No Change made."
exit(0)
}

if ($Unreleased -and ($ChangeLogEntries[$Version].ReleaseStatus -ne $ReleaseStatus))
{
LogWarning "Version [$Version] is already present in change log with a release date. Please review [$ChangelogPath]. No Change made."
LogDebug "Version [$Version] is already present in change log with a release date. Please review [$ChangelogPath]. No Change made."
exit(0)
}

if (!$Unreleased -and ($ChangeLogEntries[$Version].ReleaseStatus -ne $CHANGELOG_UNRELEASED_STATUS))
{
if ((Get-Date ($ChangeLogEntries[$Version].ReleaseStatus).Trim("()")) -gt (Get-Date $ReleaseStatus.Trim("()")))
{
LogWarning "New ReleaseDate for version [$Version] is older than existing release date in changelog. Please review [$ChangelogPath]. No Change made."
LogDebug "New ReleaseDate for version [$Version] is older than existing release date in changelog. Please review [$ChangelogPath]. No Change made."
exit(0)
}
}
Expand Down
1 change: 1 addition & 0 deletions eng/common/scripts/Verify-ChangeLog.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Wrapper Script for ChangeLog Verification
[CmdletBinding()]
param (
[String]$ChangeLogLocation,
[String]$VersionString,
Expand Down

0 comments on commit eca1c81

Please sign in to comment.