{"id":23071515,"url":"https://github.com/lloydlobo/privateer","last_synced_at":"2026-04-09T21:56:47.621Z","repository":{"id":162862430,"uuid":"637313939","full_name":"lloydlobo/privateer","owner":"lloydlobo","description":"Group toggle multiple git repository visibility interactively from your terminal","archived":false,"fork":false,"pushed_at":"2025-02-03T18:50:23.000Z","size":142,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T10:44:04.399Z","etag":null,"topics":["cli","git","github","repository","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lloydlobo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-07T06:58:33.000Z","updated_at":"2024-07-23T07:18:34.000Z","dependencies_parsed_at":"2025-04-03T10:41:45.969Z","dependency_job_id":"4810f6f8-1328-482d-aec6-1e517c6e1c34","html_url":"https://github.com/lloydlobo/privateer","commit_stats":null,"previous_names":["lloydlobo/privateer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lloydlobo/privateer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Fprivateer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Fprivateer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Fprivateer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Fprivateer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloydlobo","download_url":"https://codeload.github.com/lloydlobo/privateer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydlobo%2Fprivateer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273665024,"owners_count":25146271,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","git","github","repository","rust"],"created_at":"2024-12-16T07:15:32.757Z","updated_at":"2026-04-09T21:56:47.584Z","avatar_url":"https://github.com/lloydlobo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# privateer\n\n**CLI Application for making a GitHub repository private**\n\nThis is a command-line interface (CLI) application that makes a GitHub repository private using a personal access token (PAT). The app is written in Rust programming language and uses the `serde` and `anyhow` crates.\n\n## Prerequisites\n\n- Rust programming language should be installed.\n- A personal access token (PAT) with `repo` scope is required to modify the repository's privacy settings.\n\n## Usage\n\n1. Clone this repository:\n\n   ```\n   git clone https://github.com/username/repo-name.git\n   ```\n\n2. Change directory to the project's root:\n\n   ```\n   cd repo-name\n   ```\n\n3. Create a `.env` file and add your PAT token in the following format:\n\n   ```\n   PAT_TOKEN=\u003cyour-token-here\u003e\n   ```\n\n4. Build the project:\n\n   ```\n   cargo build --release\n   ```\n\n5. Run the CLI app:\n\n   ```\n   ./target/release/make-private-repo\n   ```\n\n6. Enter the GitHub username and repository name when prompted.\n\n```shell\nEnter username: lloydlobo\nEnter repository: gittidy\n...\n```\n\n7. Choose whether to make the repository private or not by entering either `true` or `false`.\n\n```shell\n...\nMake it private?: (true/false) true\n✅ curl: exit status: 0\n```\n\n## Functionality\n\nThe app will send a PATCH request to the GitHub API with the personal access token (PAT) included in the `Authorization` header.\nThe request payload will contain the `private` field set to either `true` or `false`, depending on the user's input.\n\nIf the API call is successful, the repository will be made private.\n\n## Further Information\n\nFor more information on how to create a personal access token (PAT), visit the [GitHub documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\n\nFor more information on how to make a repository private using the GitHub API, visit the [GitHub documentation](https://docs.github.com/en/rest/reference/repos#update-a-repository).\n\n## License\n\nThis project is licensed under the terms of the [LICENSE].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydlobo%2Fprivateer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloydlobo%2Fprivateer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydlobo%2Fprivateer/lists"}