{"id":15757435,"url":"https://github.com/cbrgm/topictool","last_synced_at":"2025-10-15T09:30:37.573Z","repository":{"id":40572892,"uuid":"455225691","full_name":"cbrgm/topictool","owner":"cbrgm","description":"Batch replace, add or remove  Github repository topic labels","archived":true,"fork":false,"pushed_at":"2023-09-01T04:13:39.000Z","size":106,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-27T18:00:11.542Z","etag":null,"topics":["cli","github","helper","label","tool","topic"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbrgm.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}},"created_at":"2022-02-03T15:47:17.000Z","updated_at":"2023-12-11T16:39:23.000Z","dependencies_parsed_at":"2022-08-09T23:31:23.361Z","dependency_job_id":null,"html_url":"https://github.com/cbrgm/topictool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftopictool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftopictool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftopictool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbrgm%2Ftopictool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbrgm","download_url":"https://codeload.github.com/cbrgm/topictool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236600148,"owners_count":19175167,"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":["cli","github","helper","label","tool","topic"],"created_at":"2024-10-04T09:21:07.551Z","updated_at":"2025-10-15T09:30:32.270Z","avatar_url":"https://github.com/cbrgm.png","language":"Go","readme":"# Topictool\n\n***CLI Tool to manage topic labels on Github repositories***\n\n![](https://img.shields.io/badge/Go-1.17%2B-blue)\n![](https://img.shields.io/github/issues/cbrgm/topictool)\n![](https://img.shields.io/github/license/cbrgm/topictool)\n\n## Installation\n\n```\ngo get github.com/cbrgm/topictool\n```\n\nor\n\n```\ngit clone git@github.com:cbrgm/topictool.git \u0026\u0026 cd topictool\ngo mod vendor \u0026\u0026 make\n```\n\n\n\n## Usage\n\nYou'll need a ***Github Personal Access Token*** to use this tool. Create one for your user (Settings -\u003e Developer Settings -\u003e Personal Access Token) and grant ***read/write access for repositories*** to it. In case you want to modify private repositories of an ***organization*** please authorize SSO. \n\n```bash\nexport GH_ACCESS_TOKEN=\u003cyour-token\u003e\n```\n\nthen run the `topictool`.\n\n```\nUsage: topictool \u003csubcommand\u003e \u003csearch pattern\u003e \u003ctopic labels...\u003e\n\nReplace, add or remove topic labels from multiple Github repositories\n\nSubcommands:\n    - replace   - replaces all existing topic labels with new ones\n    - add       - adds topic labels to existing ones\n    - rm        - removes topic labels from existing ones\n    \nSearch Pattern:\n    Searches repositories via various criteria.\n    See Github docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/search/#search-repositories\n\nTopic Labels:\n    A list of strings representing topic labels\n\n```\n\n### Examples\n\n***Add a labels `foo` and `bar` to the repository `cbrgm/topictool`***\n\n```bash\ntopictool add \"cbrgm/topictool\" \"foo\" \"bar\"\n```\n\n```bash\nRepository Name\tTopics\t\n ---\t\t---\t\n cbrgm/topictool\t\n\n Add labels [foo,bar] to 1 repositories? [y/n/q]:\n \n \u003e y\n \n Done!\n```\n\n***Add a labels `foo` and `bar` to all repositories of user `cbrgm`***\n\n```bash\ntopictool add \"user:cbrgm\" \"foo\" \"bar\"\n```\n\n```bash\nRepository Name\t\t\tTopics\t\t\t\t\t\t\t\t\n ---\t\t\t\t---\t\t\t\t\t\t\t\t\n cbrgm/telegram-robot-rss\t\tbot,messenger,python,rss,rss-feed,rss-reader,telegram-bot\t\t\t\n cbrgm/go-t\t\t\t        cli,command-line,go,golang,twitter,twitter-api,twitter-client\t\t\n cbrgm/clickbaiter\t\t\tadvertising,clickbait,generation,generator,go,golang,useless\t\t\n cbrgm/terraform-k8s-hetzner\t\tbash,hetzner,hetzner-cloud,kubernetes,terraform\t\t\t\t\n cbrgm/authproxy\t\t\tapi,authentication,client,kubernetes,middleware,token,webhook\t\t\n cbrgm/kubernetes-rbac-groups\t\tauthorization,cluster,kubernetes,rbac\t\n \nAdd labels [foo,bar] to 6 repositories? [y/n/q]:\n\n\u003e y\n\nDone!\n```\n\n***Replace all labels with `foo` and `bar` for all repositories of user `cbrgm` already having a topic `foo`***\n\n```bash\ntopictool replace \"user:cbrgm topic:foo\" \"foo\" \"bar\"\n```\n\n```bash\nRepository Name\t\t\tTopics\t\t\t\t\t\t\t\t\n ---\t\t\t\t---\t\t\t\t\t\t\t\t\n cbrgm/telegram-robot-rss\t\tbot,messenger,python,rss,rss-feed,rss-reader,telegram-bot,foo\t\t\t\n cbrgm/go-t\t\t\t        cli,command-line,go,golang,twitter,twitter-api,twitter-client,foo\t\t\n cbrgm/clickbaiter\t\t\tadvertising,clickbait,generation,generator,go,golang,useless,foo\t\t\n cbrgm/terraform-k8s-hetzner\t\tbash,hetzner,hetzner-cloud,kubernetes,terraform,foo\t\t\t\t\n cbrgm/authproxy\t\t\tapi,authentication,client,kubernetes,middleware,token,webhook,foo\t\t\n cbrgm/kubernetes-rbac-groups\t\tauthorization,cluster,kubernetes,rbac,foo\t\n \nReplace all existing topic labels with [foo,bar] in 6 repositories? [y/n/q]:\n\n\u003e y\n\nDone!\n```\n\n## Contributing \u0026 License\n\nFeel free to submit changes! See the [Contributing Guide](https://github.com/cbrgm/contributing/blob/master/CONTRIBUTING.md). This project is open-source and is developed under the terms of the [Apache 2.0 License](https://github.com/cbrgm/topictool/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Ftopictool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbrgm%2Ftopictool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrgm%2Ftopictool/lists"}