Created
August 29, 2019 11:09
-
-
Save SamLR/bc4c24ae3b7ebb4db13342f440c53191 to your computer and use it in GitHub Desktop.
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
cat repos.json | \ | |
jq '.[]|.full_name' | \ | |
xargs -I REPO | |
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: token ${GITHUB_TOKEN}" \ | |
-d '{"organization": "alphagov-mirror"}' \ | |
https://api.github.com/repos/REPO/forks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment