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