Last active
May 16, 2019 10:49
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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