Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2021.7.0-preview #3463

Merged
merged 5 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vsts-ci/templates/release-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ steps:
displayName: 'Download Artifacts from PowerShellEditorServices'
inputs:
source: specific
project: '8e2735c1-3674-408a-bcab-87f089ea29d5'
pipeline: 1056
project: 'PowerShellEditorServices'
pipeline: 36
preferTriggeringPipeline: true
allowPartiallySucceededBuilds: true
artifact: 'PowerShellEditorServices'
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# PowerShell Extension Release History

## v2021.7.0-preview
### Thursday, July 15, 2021

#### [vscode-powershell](https://github.com/PowerShell/vscode-powershell)

- ✨ 👷 [vscode-powershell #3458](https://github.com/PowerShell/vscode-powershell/pull/3458) - Automate more of the release.
- ✨ 👷 [vscode-powershell #3439](https://github.com/PowerShell/vscode-powershell/pull/3439) - Fix `Package` task.

#### [PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices)

- ✨ 🚨 [PowerShellEditorServices #1522](https://github.com/PowerShell/PowerShellEditorServices/pull/1522) - Run new PSReadLine test on Windows.
- ✨ 📖 [PowerShellEditorServices #1519](https://github.com/PowerShell/PowerShellEditorServices/pull/1519) - Update README.md. (Thanks @vladdoster!)
- ✨ 🙏 [PowerShellEditorServices #1493](https://github.com/PowerShell/PowerShellEditorServices/pull/1514) - Load only bundled `PSReadLine`.
- 🐛 👷 [PowerShellEditorServices #1513](https://github.com/PowerShell/PowerShellEditorServices/pull/1513) - Import `InvokePesterStub.ps1` from `vscode-powershell` (with history).
- 🐛 🛫 [PowerShellEditorServices #1503](https://github.com/PowerShell/PowerShellEditorServices/pull/1504) - Handle `incomingSettings` and `profileObject` being null. (Thanks @dkattan!)


## v2021.6.2
### Thursday, June 24, 2021

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "powershell",
"displayName": "PowerShell",
"version": "2021.6.2",
"preview": false,
"name": "powershell-preview",
"displayName": "PowerShell Preview",
"version": "2021.7.0",
"preview": true,
"publisher": "ms-vscode",
"description": "Develop PowerShell modules, commands and scripts in Visual Studio Code!",
"description": "(Preview) Develop PowerShell modules, commands and scripts in Visual Studio Code!",
"engines": {
"vscode": "^1.53.0"
},
Expand Down
19 changes: 11 additions & 8 deletions tools/ReleaseTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,9 @@ function New-ReleasePR {
git push origin $Branch
}

$LabelParams = @{
OwnerName = "PowerShell"
RepositoryName = $RepositoryName
Label = "Ignore"
}
$Repo = Get-GitHubRepository -OwnerName PowerShell -RepositoryName $RepositoryName

$PRParams = @{
$Params = @{
Head = $Branch
Base = "master"
Draft = $true
Expand All @@ -381,9 +377,13 @@ function New-ReleasePR {
Confirm = $ConfirmPreference
}

$PR = Get-GitHubLabel @LabelParams | New-GitHubPullRequest @PRParams
$PR = $Repo | New-GitHubPullRequest @Params
Write-Host "Draft PR URL: $($PR.html_url)"

# NOTE: The API is weird. According to GitHub, all PRs are Issues, so this
# works, but the module doesn't support it as easily as it could.
$Repo | Add-GitHubIssueLabel -Issue $PR.PullRequestNumber -LabelName "Ignore"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Pop-Location
}

Expand Down Expand Up @@ -424,7 +424,10 @@ function New-DraftRelease {
$Release = New-GitHubRelease @ReleaseParams
if ($Release) {
Write-Host "Draft release URL: $($Release.html_url)"
# NOTE: We must loop around `New-GitHubReleaseAsset` so we can pipe
# `$Release` or it can fail to find the newly created release by its ID
# (probably a race condition).
Write-Host "Uploading assets..."
$Assets | New-GitHubReleaseAsset -Release $Release.Id
$Assets | ForEach-Object { $Release | New-GitHubReleaseAsset -Path $_ }
}
}