File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments