Skip to content

Instantly share code, notes, and snippets.

@iloveitaly
Created October 16, 2015 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveitaly/16b5be39da14792eefe8 to your computer and use it in GitHub Desktop.
Save iloveitaly/16b5be39da14792eefe8 to your computer and use it in GitHub Desktop.
GITHUB_ORGANIZATION_OR_USER=the_org
# to avoid rate limiting
GH_USERNAME=
GH_TOKEN=
curl -u $GH_USERNAME:$GH_TOKEN -s https://api.github.com/users/$GITHUB_ORGANIZATION_OR_USER/repos?per_page=200 | jq '.[] .full_name' | sed 's/\"//g' | while read line; do
# forks and stargazers
curl -u $GH_USERNAME:$GH_TOKEN -s https://api.github.com/repos/$line/stargazers | jq '.[] .login'
curl -u $GH_USERNAME:$GH_TOKEN -s https://api.github.com/repos/$line/forks | jq '.[] .owner .login'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment