Skip to content

Commit 34c3658

Browse files
committed
Minor fixes -- but still there
1 parent 29756e0 commit 34c3658

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

tools/ChangelogTools.psm1

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,18 @@ function New-ChangeLogSection
263263
foreach ($item in $category.Value)
264264
{
265265
# Set up the pieces needed for a changelog entry
266-
$project = $item.Change.Commit.Repository
267266
$link = if ($item.PRLink) { $item.PRLink } else { $org = $item.Change.Commit.Organization; "https://github.com/$org/$project" }
268267
$thanks = $item.Thanks
269268

270-
$issueNumber = if ($item.Change.IssueNumber -ge 0)
269+
if ($item.Change.IssueNumber -ge 0)
271270
{
272-
$item.Change.IssueNumber
271+
$project = $item.Change.ClosedIssues[0].Repository
272+
$issueNumber = $item.Change.IssueNumber
273273
}
274274
elseif ($item.Change.PRNumber -ge 0)
275275
{
276-
$item.Change.PRNumber
277-
}
278-
else
279-
{
280-
$null
276+
$project = $item.PR.Repository
277+
$issueNumber = $item.Change.PRNumber
281278
}
282279

283280
# Add the list bullet

tools/GitHubTools.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ filter Get-GitHubIssue
634634
$issueResponse = Invoke-RestMethod @irmParams
635635

636636
return [GitHubIssue]@{
637-
Organization = $Organization
638-
Repository = $Repository
639-
Number = $Number
637+
Organization = $IssueInfo.Organization
638+
Repository = $IssueInfo.Repository
639+
Number = $IssueInfo.Number
640640
RawResponse = $issueResponse
641641
Body = $issueResponse.body
642642
Labels = $issueResponse.labels.name

tools/changelog/updateChangelog.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ Submit-GitChanges -RepositoryLocation $cloneLocation -File $GalleryFileName -Bra
158158

159159
#region vscode-PowerShell Changelog
160160

161-
Wait-Debugger
162-
163161
$psesChangelogPostamble = ($psesChangelogSection -split "`n")
164162
$psesChangelogPostamble = $psesChangelogPostamble[2..$psesChangelogPostamble.Length]
165163
$psesChangelogPostamble = $psesChangelogPostamble -join "`n"

0 commit comments

Comments
 (0)