Skip to content

Instantly share code, notes, and snippets.

@anikolaienko
Last active August 24, 2022 08:36
Show Gist options
  • Save anikolaienko/575b82dd3dc5b8c4c25ebeb11146292c to your computer and use it in GitHub Desktop.
Save anikolaienko/575b82dd3dc5b8c4c25ebeb11146292c to your computer and use it in GitHub Desktop.
Get list of Github repo Admins
# Check all page numbers starting 1 until result is empty
curl "https://api.github.com/repos/ORG/REPO/collaborators?per_page=100&page=1" -H "Authorization: Token ACCESS_TOKEN" | \
jq '[ .[] | select(.permissions.admin == true) | .html_url ]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment