Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub API issue - listing starred repos

I'm trying to list all of the repos that I'm currently starring, and I do:

curl -u 'user' https://api.github.com/user/starred

And it only gives me a subset of the repos I'm starring, not all of them. I've don't know if this is an API issue, or a repo issue, but I can't seem to determine what the criteria is for GitHub returning only a part of my starred repos.

Help!

like image 602
George K. Avatar asked Dec 27 '12 15:12

George K.


People also ask

How do I find my starred repository on GitHub?

You can use the search bar on your stars page to quickly find repositories and topics you've starred. Go to your stars page. Use the search bar to find your starred repositories or topics by their name.

How do I hide starred repository in GitHub?

You cannot hide what you've starred on GitHub. Once it's starred, it's out there.

What happens when you star a repository?

When you star a project you can keep track of it, but you won't be notified of every change. Think of starring a project on GitHub as a more casual way of watching, the equivalent of bookmarking it for later. To make it easier to do that, every repo now has a star button next to the familiar watch button.


1 Answers

GitHub uses paging on their API results. See the response Link headers described in the API docs: http://developer.github.com/v3/#pagination and http://developer.github.com/v3/activity/starring/#list-repositories-being-starred

Anyway, to get the rest of the results, use https://api.github.com/users/:user/starred?page=X&per_page=Y, where X is the number of the page, and Y is the page size (max 100).

like image 104
Ivan Zuzak Avatar answered Sep 30 '22 19:09

Ivan Zuzak