Skip to content

Instantly share code, notes, and snippets.

Embed
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>" \
https://api.github.com/orgs/arthrex/repos?type=private \
| 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.