Skip to content

Instantly share code, notes, and snippets.

@fmasuhr
Last active May 16, 2019 10:49
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 fmasuhr/a5ec1031d344330a5bdb94dd31aa99fc to your computer and use it in GitHub Desktop.
Save fmasuhr/a5ec1031d344330a5bdb94dd31aa99fc to your computer and use it in GitHub Desktop.
Listing teams of an organizations including their ID. This is using `jq` to map the result for better readability.
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/<organization>/teams | jq '[.[] | {name: .name, id: .id}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment