Skip to content

Instantly share code, notes, and snippets.

@SamLR
Created August 29, 2019 11:09
Show Gist options
  • Save SamLR/bc4c24ae3b7ebb4db13342f440c53191 to your computer and use it in GitHub Desktop.
Save SamLR/bc4c24ae3b7ebb4db13342f440c53191 to your computer and use it in GitHub Desktop.
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