Skip to content

Instantly share code, notes, and snippets.

@adunstan
Last active May 8, 2020 14:11
Show Gist options
  • Save adunstan/6fd1c167e772276701e19457d235ddf5 to your computer and use it in GitHub Desktop.
Save adunstan/6fd1c167e772276701e19457d235ddf5 to your computer and use it in GitHub Desktop.
get a list of repos for an org and the private flag via github API
curl -H "Authorization: token $token" -s "https://api.github.com/orgs/$orgname/repos?per_page=100&page=$pagenum" | \
jq -c -r '.[]|[.html_url, .private]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment