Skip to content

Commit caef019

Browse files
committed
Fix more bugs in ReleaseTools
Missed this change to the branch name.
1 parent 511e07c commit caef019

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/ReleaseTools.psm1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,20 +384,19 @@ function New-ReleasePR {
384384
[string]$RepositoryName
385385
)
386386
$Version = Get-Version -RepositoryName $RepositoryName
387-
$Branch = "release/v$Version"
388387

389388
Update-Branch -RepositoryName $RepositoryName
390389
Use-Repository -RepositoryName $RepositoryName -Script {
391-
if ($PSCmdlet.ShouldProcess("$RepositoryName/$Branch", "git push")) {
392-
Write-Host "Pushing branch ``$Branch``..."
393-
git push origin $Branch
390+
if ($PSCmdlet.ShouldProcess("$RepositoryName/release", "git push")) {
391+
Write-Host "Pushing release branch..."
392+
git push --force-with-lease origin release
394393
}
395394
}
396395

397396
$Repo = Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName
398397

399398
$Params = @{
400-
Head = $Branch
399+
Head = "release"
401400
Base = "master"
402401
Draft = $true
403402
Title = "Release ``v$Version``"

0 commit comments

Comments
 (0)