Created
August 23, 2019 16:23
-
-
Save pdewouters/6177566837ecf3f29330cd962bc272f6 to your computer and use it in GitHub Desktop.
List repos for an org which dont have a readme
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 | |
hub api orgs/humanmade/repos --paginate | npx jq -r '.[] | select(.archived != true) | .full_name' | while read -r i; do | |
if [[ $(hub api repos/"$i"/readme | npx jq -r '.name') = 'null' ]]; then | |
echo "$i has no readme" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment