PowerShell examples does not follow best practices
Code of Conduct
- [X] I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
content/actions/using-workflows/workflow-commands-for-github-actions.md
What part(s) of the article would you like to see updated?
PowerShell / pwsh examples does not follow best practices on a number of things on how to write good PowerShell code. Some examples are
- Stream redirects (>>) instead of using commands ( | Out-File )
- Aliases used in code (for example
rm->Remove-Itemandset->Set-Variable) - Positional parameters instead of named
This makes them not only harder to read and understand, but also leads to decreased code quality and increased risk of unexpected behaviours.
Additional information
No response
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
@bjompen Thanks for opening an issue and submitting a PR! ✨
A stale label has been added to this issue becuase it has been open for 60 days with no activity. To keep this issue open, add a comment within 3 days.
Yes ok
-pull-request-reviews.md
A stale label has been added to this issue because it has been open for 60 days with no activity. To keep this issue open, add a comment within 3 days.