Last active
August 24, 2022 08:36
-
-
Save anikolaienko/575b82dd3dc5b8c4c25ebeb11146292c to your computer and use it in GitHub Desktop.
Get list of Github repo Admins
This file contains 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
# 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