{"id":22541108,"url":"https://github.com/neal-c/gh-ghpm","last_synced_at":"2025-03-28T07:22:13.191Z","repository":{"id":259403009,"uuid":"877780645","full_name":"Neal-C/gh-ghpm","owner":"Neal-C","description":"Github CLI extension: adds a command to gh that turn all your repositories private (except starred repos)","archived":false,"fork":false,"pushed_at":"2024-10-24T11:34:55.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T05:06:46.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neal-C.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T08:25:06.000Z","updated_at":"2024-10-24T11:34:59.000Z","dependencies_parsed_at":"2024-10-25T05:06:50.642Z","dependency_job_id":"07ea32ee-f953-4403-9d93-aba7b823a856","html_url":"https://github.com/Neal-C/gh-ghpm","commit_stats":null,"previous_names":["neal-c/gh-ghpm"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neal-C%2Fgh-ghpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neal-C%2Fgh-ghpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neal-C%2Fgh-ghpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neal-C%2Fgh-ghpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neal-C","download_url":"https://codeload.github.com/Neal-C/gh-ghpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245985145,"owners_count":20704917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T12:13:47.274Z","updated_at":"2025-03-28T07:22:13.153Z","avatar_url":"https://github.com/Neal-C.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A gh-extension to manage privacy on github\n\n\u003e [!WARNING]\n\u003e Turning a starred repository into a private repository will lose all the stars  \n\u003e Current forks will remain public and will be detached from the repository.\n\n\u003e [!IMPORTANT]\n\u003e if it has \u003e= 1 stars, ghpm does not turn a starred repository into a private repository.  \n\u003e It does not turn your README repository (username/username) private because it's a special repository meant for public display\n\n\u003e [!NOTE]\n\u003e 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\n\n## Requirements \n\n- The Github CLI https://cli.github.com/\n\n## Installation\n\n```bash\ngh extension install Neal-C/gh-ghpm\n```\n\nList your extensions\n\n```bash\ngh extension list\n```\n\nUpgrade\n\n```bash\ngh extension upgrade ghpm\n```\n\nUninstall\n\n```bash\ngh extension remove ghpm\n```\n\n## Usage\n\n```bash\n# prints help message\ngh ghpm --help\n```\n\n```bash\n# turns all your repositories private (except starred repos)\ngh ghpm thanos_snap\n```\n\n## Only turn 1 repository private\n\nThe github cli already supports turning 1 repository private: https://cli.github.com/manual/gh_repo_edit\n\n```bash\ngh repo edit myusername/myrepository --visibility private\n```\n\n## Roadmap\n\n- [x] switch every repositories to private (excluding repos with \u003e= 1 stars)\n- [ ] Lobby github to provide a batch request endpoint, so that it's only 1 HTTPS request and not O(n) HTTPS requests\n- [ ] Lobby github to add this functionality to the gh CLI\n\n## Contributing\n\nI am open to random pull requests that do at least 1 of the following :\n- cross items off the roadmap\n- fix typos\n- add tooling\n- add tests\n- add/improve documentation\n- improve CI/CD\n\nif you're thinking \"hmm... I could rewrite it in Rust\", I'm waaaay ahead of you : https://github.com/Neal-C/gh-ghpm-rs\n\n## How to permanently delete or hide data from a repository ?\n\nOnly sure way is to contact github support : https://support.github.com/\n\nWhen in doubt, revoke and rotate your keys. Or better yet, automate it.\n\n---\n\nMade with 💞 love 💞 for developers by a developer ❤️\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneal-c%2Fgh-ghpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneal-c%2Fgh-ghpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneal-c%2Fgh-ghpm/lists"}