@@ -417,7 +417,7 @@ function New-ReleasePR {
417
417
418
418
<#
419
419
. SYNOPSIS
420
- Kicks off the whole release process.
420
+ Kicks off the whole release process for one of the repositories .
421
421
. DESCRIPTION
422
422
This first updates the changelog (which creates and checks out the `release`
423
423
branch), commits the changes, updates the version (and commits), pushes the
@@ -433,6 +433,28 @@ function New-ReleasePR {
433
433
assets to the marketplace and gallery.
434
434
#>
435
435
function New-Release {
436
+ [CmdletBinding (SupportsShouldProcess )]
437
+ param (
438
+ [Parameter (Mandatory )]
439
+ [ValidateSet ([RepoNames ])]
440
+ [string ]$RepositoryName ,
441
+
442
+ [Parameter (Mandatory )]
443
+ [ValidateScript ({ $_.StartsWith (" v" ) })]
444
+ [string ]$Version
445
+ )
446
+ Update-Changelog - RepositoryName $RepositoryName - Version $Version
447
+ Update-Version - RepositoryName $RepositoryName
448
+ New-ReleasePR - RepositoryName $RepositoryName
449
+ }
450
+
451
+ <#
452
+ . SYNOPSIS
453
+ Kicks off the whole release process for both repositories.
454
+ . DESCRIPTION
455
+ This just simplifies the calling of `New-Release` for both repositories.
456
+ #>
457
+ function New-ReleaseBundle {
436
458
[CmdletBinding (SupportsShouldProcess )]
437
459
param (
438
460
[Parameter (Mandatory )]
@@ -448,9 +470,7 @@ function New-Release {
448
470
" PowerShellEditorServices" { $PsesVersion }
449
471
" vscode-powershell" { $VsceVersion }
450
472
}
451
- Update-Changelog - RepositoryName $_ - Version $Version
452
- Update-Version - RepositoryName $_
453
- New-ReleasePR - RepositoryName $_
473
+ New-Release - RepositoryName $_ - Version $Version
454
474
}
455
475
}
456
476
0 commit comments