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

update master with upstream #29

Merged
merged 211 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
9b8916f
Bump Microsoft.ApplicationInsights from 2.19.0 to 2.20.0 (#16642)
dependabot[bot] Jan 4, 2022
0834c65
Add AMSI method invocation logging as experimental feature (#16496)
PaulHigin Jan 4, 2022
a9b14a1
Add `exec` cmdlet for bash compatibility (#16462)
SteveL-MSFT Jan 4, 2022
2e8009b
Change nuget release yaml to use `UseDotNet` task (#16701)
SteveL-MSFT Jan 5, 2022
e2f39fa
Reduce the amount of startup banner text (#16516)
rkeithhill Jan 10, 2022
0f21156
Fix `$PSNativeCommandArgPassing` = `Windows` to handle empty args cor…
SteveL-MSFT Jan 12, 2022
1cb3553
Update change log to remove a broken URL (#16735)
daxian-dbw Jan 12, 2022
cce64f4
Report error when PowerShell built-in modules are missing (#16628)
daxian-dbw Jan 12, 2022
ed6e058
Add `-StrictMode` to `Invoke-Command` to allow specifying strict mode…
Thomas-Yu Jan 12, 2022
87b61a0
remove assert that is incorrect and affecting our tests (#16588)
SteveL-MSFT Jan 12, 2022
83a809b
Make `Measure-Object` ignore missing properties unless running in str…
KiwiThePoodle Jan 13, 2022
da7c52a
Add lock and null check to remoting internals (#16542) (#16683)
SergeyZalyadeev Jan 13, 2022
686c84c
Add new parameter to `Start-Sleep`: `[-Duration] <timespan>` (#16185)
IISResetMe Jan 14, 2022
186d6be
Use NotifyEndApplication to re-enable VT mode (#16612)
daxian-dbw Jan 14, 2022
8f0fc9e
Replace the broken link about pull request (#16771)
daxian-dbw Jan 18, 2022
ee90976
Update Engine Working Group members (#16780)
daxian-dbw Jan 20, 2022
2c27229
Update the expect .NET SDK quality to GA for installing dotnet (#16784)
adityapatwardhan Jan 20, 2022
3eca7c0
Adds a .ResolvedTarget Property to File-System Items to Reflect a Sym…
hammy275 Jan 21, 2022
f83660e
Seal `ClientRemotePowerShell` (#15802)
xtqqczze Jan 21, 2022
0302b1f
Support OpenSSH options for PSRP over SSH commands (#12802)
BrannenGH Jan 22, 2022
ae38dad
Let macOS installer run without Rosetta on Apple Silicon (#16742)
dahlia Jan 24, 2022
0c60056
Fix build for new `InvokeCommand` attributes (#16800)
PaulHigin Jan 25, 2022
5e005b8
Remove all references to `cmake` for the builds in this repo (#16578)
TravisEz13 Jan 26, 2022
d45ff6a
Switch to our custom images for build and release (#16801)
TravisEz13 Jan 26, 2022
9f722ef
Use more efficient platform detection API (#16760)
iSazonov Jan 27, 2022
8c53252
Add support to allow invoking method with generic type arguments (#12…
vexx32 Jan 27, 2022
0b80b50
Add Linux package dependencies for packaging (#16807)
TravisEz13 Jan 27, 2022
0ef30e5
Fix typo in PowerShellExecutionHelper.cs (#16776)
eltociear Jan 28, 2022
0bb206a
Improve logic for updating .NET in CI (#16808)
JamesWTruher Jan 31, 2022
8af0834
Add SBOM manifest to nuget packages (#16711)
PaulHigin Jan 31, 2022
46e5af7
Update .NET SDK to 6.0.101 and fix `Microsoft.PowerShell.GlobalTool.S…
adityapatwardhan Feb 1, 2022
7d3260f
Add completion for loop labels after Break/Continue (#16438)
MartinGC94 Feb 1, 2022
79e3fa9
Bump the package `path-parse` from `1.0.6` to `1.0.7` (#16820)
dependabot[bot] Feb 1, 2022
47b4aa5
Update `markdownlint` to the latest version (#16825)
daxian-dbw Feb 2, 2022
e840db8
Add experimental json update automation (#16833)
adityapatwardhan Feb 2, 2022
b7f8556
Remove WiX install (#16834)
TravisEz13 Feb 2, 2022
bbb11dd
Fix the clean block for generated proxy function (#16827)
daxian-dbw Feb 3, 2022
35ad64e
Add a couple fixes to generic method invocation (#16822)
daxian-dbw Feb 3, 2022
ce684c3
Fix automation to update experimental json files in GitHub action (#1…
adityapatwardhan Feb 4, 2022
434b238
Update experimental feature json files (#16838)
github-actions[bot] Feb 4, 2022
bcc1f10
Ensure alpine and arm SKUs have `powershell.config.json` file with ex…
adityapatwardhan Feb 4, 2022
a5d41c2
Use `FindFirstFileW` instead of `FindFirstFileExW` to correctly handl…
iSazonov Feb 5, 2022
30eac0a
Update to use `windows-latest` as the build agent image (#16831)
daxian-dbw Feb 8, 2022
7dd0c43
Add newly joined members to their respective Working Groups (#16849)
SteveL-MSFT Feb 8, 2022
cf75ac5
Refactor Global Tool packaging to include SBOM generation (#16860)
PaulHigin Feb 9, 2022
a9a235d
Prevent tab completion if the word to complete is a single dash (#16781)
ayousuf23 Feb 9, 2022
add08d3
Add warning messages when package precheck fails (#16867)
PaulHigin Feb 10, 2022
77caf71
Update projects and scripts to use .NET 7 preview 1 pre-release build…
adityapatwardhan Feb 16, 2022
fbae40d
Bump NJsonSchema from 10.5.2 to 10.6.9 (#16888)
dependabot[bot] Feb 16, 2022
1322689
Merged PR 19189: Fix pool syntax for deployments
TravisEz13 Feb 16, 2022
e3d9264
Use Start-PSBootStrap for installing .NET during nuget packaging
TravisEz13 Feb 16, 2022
9759535
Bump `Microsoft.NET.Test.Sdk` from 17.0.0 to 17.1.0 (#16891)
dependabot[bot] Feb 17, 2022
d8175fc
Install and Find AzCopy
TravisEz13 Feb 17, 2022
5d41c1f
Update readme and metadata for preview.2 release (#16895)
TravisEz13 Feb 17, 2022
abf3a89
Revert .NET 7 changes
TravisEz13 Feb 18, 2022
3a49e1f
Update to the latest .NET 6
TravisEz13 Feb 18, 2022
10bbd74
update wxs file
TravisEz13 Feb 18, 2022
31c14f2
Updated background invocation `&` operator to use `-WorkingDirectory`…
ayousuf23 Feb 21, 2022
102e828
Bump PSReadLine from 2.1.0 to 2.2.2 (#16910)
daxian-dbw Feb 23, 2022
369fb73
Merged PR 19248: Remove SkipExperimentalFeatureGeneration when buildi…
adityapatwardhan Feb 23, 2022
e1f52dd
Refactor module assembly loading logic to allow the whole module to b…
daxian-dbw Feb 23, 2022
8a004b3
opt-in to - name: BUILDSECMON_OPT_IN (#16911)
TravisEz13 Feb 23, 2022
e486f20
Merged PR 19268: Remove -Force from Start-PSBootstrap for SDK and glo…
adityapatwardhan Feb 24, 2022
be8866b
Merged PR 19269: Update the way we set DOTNET_ROOT for global tool tests
adityapatwardhan Feb 24, 2022
21b8c9e
Merged PR 19272: Fix DOTNET_ROOT if it is a link
adityapatwardhan Feb 24, 2022
c3a9bb8
Merged PR 19273: Add split-path so we point to the folder where dotnet
adityapatwardhan Feb 24, 2022
6c9f9b2
Merged PR 19274: Split target dynamically
adityapatwardhan Feb 24, 2022
47657f6
Merged PR 19284: Add change log for 7.3.0.preview.2
TravisEz13 Feb 24, 2022
8335f76
Revert "update wxs file"
TravisEz13 Feb 24, 2022
addfdd8
merge 'release/v7.3.0-preview.2' into master
TravisEz13 Feb 24, 2022
ee6bc95
Add the module `CompatPowerShellGet` to the allow-list of telemetry m…
StevenBucher98 Mar 1, 2022
df460b7
Add fix of process objects for processes that have exited. (#16946)
PaulHigin Mar 2, 2022
9b2d97e
Update a few tests to make them more stable in CI (#16944)
daxian-dbw Mar 3, 2022
102782f
Fix the parsing code for method generic arguments (#16937)
daxian-dbw Mar 3, 2022
c196e2f
Improve Hashtable completion in multiple scenarios (#16498)
MartinGC94 Mar 4, 2022
4711eb5
Roll back windows images used in testing to Windows Server 2019 (#16958)
anmenaga Mar 4, 2022
a3c4a16
Allow the `PSGetMemberBinder` to get value of `ByRef` property (#16956)
daxian-dbw Mar 4, 2022
25bc64f
Allow a collection that contains `Automation.Null` elements to be pip…
daxian-dbw Mar 5, 2022
fa03f18
Fix a typo in `CommandHelpProvider.cs` (#16949)
eltociear Mar 12, 2022
8d08301
Update `AzureFileCopy` task and fix the syntax for specifying `pool` …
daxian-dbw Mar 16, 2022
b46ac16
Update docs for the v7.2.2 release (#16979)
daxian-dbw Mar 16, 2022
1268a0a
Update .NET to 7.0.0-preview.2 build (#16930)
adityapatwardhan Mar 18, 2022
e22a427
Simplify Enum generator for the `-bnot` operator test (#17014)
JamesWTruher Mar 18, 2022
965095e
Do not pull dotnet updates from internal feed (#17007)
JamesWTruher Mar 18, 2022
9c44c1c
Fix typos in names of method (#17003)
al-cheb Mar 18, 2022
10027be
Add `-because` to the failing test to aid in debugging (#17030)
JamesWTruher Mar 18, 2022
8ad6420
Remove `EventLogLogProvider` and its related legacy code (#17027)
daxian-dbw Mar 19, 2022
79559df
Merged PR 19678: Update change log for v7.3.0-preview.3 release
daxian-dbw Mar 21, 2022
63e8d57
Update `README.md` and `metadata.json` for v7.3.0-preview.3 release (…
daxian-dbw Mar 21, 2022
1ff71d1
Merge the release branch `release/v7.3.0-preview.3` into master
daxian-dbw Mar 21, 2022
a6d0422
Add Custom Remote Connections Feature (#17011)
PaulHigin Mar 23, 2022
74a51aa
Use a random string for the missing help topic to improve the chances…
JamesWTruher Mar 23, 2022
b3632ed
Improve unique naming for tests (#17043)
JamesWTruher Mar 23, 2022
123373e
Prioritize `ValidateSet` completions over Enums for parameters (#15257)
MartinGC94 Mar 23, 2022
94eeb8e
Make `Stop-Service` only request needed privileges when not setting S…
kvprasoon Mar 23, 2022
5e6e7ca
Add `OutputType` attribute to various commands (#16962)
MartinGC94 Mar 24, 2022
c904d7f
Improve member auto completion (#16504)
MartinGC94 Mar 24, 2022
72e3d71
Update regex used to remove ANSI escape sequences to be more specific…
SteveL-MSFT Mar 25, 2022
b6b271c
Use new cask format (#17064)
TylerLeonhardt Mar 25, 2022
1b60940
Bump `Microsoft.CodeAnalysis.NetAnalyzers` (#17065)
dependabot[bot] Mar 25, 2022
23eddc9
Create checksum file for global tools (#17056)
adityapatwardhan Mar 25, 2022
dc0eff2
Add mariner 1.0 amd64 package (#17057)
TravisEz13 Mar 25, 2022
fe11ba4
Re-enable `PowerShellGet` tests targeting PowerShell gallery (#17062)
daxian-dbw Mar 25, 2022
9fc0e80
Update `dotnetmetadata.json` to accept .NET 7 preview 3 builds (#17063)
adityapatwardhan Mar 25, 2022
93a0f9b
Fix the version of the `Microsoft.CodeAnalysis.NetAnalyzers` package …
daxian-dbw Mar 28, 2022
788ffde
Ignore failure attempting to set console window title (#16948)
SteveL-MSFT Mar 30, 2022
ada5e95
Update dotnet-install script download link (#17086)
PaulHigin Mar 30, 2022
6d4c566
Skip failing scriptblock tests (#17093)
PaulHigin Mar 31, 2022
be99881
Update to the latest notice file (#16437)
github-actions[bot] Apr 1, 2022
5e37308
Bump `Microsoft.CodeAnalysis.NetAnalyzers` (#17105)
dependabot[bot] Apr 4, 2022
7cc9c87
Do not generate clean block in proxy function when the feature is dis…
daxian-dbw Apr 5, 2022
4acf6b3
Support forward slashes in network share (UNC path) completion (#1711…
sba923 Apr 12, 2022
9c13c04
Allow multiple installations of dotnet. (#17141)
JamesWTruher Apr 12, 2022
2bc1308
Fix typo in `ComRuntimeHelpers.cs` (#17104)
eltociear Apr 12, 2022
5134410
Correct Typo in the resource string `PathResolvedToMultiple` (#17098)
charltonstanley Apr 12, 2022
84e73b2
Do not include node names when sending telemetry. (#16981)
JamesWTruher Apr 14, 2022
94c6328
Replace `.` in notices container name (#17154)
TravisEz13 Apr 18, 2022
b9b3d5f
Update link to PowerShell remoting in depth video (#17166)
SeeminglyScience Apr 20, 2022
c2e11e9
Update to the latest notice file (#17146)
github-actions[bot] Apr 20, 2022
8d453da
Use new Windows signature APIs from `Microsoft.Security.Extensions` p…
PaulHigin Apr 20, 2022
3446e55
Update to the latest notice file (#17169)
github-actions[bot] Apr 21, 2022
6c17161
Make mariner packages Framework dependent (#17151)
TravisEz13 Apr 21, 2022
8c23865
Adds sha256 digests to RPM packages (#16896)
ngharo Apr 21, 2022
1c568d4
Make `NameObscurerTelemetryInitializer` internal (#17167)
SeeminglyScience Apr 21, 2022
89ae02d
Update rebase.yml (#17170)
TravisEz13 Apr 21, 2022
db1c865
Update `wix` to include security extensions package (#17171)
PaulHigin Apr 21, 2022
b898da8
Make a variable assignment in a `ParenExpression` to return the varia…
daxian-dbw Apr 22, 2022
ad5a6ff
Update package fallback list for ubuntu (from those updated for ubunt…
anamnavi Apr 25, 2022
0067dec
Fix `Sort-Object -Stable -Unique` to actually do stable sorting (#17189)
m1k0net Apr 26, 2022
f4e38e8
Updated metadata.json and README.md for v7.2.3 and v7.0.10 (#17158)
anmenaga Apr 27, 2022
8fb34e8
Updated change logs for v7.0.9 / v7.0.10 / v7.1.6 / v7.1.7 / v7.2.2 /…
anmenaga Apr 28, 2022
42ad8b9
Add backport action (#17212)
TravisEz13 Apr 28, 2022
f22e475
Change logic in the testing helper module for determining whether `PS…
JamesWTruher Apr 29, 2022
83edc10
Make`NameObscurerTelemetryInitializer` internal (#17214)
anmenaga Apr 29, 2022
669d15b
Bump Microsoft.CodeAnalysis.CSharp from 4.2.0-1.final to 4.2.0-4.fina…
dependabot[bot] Apr 29, 2022
5d7b8b9
Fixed package names verification to support multi-digit versions (#17…
anmenaga Apr 29, 2022
edc489a
Fixing dotnet SDK version parsing in `build.psm1` (#17198)
powercode Apr 29, 2022
956c2ef
Mark `Microsoft.Management.Infrastructure.Runtime.Win` as a developer…
anmenaga Apr 29, 2022
c3b7e10
Merged PR 20126: Fix for partial PowerShell module search paths, that…
anmenaga May 1, 2022
36fcec3
Fix `ForEach` method to set property on a scalar object (#17213)
daxian-dbw May 2, 2022
156757c
Add container to Linux CI (#17233)
TravisEz13 May 2, 2022
b9c24db
Update to the latest notice file (#17238)
github-actions[bot] May 3, 2022
de04e8d
Bump Microsoft.CodeAnalysis.NetAnalyzers (#17245)
dependabot[bot] May 3, 2022
2550a3a
Add check for `ScriptBlock` wrapped in `PSObject` to `$using` used in…
ryneandal May 4, 2022
99f3bb7
Fix line breakpoints for `return` statements without a value (#17179)
SeeminglyScience May 4, 2022
41062a5
Move `cgmanifest` generation to daily (#17258)
TravisEz13 May 4, 2022
e8c85a1
Merged PR 20274: Fix Generate checksum file for packages build failur…
anmenaga May 4, 2022
bb72e49
Update the `cgmanifest` (#17260)
github-actions[bot] May 4, 2022
855b3ea
Bump NJsonSchema from 10.6.9 to 10.6.10 (#16902)
dependabot[bot] May 4, 2022
d092aa9
Update timeout for daily (#17263)
TravisEz13 May 5, 2022
0ea03f5
Update the cgmanifest (#17268)
github-actions[bot] May 5, 2022
0ff843d
Bump PSReadLine from 2.2.2 to 2.2.5 in /src/Modules (#17252)
dependabot[bot] May 5, 2022
8cfb727
Update engine working group members (#17271)
daxian-dbw May 5, 2022
e08edcb
Update to use `mcr.microsoft.com` (#17272)
TravisEz13 May 5, 2022
c000fc5
Add rotation between the two mariner images (#17277)
TravisEz13 May 6, 2022
4c6c4f3
Fix formatting truncation to handle strings with VT sequences (#17251)
daxian-dbw May 6, 2022
3bff8c0
Fix build id variable name when selecting CI container (#17279)
TravisEz13 May 6, 2022
a33b5d3
Put Secure supply chain analysis at correct place (#17273)
TravisEz13 May 6, 2022
4af204f
Switch to using GitHub action to verify markdown links for PRs (#17281)
TravisEz13 May 9, 2022
6c33ebd
Update to the latest NOTICES file (#17275)
github-actions[bot] May 9, 2022
ea0ab84
Reduce unneeded verbose message from `build.psm1` (#17291)
daxian-dbw May 10, 2022
ee97dfe
Only inject NuGet security analysis if we are using secure `nuget.con…
TravisEz13 May 10, 2022
34f316d
Improve how Linux container CI builds are identified (#17295)
TravisEz13 May 10, 2022
6ffc24b
Update the cgmanifest (#17302)
github-actions[bot] May 10, 2022
1884693
Correct spelling of `pseudo` in `Compiler.cs` (#17285)
eltociear May 10, 2022
44098e7
Fix the list view to not leak VT decorations (#17262)
daxian-dbw May 10, 2022
514d6f6
Fix `build.psm1` to find the required .NET SDK version when a higher …
daxian-dbw May 11, 2022
1a24540
Enable more tests to be run in a container. (#17294)
JamesWTruher May 11, 2022
765c7ba
Add mapping for ubuntu22.04 jammy (#17317)
anamnavi May 11, 2022
e4fb4a8
Update to the latest NOTICES file (#17311)
github-actions[bot] May 11, 2022
2fe5f00
Add a finalize template which causes jobs with issues to fail (#17314)
TravisEz13 May 11, 2022
57965f2
Disable release security analysis for SSH CI (#17303)
TravisEz13 May 11, 2022
38909f7
Update .NET SDK version from `7.0.100-preview.2.22153.17` to `7.0.100…
github-actions[bot] May 12, 2022
e8a5db2
Update the cgmanifest (#17324)
github-actions[bot] May 12, 2022
ba6fbe9
Start rotating through all images (#17315)
TravisEz13 May 12, 2022
30f4b82
Add sles15 support to `install-powershell.sh` (#16984)
yogeshbirla May 12, 2022
87f621e
Add fedora to the OS's that can't run WSMan (#17325)
TravisEz13 May 12, 2022
950ff45
Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0 (#17320)
dependabot[bot] May 12, 2022
00d165e
Make sure we execute tests on LTS package for older LTS releases (#17…
adityapatwardhan May 12, 2022
fea4484
Bump xunit.runner.visualstudio from 2.4.3 to 2.4.5 (#17274)
dependabot[bot] May 12, 2022
975e5f8
Update Ubuntu 22 to be detected as not supported WSMan (#17338)
TravisEz13 May 13, 2022
f4cc838
Update to the latest NOTICES file (#17332)
github-actions[bot] May 13, 2022
c4555da
Update `DotnetRuntimeMetadata.json` for .NET 7 Preview 4 (#17336)
adityapatwardhan May 13, 2022
4e2f72e
On Windows, reset cursor visibility back to previous state when rende…
SteveL-MSFT May 13, 2022
b0c16cb
Update the cgmanifest (#17344)
github-actions[bot] May 16, 2022
f2b7b29
Have rebase workflow Post a message when it starts (#17341)
TravisEz13 May 16, 2022
cc3b6fb
Disable broken macOS CI job, which is unused (#17221)
anmenaga May 16, 2022
56e08dc
Bump `NJsonSchema` from `10.6.10` to `10.7.0` (#17350)
dependabot[bot] May 16, 2022
f6ac9bb
Add support for new WDAC API (#17247)
PaulHigin May 16, 2022
41c7cd7
Fix the error message in Hashtable-to-object conversion (#17329)
daxian-dbw May 16, 2022
c40066d
Fix the word wrapping in formatting to handle escape sequences proper…
daxian-dbw May 16, 2022
65d8f11
Update telemetry collecting with a few changes (#17304)
JamesWTruher May 17, 2022
3d1d052
Remove the use of `BinaryFormatter` in PSRP serialization (#17133)
jborean93 May 17, 2022
0b8574d
Update the cgmanifest (#17361)
github-actions[bot] May 17, 2022
391e080
Redo the change that was reverted by #15853 (#17357)
daxian-dbw May 17, 2022
afe99fc
SemanticChecks: Avoid repeated type resolution of `[ordered]` (#17328)
IISResetMe May 17, 2022
e11167d
Add Daily Link Check GitHub Workflow (#17351)
tgauth May 17, 2022
7a6d06f
Update build versions (#17318)
PaulHigin May 17, 2022
e248694
Release changelogs (#17364)
PaulHigin May 17, 2022
f900824
Make sure verbose message is not null (#17363)
daxian-dbw May 17, 2022
3f35800
Run on every PR and let the action skip (#17366)
TravisEz13 May 17, 2022
e35f4a9
Update to the latest NOTICES file (#17372)
github-actions[bot] May 18, 2022
e7a4b7d
Simplify `Get-WSManSupport` based on current .NET Distro Support (#17…
TravisEz13 May 18, 2022
031aee9
Bump NJsonSchema from 10.7.0 to 10.7.1 (#17381)
dependabot[bot] May 19, 2022
9be70a5
Update the cgmanifest (#17393)
github-actions[bot] May 20, 2022
f47159b
Update script to automatically take new preview pre-release builds (#…
adityapatwardhan May 20, 2022
f23c056
Fix typo in AsyncResult.cs (#17396)
eltociear May 21, 2022
9b9dbc0
Update readme and metadata for 7.3.0-preview.4 release (#17378)
PaulHigin May 23, 2022
dc2d03e
Update change log for v7.3.0-preview.4 release (#17412)
PaulHigin May 23, 2022
90703cb
Fix mariner mappings (#17413)
TravisEz13 May 23, 2022
a3c1157
Fix spelling errors introduced in changelog (#17414)
adityapatwardhan May 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
- [ ] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.3/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [ ] Not Applicable
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Backport PR to branch
on:
issue_comment:
types: [created]

permissions:
contents: write
issues: write
pull-requests: write

jobs:
backport:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/backport to')
runs-on: ubuntu-20.04
steps:
- name: Extract backport target branch
uses: actions/github-script@v3
id: target-branch-extractor
with:
result-encoding: string
script: |
if (context.eventName !== "issue_comment") throw "Error: This action only works on issue_comment events.";

// extract the target branch name from the trigger phrase containing these characters: a-z, A-Z, digits, forward slash, dot, hyphen, underscore
const regex = /^\/backport to ([a-zA-Z\d\/\.\-\_]+)/;
target_branch = regex.exec(context.payload.comment.body);
if (target_branch == null) throw "Error: No backport branch found in the trigger phrase.";

return target_branch[1];
- name: Post backport started comment to pull request
uses: actions/github-script@v3
with:
script: |
const backport_start_body = `Started backporting to ${{ steps.target-branch-extractor.outputs.result }}: https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${process.env.GITHUB_RUN_ID}`;
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: backport_start_body
});
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run backport
uses: ./tools/actions/backport
with:
target_branch: ${{ steps.target-branch-extractor.outputs.result }}
auth_token: ${{ secrets.GITHUB_TOKEN }}
pr_description_template: |
Backport of #%source_pr_number% to %target_branch%

/cc %cc_users%

## Customer Impact

## Testing

- [ ] For any change that affects the release process, please work with a maintainer to come up with a plan to test this.

## Risk
52 changes: 48 additions & 4 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
$currentVersion = (Get-Content .\global.json | ConvertFrom-Json).sdk.version
Set-GWVariable -Name OLD_VERSION -Value $currentVersion

./tools/UpdateDotnetRuntime.ps1 -UpdateMSIPackaging -UseInternalFeed
./tools/UpdateDotnetRuntime.ps1 -UpdateMSIPackaging
$newVersion = (Get-Content .\global.json | ConvertFrom-Json).sdk.version
Set-GWVariable -Name NEW_VERSION -Value $newVersion

Expand All @@ -46,7 +46,7 @@ jobs:
if: failure()
with:
webhook_url: ${{ secrets.PS_BUILD_TEAMS_CHANNEL }}
overwrite: "{title: `Failure in updating .NET build. Look at ${workflow_link}`}"
overwrite: "{title: `Failure in .github/daily.yml updating .NET build. Look at ${workflow_link}`}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
id: cpr
Expand Down Expand Up @@ -88,10 +88,54 @@ jobs:
id: cprtpn
if: env.CREATE_PR == 'true'
with:
commit-message: "Update to the latest notice file"
commit-message: "Update to the latest NOTICES file"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "Update to the latest notice file"
title: "Update to the latest NOTICES file"
reviewers: travisez13
base: master
draft: false
branch: update-cgmanifest
update-cgmanifest:
name: Update cgmanifest
timeout-minutes: 15
runs-on: windows-latest
if: github.repository == 'PowerShell/PowerShell'
env:
CGMANIFEST_PATH: ''
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync tags
run: |
git fetch --prune --unshallow --tags
- name: Install Ships provider to deal with project.assets.json
run: |
Install-Module -Name dotnet.project.assets -force
- name: Bootstrap
run: |
Import-Module ./build.psm1
Start-PSBootStrap
- name: Verify cgmanifest is up to date
run: |
Import-Module ./build.psm1
Find-Dotnet
./tools/findMissingNotices.ps1 -Fix
- name: Upload cgmanifest
uses: actions/upload-artifact@v2
if: always() && env.CGMANIFEST_PATH != ''
with:
name: cgmanifest
path: ${{ env.CGMANIFEST_PATH }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
id: cprcgmanifest
if: env.CGMANIFEST_PATH != ''
with:
commit-message: "Update the cgmanifest"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "Update the cgmanifest"
reviewers: travisez13
base: master
draft: false
Expand Down
143 changes: 143 additions & 0 deletions .github/workflows/exp-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

name: PowerShell Experimental Features Json Update
on:
workflow_dispatch:
schedule:
# At 13:00 UTC every day.
- cron: '0 13 * * *'

defaults:
run:
shell: pwsh

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
POWERSHELL_TELEMETRY_OPTOUT: 1

jobs:
create-expjson:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
timeout-minutes: 15
runs-on: ${{ matrix.os }}
env:
OS_TITLE: ${{ matrix.os }}
if: github.repository == 'PowerShell/PowerShell'
name: Update experimental features json
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Create experimental features file
run: |
Import-Module ./build.psm1 -Force
Start-PSBootstrap
Start-PSBuild -Clean -PSModuleRestore
$builtPwsh = Get-PSOutput

Write-Verbose -Verbose "PWSH path: $builtPwsh"

$getExpFeatureJsonScript = @'
[System.Collections.ArrayList] $expFeatures = Get-ExperimentalFeature | Where-Object Name -NE PS7DscSupport | ForEach-Object -MemberName Name

# Make sure ExperimentalFeatures from modules in PSHome are added
# https://github.com/PowerShell/PowerShell/issues/10550
$ExperimentalFeaturesFromGalleryModulesInPSHome = @()
$ExperimentalFeaturesFromGalleryModulesInPSHome | ForEach-Object {
if (!$expFeatures.Contains($_)) {
$null = $expFeatures.Add($_)
}
}

ConvertTo-Json $expFeatures
'@

$expFeaturesJson = & $builtPwsh -c $getExpFeatureJsonScript
$osname = $env:OS_TITLE -like 'windows*' ? 'windows' : 'linux'
$fileNamePrefix = "experimental-feature-$osname"
$newFileName = "${fileNamePrefix}-new.json"

Write-Verbose -Verbose 'Experimental features found'
$expFeaturesJson | Out-String | Write-Verbose -Verbose
$expFeaturesJson | Out-File $newFileName -Force

- name: Upload experimental features windows
uses: actions/upload-artifact@v2
with:
name: experimentalJson
path: experimental-feature-*-new.json

compare-expjson-files:
runs-on: ubuntu-latest
name: Compare experimental json files and create PR
needs: create-expjson
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: experimentalJson
- name: Compare json files
run: |
Import-Module ./.github/workflows/GHWorkflowHelper -Force

function ShouldCreatePR($currentFile, $newFile) {
if (Test-Path $currentFile) {
$currentExpFeatures = Get-Content $currentFile -Raw | ConvertFrom-Json
$newExpFeatures = Get-Content $newFile -Raw | ConvertFrom-Json

if (-not (Compare-Object $currentExpFeatures $newExpFeatures)) {
Write-Verbose -Verbose "No changes to experimental features json file"
return $false
}
}

return $true
}

$currentWinFile = "experimental-feature-windows.json"
$currentLinuxFile = "experimental-feature-linux.json"
$newWinFile = "experimental-feature-windows-new.json"
$newLinuxFile = "experimental-feature-linux-new.json"

$createPrWin = ShouldCreatePR $currentWinFile $newWinFile
Write-Verbose -Verbose "Create PR Windows == $createPrWin"

$createPrLinux = ShouldCreatePR $currentLinuxFile $newLinuxFile
Write-Verbose -Verbose "Create PR Windows == $createPrLinux"

$createPr = $createPrWin -or $createPrLinux
Write-Verbose -Verbose "Create PR == $createPr"

if ($createPrWin) {
Move-Item $newWinFile $currentWinFile -Verbose
}
else {
Remove-Item $newWinFile -Verbose
}

if ($createPrLinux) {
Move-Item $newLinuxFile $currentLinuxFile -Verbose
}
else {
Remove-Item $newLinuxFile -Verbose
}

Set-GWVariable -Name CREATE_EXP_JSON_PR -Value $createPR

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
id: cpr
if: env.CREATE_EXP_JSON_PR == 'true'
with:
commit-message: "Update experimental-feature-windows.json"
title: "Update experimental-feature json files"
base: master
branch: expjson_update_windows
7 changes: 7 additions & 0 deletions .github/workflows/markdown-link/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"timeout": "40s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [504, 503, 403, 200]
}
18 changes: 18 additions & 0 deletions .github/workflows/markdownLink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
pull_request:
branches:
- master
- 'release/**'

name: Check links for modified files
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: .github/workflows/markdown-link/config.json
29 changes: 29 additions & 0 deletions .github/workflows/markdownLinkDaily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

name: PowerShell Daily Markdown Link Verification

on:
workflow_dispatch:
schedule:
# At 13:00 UTC every day.
- cron: '0 13 * * *'

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Check Links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: .github/workflows/markdown-link/config.json
- name: Microsoft Teams Notifier
uses: skitionek/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.PS_BUILD_TEAMS_CHANNEL }}
overwrite: "{title: `Failure in .github/markdownLinkDaily.yml validating links. Look at ${workflow_link}`}"
15 changes: 13 additions & 2 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This cannot rebase workflow changes into a PR
# It also only works if the GITHUB_TOKEN has permission to push to the branch
# see: https://github.com/cirrus-actions/rebase/issues/12#issuecomment-632594995
on:
on:
issue_comment:
types: [created]
name: Automatic Rebase
Expand All @@ -15,7 +15,18 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Post rebase started comment to pull request
uses: actions/github-script@v3
with:
script: |
const backport_start_body = `Started rebase: https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${process.env.GITHUB_RUN_ID}`;
await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: backport_start_body
});
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.4
uses: cirrus-actions/rebase@1.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading