Skip to content

Commit caa3bb4

Browse files
Robert Holtrjmholt
Robert Holt
authored andcommitted
Fix bugs
1 parent f7f03cb commit caa3bb4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tools/ChangelogTools.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ filter New-ChangelogEntry
154154
$repository = $Change.Commit.Repository
155155

156156
$issueLink = if ($Change.IssueNumber -ge 0) { $Change.ClosedIssues[0].GetHtmlUri() } else { $null }
157-
$prLink = if ($Change.PRNumber -ge 0) { "https://github.com/$organization/$repository/$($Change.PRNumber)" } else { $null }
157+
$prLink = if ($Change.PRNumber -ge 0) { "https://github.com/$organization/$repository/pull/$($Change.PRNumber)" } else { $null }
158158
$thanks = if ($Change.ContributingUser -notin $NoThanks) { $Change.ContributingUser } else { $null }
159159

160160
$subject = $Change.Subject
@@ -372,5 +372,4 @@ filter Skip-IgnoredChange
372372
}
373373
}
374374

375-
376375
Export-ModuleMember -Function Get-ChangeInfoFromCommit,New-ChangelogEntry,New-ChangelogSection,Skip-IgnoredChange

tools/changelog/updateChangelog.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ $psesChangelogSection = Get-GitCommit -SinceRef $SinceRef -UntilRef $UntilRef -G
138138
Get-ChangeInfoFromCommit -GitHubToken $GitHubToken |
139139
Skip-IgnoredChange @ignore |
140140
New-ChangelogEntry @clEntryParams |
141-
New-ChangelogSection @clSectionParams -Preamble "#### [$psesRepoName](https://github.com/$Organization/$psesRepoName)"
141+
New-ChangelogSection @clSectionParams
142142

143143
$cloneLocation = Join-Path ([System.IO.Path]::GetTempPath()) "${psesRepoName}_changelogupdate"
144144

@@ -157,9 +157,8 @@ Submit-GitChanges -RepositoryLocation $cloneLocation -File $GalleryFileName -Bra
157157
#endregion
158158

159159
#region vscode-PowerShell Changelog
160-
161-
$psesChangelogPostamble = ($psesChangelogSection -split "`n")
162-
$psesChangelogPostamble = $psesChangelogPostamble[2..$psesChangelogPostamble.Length]
160+
$psesChangelogPostamble = $psesChangelogSection -split "`n"
161+
$psesChangelogPostamble = @("#### [$psesRepoName](https://github.com/$Organization/$psesRepoName)") + $psesChangelogPostamble[2..$psesChangelogPostamble.Length-1]
163162
$psesChangelogPostamble = $psesChangelogPostamble -join "`n"
164163

165164
$psextChangelogSection = Get-GitCommit -SinceRef $SinceRef -UntilRef $UntilRef -GitHubToken $GitHubToken -RepositoryPath $PSExtensionRepositoryPath |

0 commit comments

Comments
 (0)