go-github icon indicating copy to clipboard operation
go-github copied to clipboard

StargazersCount is always nil when using Repositories.ListAll

Open Flawe opened this issue 3 years ago • 1 comments

When querying repos with Repositories.ListAll, StargazersCount is always nil. Is there any other way to get the number of stars for different repositories if this isn't the correct way?

Flawe avatar Nov 07 '21 15:11 Flawe

Have you tried reproducing this issue by calling the GitHub v3 API endpoint via curl and inspected the value of stargazers_count ?

If curl also reports nil/null/empty/0, then GitHub tech support should be contacted.

If, however, curl shows a valid value that this client library is not picking up, then this is truly an issue that can be fixed.

Please report back your findings so that we can proceed accordingly. Thank you, @Flawe !

gmlewis avatar Nov 07 '21 17:11 gmlewis