Created
April 7, 2025 20:27
-
-
Save Hoyasumii/2f22307b65e8f64fbd2ab49c5f3ca825 to your computer and use it in GitHub Desktop.
private-repo.bash
This file contains hidden or 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
#!/bin/bash | |
gh repo list <Owner> --visibility public --limit 1000 --json nameWithOwner -q '.[].nameWithOwner' | while read repo; do | |
echo "🔒 Tornando $repo privado..." | |
gh repo edit "$repo" --visibility private --accept-visibility-change-consequences | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment