Skip to content

Instantly share code, notes, and snippets.

@BigAl
Last active March 17, 2021 03:46
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 BigAl/8b93855f354752838a39442821abc183 to your computer and use it in GitHub Desktop.
Save BigAl/8b93855f354752838a39442821abc183 to your computer and use it in GitHub Desktop.
Github stuff

All the repos in an org

curl -s -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} https://api.github.com/orgs/${GITHUB_ORG}/repos\?type\=all | jq -r '.[].clone_url'

curl -s -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} https://api.github.com/orgs/${GITHUB_ORG}/repos\?type\=all | jq -r '.[].ssh_url' | sort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment