pcgeek86 / PSGitHub

This PowerShell module contains commands to manage GitHub through its REST API.
MIT License
186 stars 37 forks source link

PowerShell 5 support broken #57

Open indented-automation opened 5 years ago

indented-automation commented 5 years ago

PowerShell 5.1 on Windows 10. PSGitHub 0.15.179

The module uses the FollowRelLink of Invoke-WebRequest / Invoke-RestMethod. This does not exist prior to PowerShell 6.

Should you wish to retain support for PS 5, I wrote an implementation of this as an example. You can find that here:

https://github.com/PacktPublishing/Mastering-Windows-PowerShell-Scripting-Third-Edition/blob/25406afc2395e0e5d68e3f26219a4f42b098baa6/Chapter13/2.2.4_Invoke-WebRequest_FollowRelLink.ps1

Thanks!

felixfbecker commented 4 years ago

Looks good, wanna do a PR?