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 {
220
220
[ValidateSet ([RepoNames ])]
221
221
[string ]$RepositoryName
222
222
)
223
+ # TODO: Abstract this to return version components and reuse in `Update-Version`.
223
224
$Changelog = (Get-NewChangelog - RepositoryName $RepositoryName ) -join " `n "
224
225
$Version = if ($Changelog -match ' ## (?<version>v\S+)' ) {
225
226
$Matches.version
@@ -230,8 +231,7 @@ function New-DraftRelease {
230
231
Name = $Version
231
232
Body = $ChangeLog
232
233
PreRelease = $Version -match ' -preview'
233
- Confirm = $Confirm
234
- WhatIf = $WhatIf
234
+ # TODO: Pass -WhatIf and -Confirm parameters correctly.
235
235
}
236
236
Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName |
237
237
New-GitHubRelease @ReleaseParams
You can’t perform that action at this time.
0 commit comments