Last active
May 29, 2024 02:07
-
-
Save PatMyron/e109de5d352e5f69ae3f4bfe6a7bf210 to your computer and use it in GitHub Desktop.
gh-repo.sh
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
gh repo list PatMyron --limit 100 --source --json name -q '.[].name' | xargs -I {} gh repo edit PatMyron/{} --enable-wiki=false --enable-discussions=false --enable-projects=false --enable-merge-commit=false --enable-squash-merge --allow-update-branch --enable-auto-merge | |
gh repo list patmyron --limit 100 --source --json name -q '.[].name' | xargs -I {} curl -I -k -s "https://api.github.com/repos/patmyron/{}/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment