-
Notifications
You must be signed in to change notification settings - Fork 188
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
Get-GitHubReleaseAsset only returns first 30 assets #372
Comments
Thanks for the report. I just drafted up a fix that I've locally verified works, but I need to update some tests as well.
PowerShellForGitHub/GitHubReleases.ps1 Lines 872 to 883 in 9aac697
However, for the "full list of assets" scenario, it really needs to be using Draft change is here: master...HowardWolosky:PowerShellForGitHub:releaseAssetPaging |
Awesome. Thanks for picking that up and troubleshooting it so quickly. |
Can we get a PR on this one? It's been a while and appears to have a fix: |
@Xander-Rudolph are you asking for me to submit a PR? |
Anyone who can 😁. I had to do a really janky workaround because I'm using this PowerShell module on ephemeral images. |
👍 I worked around it by creating my own function that does the work I need. It's not as complete as this as I don't need all the functionality so nothing I can PR in. |
@HowardWolosky Could you please create a pull request for your draft? I'd really like to have this fix released so that my CI works correctly |
Issue Details
Using
Get-GitHubReleaseAsset
on a release with more than 30 assets, only returns the first 30. Note that I'm using a GitHub token. I have tried this on Windows PowerShell 5.1 and PowerShell 7.2.6 on Windows.Steps to reproduce the issue
Verbose logs showing the problem
Suggested solution to the issue
Is paging at play here? If so, how do I get the second page? No suggested solution.
Requested Assignment
I'm just reporting this problem, but don't want to fix it.
Operating System
PowerShell Version
Module Version
The text was updated successfully, but these errors were encountered: