From 2199af153d0a1af82fd44cae23bc86f2a3e2c9e2 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 26 Jul 2022 11:51:18 -0700 Subject: [PATCH 1/4] Add PSES version to client changelog --- tools/ReleaseTools.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ReleaseTools.psm1 b/tools/ReleaseTools.psm1 index b378056b56..c346714f3b 100644 --- a/tools/ReleaseTools.psm1 +++ b/tools/ReleaseTools.psm1 @@ -252,7 +252,7 @@ function Update-Changelog { "" $Bullets "" - "#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices)" + "#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) v$(Get-Version -RepositoryName PowerShellEditorServices)" "" (Get-FirstChangelog -RepositoryName "PowerShellEditorServices").Where({ $_.StartsWith("- ") }, "SkipUntil") ) From 807fa765d3b2c6ef139db54e7cdb58d8e32fa4b4 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 26 Jul 2022 11:57:11 -0700 Subject: [PATCH 2/4] Refactor `New-Release` into `New-ReleaseBundle` Where the former acts on one repository, and the latter acts on both. --- tools/ReleaseTools.psm1 | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/tools/ReleaseTools.psm1 b/tools/ReleaseTools.psm1 index c346714f3b..29f62e835f 100644 --- a/tools/ReleaseTools.psm1 +++ b/tools/ReleaseTools.psm1 @@ -416,7 +416,7 @@ function New-ReleasePR { <# .SYNOPSIS - Kicks off the whole release process. + Kicks off the whole release process for one of the repositories. .DESCRIPTION This first updates the changelog (which creates and checks out the `release` branch), commits the changes, updates the version (and commits), pushes the @@ -432,6 +432,28 @@ function New-ReleasePR { assets to the marketplace and gallery. #> function New-Release { + [CmdletBinding(SupportsShouldProcess)] + param( + [Parameter(Mandatory)] + [ValidateSet([RepoNames])] + [string]$RepositoryName, + + [Parameter(Mandatory)] + [ValidateScript({ $_.StartsWith("v") })] + [string]$Version + ) + Update-Changelog -RepositoryName $RepositoryName -Version $Version + Update-Version -RepositoryName $RepositoryName + New-ReleasePR -RepositoryName $RepositoryName +} + +<# +.SYNOPSIS + Kicks off the whole release process for both repositories. +.DESCRIPTION + This just simplifies the calling of `New-Release` for both repositories. +#> +function New-ReleaseBundle { [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory)] @@ -447,9 +469,7 @@ function New-Release { "PowerShellEditorServices" { $PsesVersion } "vscode-powershell" { $VsceVersion } } - Update-Changelog -RepositoryName $_ -Version $Version - Update-Version -RepositoryName $_ - New-ReleasePR -RepositoryName $_ + New-Release -RepositoryName $_ -Version $Version } } From a40c65854485fe4767f052fd657a576ca1265fa0 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 26 Jul 2022 12:00:47 -0700 Subject: [PATCH 3/4] Update CHANGELOG for `v2022.7.2-preview` --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3727714b0c..40ef53dcd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # PowerShell Extension Release History +## v2022.7.2-preview +### Tuesday, July 26, 2022 + +#### [vscode-powershell](https://github.com/PowerShell/vscode-powershell) + +- ✨ 💭 [vscode-powershell #4093](https://github.com/PowerShell/vscode-powershell/pull/4093) - Change `storageUri` to `globalStorageUri` for log and session files. + +#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) v3.4.7 + +No changes. + ## v2022.7.1-preview ### Monday, July 25, 2022 From a75bb88d081ecc390201a2f956efa5d330d22a33 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 26 Jul 2022 12:00:47 -0700 Subject: [PATCH 4/4] Bump version to `v2022.7.2-preview` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 061a1f030b..ad74752d3f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "powershell-preview", "displayName": "PowerShell Preview", - "version": "2022.7.1", + "version": "2022.7.2", "preview": true, "publisher": "ms-vscode", "description": "(Preview) Develop PowerShell modules, commands and scripts in Visual Studio Code!",