Created
January 26, 2022 07:34
-
-
Save stevesimmons/2ae761422d54e1bc5c4fed278e4c5b9a to your computer and use it in GitHub Desktop.
Extract starred repos on Github
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
#!/bin/bash | |
USER=${1:-stevesimmons} | |
while curl -s "https://api.github.com/users/$USER/starred?per_page=100&page=${page:-1}" \ | |
| jq -r -e '.[].full_name' && [[ ${PIPESTATUS[1]} != 4 ]]; do | |
let page++ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment