Skip to content

Instantly share code, notes, and snippets.

@mcgaffin
Created December 24, 2014 16:30
Show Gist options
  • Save mcgaffin/19b7127a6fc41428487b to your computer and use it in GitHub Desktop.
Save mcgaffin/19b7127a6fc41428487b to your computer and use it in GitHub Desktop.
zsh script for creating a bunch of repos
#!/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