Created
December 24, 2014 16:30
-
-
Save mcgaffin/19b7127a6fc41428487b to your computer and use it in GitHub Desktop.
zsh script for creating a bunch of repos
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
#!/usr/local/bin/zsh | |
for (( num=1; num <= 500; num++ )) | |
do | |
echo "${num}" | |
curl -X POST -H "Authorization: Basic <personal_access_token_goes_here>" -H "Cache-Control: no-cache" -d "{\"name\":\"repo${num}\", \"auto_init\": true}" https://api.github.com/orgs/codeshiptest/repos | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment