@@ -416,7 +416,7 @@ function New-ReleasePR {
416
416
417
417
<#
418
418
. SYNOPSIS
419
- Kicks off the whole release process.
419
+ Kicks off the whole release process for one of the repositories .
420
420
. DESCRIPTION
421
421
This first updates the changelog (which creates and checks out the `release`
422
422
branch), commits the changes, updates the version (and commits), pushes the
@@ -432,6 +432,28 @@ function New-ReleasePR {
432
432
assets to the marketplace and gallery.
433
433
#>
434
434
function 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 {
435
457
[CmdletBinding (SupportsShouldProcess )]
436
458
param (
437
459
[Parameter (Mandatory )]
@@ -447,9 +469,7 @@ function New-Release {
447
469
" PowerShellEditorServices" { $PsesVersion }
448
470
" vscode-powershell" { $VsceVersion }
449
471
}
450
- Update-Changelog - RepositoryName $_ - Version $Version
451
- Update-Version - RepositoryName $_
452
- New-ReleasePR - RepositoryName $_
472
+ New-Release - RepositoryName $_ - Version $Version
453
473
}
454
474
}
455
475
0 commit comments