PSGitHub
PSGitHub copied to clipboard
A parameter cannot be found that matches parameter name 'FollowRelLink'
Before submitting your issue for the PSGitHub
project, please take a moment to provide the following details:
Describe the bug The token is Successfully working, but whenever trying to execute the PSGitHub commands, getting the FollowRelLink error .
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See an error
Expected behavior I am execute the following command , through the following command, the issues which are currently opened by the author , will be displayed in the PowerShell.
Find-GitHubIssue "author:adilshehzad786" | Select-Object -First 1
Screenshots
If applicable, add screenshots to help explain your problem.
Environment [X] Version of PowerShell you're using is 5.1.19041.1151 [X] PowerShell host you're using (eg. Console Host, ISE, Visual Studio) : ISE [X] Operating system you're running: Windows 10 [ ] Version of PSGitHub you're using (use Get-Module -Name PSGitHub) : 0.15.212
Thanks for contributing your feedback and support! You can optionally submit a Pull Request against this project, if you have a fix you'd like to share.
Looking into this. Sorry for the delay.
Thanks
@adilshehzad786 This is the output I'm getting
PS > Find-GitHubIssue "author:adilshehzad786" | Select-Object -First 1
WARNING: The command 'Get-GitHubToken' is obsolete. Tokens should be provided through the -Token parameter or $PSDefaultParameterValues
Number State User CreatedAt Title
------ ----- ---- --------- -----
1 closed adilshehzad786 12/23/2021 9:42:16 AM Broken feature
Can you try version 0.15.224?
Sure
I'm getting this error in Windows PowerShell 5.1 for a different function:
> get-githubrelease -Owner gohugoio -RepositoryName hugo
WARNING: The command 'Get-GitHubToken' is obsolete. Tokens should be provided through the -Token parameter or $PSDefaultParameterValues
Invoke-RestMethod : A parameter cannot be found that matches parameter name 'FollowRelLink'.
At C:\Users\Paul\Documents\WindowsPowerShell\Modules\psgithub\0.15.240\Functions\Private\Invoke-GitHubApi.ps1:105 char:27
+ Invoke-RestMethod @apiRequest -ResponseHeadersVariable respon ...
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-RestMethod], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
No such issue with PowerShell Core so it's a Windows PowerShell issue.