Skip to content

Commit bb93b77

Browse files
committed
Fix bug in ReleaseTools with Confirm in CI
1 parent 3599847 commit bb93b77

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tools/ReleaseTools.psm1

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,12 @@ function New-ReleasePR {
368368
$Repo = Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName
369369

370370
$Params = @{
371-
Head = $Branch
372-
Base = "master"
373-
Draft = $true
374-
Title = "Release ``v$Version``"
375-
Body = "Automated PR for new release!"
376-
WhatIf = $WhatIfPreference
377-
Confirm = $ConfirmPreference
371+
Head = $Branch
372+
Base = "master"
373+
Draft = $true
374+
Title = "Release ``v$Version``"
375+
Body = "Automated PR for new release!"
376+
# TODO: Fix passing Confirm/WhatIf (again)
378377
}
379378

380379
$PR = $Repo | New-GitHubPullRequest @Params
@@ -417,8 +416,7 @@ function New-DraftRelease {
417416
PreRelease = [bool]$Version.PreReleaseLabel
418417
OwnerName = "PowerShell"
419418
RepositoryName = $RepositoryName
420-
WhatIf = $WhatIfPreference
421-
Confirm = $ConfirmPreference
419+
# TODO: Fix passing Confirm/WhatIf (again)
422420
}
423421

424422
$Release = New-GitHubRelease @ReleaseParams

0 commit comments

Comments
 (0)