Using curl --user "UserName" https://api.github.com/orgs/org/repos
gives a lot of extra output. How do you use the GitHub api to output all repo names, for example:
- Repo1
- Repo2
- Repo3
Using curl --user "UserName" https://api.github.com/orgs/org/repos
gives a lot of extra output. How do you use the GitHub api to output all repo names, for example:
I think you're on the right track - you have selected the right API (https://developer.github.com/v3/repos/#list-organization-repositories).
Since the response is JSON, you would ideally use a JSON tool to filter the content, but you can start with a simple grep like this:
curl --user "UserName" https://api.github.com/orgs/org/repos | grep "full_name"
This will print all of the repo names. You can extend that solution with more elaborate logic if you like.
Related: