Skip to content

Commit 1499865

Browse files
committed
Fix bug in ReleaseTools module
1 parent c165b20 commit 1499865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ReleaseTools.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ function New-DraftRelease {
220220
[ValidateSet([RepoNames])]
221221
[string]$RepositoryName
222222
)
223+
# TODO: Abstract this to return version components and reuse in `Update-Version`.
223224
$Changelog = (Get-NewChangelog -RepositoryName $RepositoryName) -join "`n"
224225
$Version = if ($Changelog -match '## (?<version>v\S+)') {
225226
$Matches.version
@@ -230,8 +231,7 @@ function New-DraftRelease {
230231
Name = $Version
231232
Body = $ChangeLog
232233
PreRelease = $Version -match '-preview'
233-
Confirm = $Confirm
234-
WhatIf = $WhatIf
234+
# TODO: Pass -WhatIf and -Confirm parameters correctly.
235235
}
236236
Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName |
237237
New-GitHubRelease @ReleaseParams

0 commit comments

Comments
 (0)