diff --git a/CHANGELOG/6.2.md b/CHANGELOG/6.2.md index 2aca4fc74..74a33e3c3 100644 --- a/CHANGELOG/6.2.md +++ b/CHANGELOG/6.2.md @@ -1,6 +1,6 @@ # 6.2 Changelog -## v6.2.4 - 01/27/2020 +## [6.2.4] - 2020-01-27 ### General Cmdlet Updates and Fixes @@ -794,6 +794,7 @@ - Update `CONTRIBUTION.md` about adding an empty line after the copyright header (#7706) (Thanks @iSazonov!) - Update docs about .NET Core version `2.0` to be about version `2.x` (#7467) (Thanks @bergmeister!) +[6.2.4]: https://github.com/PowerShell/PowerShell/compare/v6.2.3...v6.2.4 [6.2.3]: https://github.com/PowerShell/PowerShell/compare/v6.2.2...v6.2.3 [6.2.2]: https://github.com/PowerShell/PowerShell/compare/v6.2.1...v6.2.2 [6.2.1]: https://github.com/PowerShell/PowerShell/compare/v6.2.0...v6.2.1 diff --git a/tools/releaseTools.psm1 b/tools/releaseTools.psm1 index 1e7f68710..0366c7122 100644 --- a/tools/releaseTools.psm1 +++ b/tools/releaseTools.psm1 @@ -137,9 +137,12 @@ function New-CommitNode function Get-ChangeLog { param( - [Parameter(Mandatory)] + [Parameter(Mandatory = $true)] [string]$LastReleaseTag, + [Parameter(Mandatory = $true)] + [string]$ThisReleaseTag, + [Parameter(Mandatory)] [string]$Token, @@ -328,6 +331,12 @@ function Get-ChangeLog throw "Some PRs are tagged multiple times or have no tags." } + # Write output + + $version = $ThisReleaseTag.TrimStart('v') + + Write-Output "## [${version}] - $(Get-Date -Format yyyy-MM-dd)`n" + PrintChangeLog -clSection $clUntagged -sectionTitle 'UNTAGGED - Please classify' PrintChangeLog -clSection $clBreakingChange -sectionTitle 'Breaking Changes' PrintChangeLog -clSection $clEngine -sectionTitle 'Engine Updates and Fixes' @@ -339,11 +348,13 @@ function Get-ChangeLog PrintChangeLog -clSection $clTest -sectionTitle 'Tests' PrintChangeLog -clSection $clBuildPackage -sectionTitle 'Build and Packaging Improvements' PrintChangeLog -clSection $clDocs -sectionTitle 'Documentation and Help Content' + + Write-Output "[${version}]: https://github.com/PowerShell/PowerShell/compare/${$LastReleaseTag}...${ThisReleaseTag}`n" } function PrintChangeLog($clSection, $sectionTitle) { if ($clSection.Count -gt 0) { - "### $sectionTitle" + "### $sectionTitle`n" $clSection | ForEach-Object -MemberName ChangeLogMessage "" }