Skip to content

Commit

Permalink
fixed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Haynes committed Oct 10, 2018
1 parent f9e6dc5 commit 90c9211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/Release/Release.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ function Update-ReleaseNotes
$changelogContent = Get-Content -Path $changelogPath -Raw

$unreleasedHeaderReplace = New-Object System.Text.StringBuilder
$null = $unreleasedHeaderReplace.AppendLine('### Unreleased')
$null = $unreleasedHeaderReplace.AppendLine('## Unreleased')
$null = $unreleasedHeaderReplace.AppendLine('')
$null = $unreleasedHeaderReplace.AppendLine("### $ModuleVersion")
$null = $unreleasedHeaderReplace.AppendLine("## $ModuleVersion")

$changelogContent = $changelogContent -replace '###\sUnreleased',
$changelogContent = $changelogContent -replace '##\sUnreleased',
$unreleasedHeaderReplace.ToString().Trim()

Set-Content -Path $changelogPath -Value $changelogContent.Trim()
Expand Down

0 comments on commit 90c9211

Please sign in to comment.