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 {
384
384
[string ]$RepositoryName
385
385
)
386
386
$Version = Get-Version - RepositoryName $RepositoryName
387
- $Branch = " release/v$Version "
388
387
389
388
Update-Branch - RepositoryName $RepositoryName
390
389
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
394
393
}
395
394
}
396
395
397
396
$Repo = Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName
398
397
399
398
$Params = @ {
400
- Head = $Branch
399
+ Head = " release "
401
400
Base = " master"
402
401
Draft = $true
403
402
Title = " Release `` v$Version `` "
You can’t perform that action at this time.
0 commit comments