Neal-C/gh-zghpm
Please use gh-zghpm 0.1.5 until zig 0.15.2
5289e0753cd274d65344bef1c114284c633536ea
WARNING Turning a starred repository into a private repository will lose all the stars
Current forks will remain public and will be detached from the repository.
IMPORTANT if it has >= 1 stars or is a fork, ghpm does not turn a repository into a private repository.
It does not turn your README repository (username/username) private because it's a special repository meant for public display
NOTE I am not sponsored by github, nor affiliated, but you can change that by pinging them on social media. And ask for this functionality to be integrated directly into the gh CLI
gh extension install Neal-C/gh-zghpm
List your extensions
gh extension list
Upgrade
gh extension upgrade zghpm
Uninstall
gh extension remove zghpm
# prints help message
gh zghpm --help
# turns all your repositories private (except starred repos)
gh zghpm thanos_snap
The github cli already supports turning 1 repository private: https://cli.github.com/manual/gh_repo_edit
gh repo edit myusername/myrepository --visibility private
switch every repositories to private (excluding repos with >= 1 stars)
Lobby github to provide a batch request endpoint, so that it's only 1 HTTPS request and not O(n) HTTPS requests
Lobby github to add this functionality to the gh CLI
I am open to random pull requests that do at least 1 of the following :
Only sure way is to contact github support : https://support.github.com/
When in doubt, revoke and rotate your keys. Or better yet, automate it.
Made with 💞 love 💞 for developers by a developer ❤️