Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
useful commands for getting info from Github using their API
# get all private repos whose default branch is master (note pagination)
curl -H "Authorization: token <auth-token>" \ \
| jq '.[] | select(.default_branch | contains("master")) | .name, .default_branch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.