{"id":16299944,"url":"https://github.com/koji/github-label-manager","last_synced_at":"2025-07-24T01:33:03.653Z","repository":{"id":40434067,"uuid":"398116525","full_name":"koji/github-label-manager","owner":"koji","description":"Simple CLI tool to create/delete labels with GitHub Labels API","archived":false,"fork":false,"pushed_at":"2025-07-11T05:44:09.000Z","size":576,"stargazers_count":8,"open_issues_count":13,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-11T09:24:07.957Z","etag":null,"topics":["cli","cli-app","github-api","js","typescript"],"latest_commit_sha":null,"homepage":"https://levelup.gitconnected.com/create-github-labels-from-terminal-158d4868fab","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koji.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2021-08-20T01:06:46.000Z","updated_at":"2025-07-11T05:44:09.000Z","dependencies_parsed_at":"2024-10-27T22:19:36.467Z","dependency_job_id":"50521cae-c85f-471b-97a7-6f589778fbea","html_url":"https://github.com/koji/github-label-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koji/github-label-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fgithub-label-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fgithub-label-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fgithub-label-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fgithub-label-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koji","download_url":"https://codeload.github.com/koji/github-label-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fgithub-label-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266779221,"owners_count":23982884,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","cli-app","github-api","js","typescript"],"created_at":"2024-10-10T20:49:50.912Z","updated_at":"2025-07-24T01:33:03.629Z","avatar_url":"https://github.com/koji.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Currently working on making this scripts into a CLI tool**\n\n# github label manager\n\nSimple CLI tool to create/delete labels with GitHub Labels API.\n\n\u003cimg width=\"846\" alt=\"Screen Shot 2021-08-23 at 1 02 53 AM\" src=\"https://user-images.githubusercontent.com/474225/130393065-3f2a6fed-f6a3-4b1b-8e5f-ee4fee43d70f.png\"\u003e\n\nhttps://user-images.githubusercontent.com/474225/130368605-b5c6410f-53f6-4ef0-b321-8950edeebf7d.mov\n\n### Labels API\n\nhttps://docs.github.com/en/rest/reference/issues#labels\n\n`label data format`\n\n```json\n// label format\n{\n  \"id\": 3218144327,\n  \"node_id\": \"MDU6TGFiZWwzMjE4MTQ0MzI3\",\n  \"url\": \"https://api.github.com/repos/koji/frontend-tools/labels/wontfix\",\n  \"name\": \"wontfix\",\n  \"color\": \"ffffff\",\n  \"default\": true,\n  \"description\": \"This will not be worked on\"\n}\n```\n\n### What this script can do is the below.\n\n1. Create a single label on a specific repo\n2. Create multiple labels on a specific repo\n3. Delete a single label from a specific repo\n4. Delete all labels from a specific repo\n\n### Requirement: Personal Token about repo\n\nYou can generate a token [here](https://github.com/settings/tokens).\n\n### What you will need to input\n\n1. Operation  \n   0: Cancel (terminate the process)  \n   1: Create a single label on a specific repo  \n   2: Create multiple labels on a specific repo  \n   3: Delete a single label from a specific repo  \n   4: Delete all labels from a specific repo\n2. Token\n3. Your GitHub Id\n4. Target repo name\n\nIf you want to create/delete a single label, you need to type the followings.\n\n#### create\n\n- label name\n- label color (technically optional)\n- label description (technically optional)\n\n#### delete\n\n- label name\n\nIn terms of multiple labels, this script is using `label.js` to define name, color and description. The format is very simple.  \nIf you want to put your own labels, you will need to modify `label.js` file.\n\n```js\nmodule.exports = Object.freeze([\n  {\n    name: \"Type: Bug Fix\",\n    color: \"FF8A65\",\n    description: \"Fix features that are not working\",\n  },\n  {\n    name: \"Type: Enhancement\",\n    color: \"64B5F7\",\n    description: \"Add new features\",\n  },\n```\n\n## How to use this\n\nclone this repo and run `app.js`\n\n```zsh\n$ git clone https://github.com/koji/github-label-manager.git\n$ cd github-label-manager\n\n# use yarn\n$ yarn # install packages\n$ yarn build # compile typescript\n$ yarn start # run index.js\n\n# use pnpm\n$ pnpm install\n$ pnpm run build\n$ pnpm start\n\n# use npm\n$ npm install\n$ npm run build\n$ npm start\n\n# or use ts-node\n$ npx ts-node src/index.ts # this might be slow\n```\n\nAfter execute the command, you will need to type some information.\n\n- GitHub personal token\n- GitHub id\n- Target repo name\n- new label name (when you seslect `create a label`)\n- label name you want to delete (when you seslect `delete a label`)\n\n`create labels` is based on `labels` in `src/constant.ts`  \nhttps://github.com/koji/github-label-manager/blob/main/src/constant.ts#L59-L208\n\n```js\n{\n  name: 'Type: Bug Fix',\n  color: 'FF8A65',\n  description: 'Fix features that are not working',\n},\n{\n  name: 'Type: Enhancement',\n  color: '64B5F7',\n  description: 'Add new features',\n},\n```\n\nhttps://user-images.githubusercontent.com/474225/130368605-b5c6410f-53f6-4ef0-b321-8950edeebf7d.mov\n\n### Article\n\nhttps://levelup.gitconnected.com/create-github-labels-from-terminal-158d4868fab  \nhttps://seantrane.com/posts/logical-colorful-github-labels-18230/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji%2Fgithub-label-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoji%2Fgithub-label-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji%2Fgithub-label-manager/lists"}