Skip to content

Instantly share code, notes, and snippets.

@PatMyron
Last active May 29, 2024 02:07
Show Gist options
  • Save PatMyron/e109de5d352e5f69ae3f4bfe6a7bf210 to your computer and use it in GitHub Desktop.
Save PatMyron/e109de5d352e5f69ae3f4bfe6a7bf210 to your computer and use it in GitHub Desktop.
gh-repo.sh
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