@@ -416,7 +416,7 @@ function New-ReleasePR {
416416
417417<#
418418. SYNOPSIS
419- Kicks off the whole release process.
419+ Kicks off the whole release process for one of the repositories .
420420. DESCRIPTION
421421 This first updates the changelog (which creates and checks out the `release`
422422 branch), commits the changes, updates the version (and commits), pushes the
@@ -432,6 +432,28 @@ function New-ReleasePR {
432432 assets to the marketplace and gallery.
433433#>
434434function New-Release {
435+ [CmdletBinding (SupportsShouldProcess )]
436+ param (
437+ [Parameter (Mandatory )]
438+ [ValidateSet ([RepoNames ])]
439+ [string ]$RepositoryName ,
440+
441+ [Parameter (Mandatory )]
442+ [ValidateScript ({ $_.StartsWith (" v" ) })]
443+ [string ]$Version
444+ )
445+ Update-Changelog - RepositoryName $RepositoryName - Version $Version
446+ Update-Version - RepositoryName $RepositoryName
447+ New-ReleasePR - RepositoryName $RepositoryName
448+ }
449+
450+ <#
451+ . SYNOPSIS
452+ Kicks off the whole release process for both repositories.
453+ . DESCRIPTION
454+ This just simplifies the calling of `New-Release` for both repositories.
455+ #>
456+ function New-ReleaseBundle {
435457 [CmdletBinding (SupportsShouldProcess )]
436458 param (
437459 [Parameter (Mandatory )]
@@ -447,9 +469,7 @@ function New-Release {
447469 " PowerShellEditorServices" { $PsesVersion }
448470 " vscode-powershell" { $VsceVersion }
449471 }
450- Update-Changelog - RepositoryName $_ - Version $Version
451- Update-Version - RepositoryName $_
452- New-ReleasePR - RepositoryName $_
472+ New-Release - RepositoryName $_ - Version $Version
453473 }
454474}
455475
0 commit comments