Export repo data from GitHub organization
This is a quickie, using the GitHub CLI and optionally some Python.
Replace YOUR_ORG
with your organization and export all your organization's repo data to repos.json
:
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/orgs/YOUR_ORG/repos \
--paginate > repos.json