This repository bulk adds a payload into all repositories owned by a user or organization.
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/bm-nhs/gogi
go build
mv .envExample .env
export githubPAT = gitHub-auth-token
targetOrg = org-alias
payloadDir = ./path/to/payload
commitBranch = name-of-new-branch
prDescription = "Body of the PR request. Put something descriptive here"
./gogi
curl "https://api.github.com/users/$GHUSER/repos?access_token=$GITHUB_API_TOKEN" | grep -w clone_url