Skip to content
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

Starred repo access #4

Open
iamnewton opened this issue Jul 24, 2014 · 0 comments
Open

Starred repo access #4

iamnewton opened this issue Jul 24, 2014 · 0 comments
Assignees

Comments

@iamnewton
Copy link
Owner

As a user,
I would like to clone all of my starred repos,
so that I can look through the code to see how they work.

Requirements

Might want to update the existing code to use 'clone_url' and then download things to appropriate directory as described below:

Repo Folder
gists gists/
chrisopedia/clone-all chrisopedia/clone-all
{{user}}/{{repo}} {{user}}/{{repo}}

Notes

API call1

$ curl -fsSL "https://api.github.com/users/chrisopedia/starred" | jq '.[] | .clone_url'

Pagination function

$ curl -sI "https://api.github.com?page=1&per_page=100" | sed -nE "s/^Link:.*page=([0-9]+)&per_page=100>; rel=\"last\".*/\1/p"

Sample cloning

$ git clone http://github.com/leaverou/prism.git leaverou/prism
@iamnewton iamnewton self-assigned this Jul 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant