{"id":41841186,"url":"https://github.com/leemhoon00/github-label-copier","last_synced_at":"2026-01-25T09:22:30.055Z","repository":{"id":226595555,"uuid":"769129055","full_name":"leemhoon00/github-label-copier","owner":"leemhoon00","description":"A simple tool to copy labels from one repository, either your own or someone else's, to your own repository.","archived":false,"fork":false,"pushed_at":"2024-03-16T13:21:53.000Z","size":88,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T11:35:43.105Z","etag":null,"topics":["copy","github","label"],"latest_commit_sha":null,"homepage":"https://velog.io/@leemhoon00/%EA%B9%83%ED%97%88%EB%B8%8C-%EB%A0%88%EC%9D%B4%EB%B8%94-%EB%8F%84%EB%91%91%EC%9D%84-%EB%A7%8C%EB%93%A4%EC%96%B4-%EB%B3%B4%EC%95%98%EB%8B%A4","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/leemhoon00.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}},"created_at":"2024-03-08T12:03:26.000Z","updated_at":"2025-06-29T12:32:01.000Z","dependencies_parsed_at":"2024-03-14T11:46:37.125Z","dependency_job_id":"59eb41b3-83aa-49ab-bccc-e42c22b0d3dd","html_url":"https://github.com/leemhoon00/github-label-copier","commit_stats":null,"previous_names":["leemhoon00/github-label-copier"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/leemhoon00/github-label-copier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leemhoon00%2Fgithub-label-copier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leemhoon00%2Fgithub-label-copier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leemhoon00%2Fgithub-label-copier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leemhoon00%2Fgithub-label-copier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leemhoon00","download_url":"https://codeload.github.com/leemhoon00/github-label-copier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leemhoon00%2Fgithub-label-copier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["copy","github","label"],"created_at":"2026-01-25T09:22:29.491Z","updated_at":"2026-01-25T09:22:30.049Z","avatar_url":"https://github.com/leemhoon00.png","language":"TypeScript","readme":"# Github Label Copier\n\n`github-label-copier` is a simple tool to copy labels from one repository, either your own or someone else's, to your own repository.\n\n## Usage\n\n### Installation\n\n```bash\nnpm install github-label-copier\n```\n\n### Import\n\n```javascript\nconst { createCopier } = require('github-label-copier');\n// or\nimport { createCopier } from 'github-label-copier';\n```\n\n### Initialization\n\n```javascript\nconst copier = createCopier(YOUR_GITHUB_TOKEN);\n```\n\n### Copy Labels\n\n```javascript\ncopier.copyLabels({\n  from: 'https://github.com/{OWNER}/{REPO}', // Source repository\n  to: 'https://github.com/{OWNER}/{REPO}', // Destination repository\n});\n```\n\n### Get Labels\n\n```javascript\nconst labels = await copier.getLabels({\n  url: 'https://github.com/freeCodeCamp/freeCodeCamp',\n});\nconsole.log(labels);\n```\n\n### Save Labels\n\n```javascript\ncopier.saveLabels({\n  url: 'https://github.com/Owner/Repo',\n  format: 'json', // 'json' | 'yaml', Default: 'json'\n});\n```\n\n### Push Labels by Json or Yaml\n\n```yaml\n# labels.yaml\n\n- name: 'docs :books:'\n  color: FFCACC\n  description: docs label\n- name: 'feat :sparkles:'\n  color: CBFFA9\n  description: add new feature\n- name: 'test :white_check_mark:'\n  color: DBC4F0\n  description: add test\n```\n\n```javascript\nconst dotenv = require('dotenv');\ndotenv.config();\nconst { createCopier } = require('github-label-copier');\n\nconst token = process.env.GITHUB_TOKEN;\n\nconst copier = createCopier(token);\n\nasync function main() {\n  copier.pushLabels({\n    filename: 'labels.yaml',\n    url: 'https://github.com/leemhoon00/github-label-copier',\n  });\n}\n\nmain();\n```\n\n![image](https://github.com/leemhoon00/github-label-copier/assets/57895643/c439c218-231f-494d-8572-1cea5fb6ec66)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleemhoon00%2Fgithub-label-copier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleemhoon00%2Fgithub-label-copier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleemhoon00%2Fgithub-label-copier/lists"}