Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG/6.2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 6.2 Changelog

## v6.2.4 - 01/27/2020
## [6.2.4] - 2020-01-27

### General Cmdlet Updates and Fixes

Expand Down Expand Up @@ -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
Expand Down
15 changes: 13 additions & 2 deletions tools/releaseTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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'
Expand All @@ -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
""
}
Expand Down