We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ReleaseTools
1 parent c165b20 commit 1499865Copy full SHA for 1499865
tools/ReleaseTools.psm1
@@ -220,6 +220,7 @@ function New-DraftRelease {
220
[ValidateSet([RepoNames])]
221
[string]$RepositoryName
222
)
223
+ # TODO: Abstract this to return version components and reuse in `Update-Version`.
224
$Changelog = (Get-NewChangelog -RepositoryName $RepositoryName) -join "`n"
225
$Version = if ($Changelog -match '## (?<version>v\S+)') {
226
$Matches.version
@@ -230,8 +231,7 @@ function New-DraftRelease {
230
231
Name = $Version
232
Body = $ChangeLog
233
PreRelease = $Version -match '-preview'
- Confirm = $Confirm
234
- WhatIf = $WhatIf
+ # TODO: Pass -WhatIf and -Confirm parameters correctly.
235
}
236
Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName |
237
New-GitHubRelease @ReleaseParams
0 commit comments