{"id":15391925,"url":"https://github.com/scrum/git-copy-repos-labels","last_synced_at":"2026-06-19T19:32:27.333Z","repository":{"id":141889314,"uuid":"200655832","full_name":"Scrum/git-copy-repos-labels","owner":"Scrum","description":"A iny helper to copy a list of labels from the github repository ","archived":false,"fork":false,"pushed_at":"2019-10-15T15:15:24.000Z","size":494,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-31T19:54:27.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Scrum.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":"2019-08-05T12:58:33.000Z","updated_at":"2019-10-15T15:15:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"edf939cf-6767-4c95-8a5c-54be72dec902","html_url":"https://github.com/Scrum/git-copy-repos-labels","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"3a0c04620273235f4100801efcd0baaebb3ee0ef"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Scrum/git-copy-repos-labels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fgit-copy-repos-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fgit-copy-repos-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fgit-copy-repos-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fgit-copy-repos-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scrum","download_url":"https://codeload.github.com/Scrum/git-copy-repos-labels/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fgit-copy-repos-labels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34546192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","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":[],"created_at":"2024-10-01T15:13:31.478Z","updated_at":"2026-06-19T19:32:27.309Z","avatar_url":"https://github.com/Scrum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-copy-repos-labels\n\u003e A iny helper to copy a list of labels from the github repository \n\n[![Travis Build Status](https://img.shields.io/travis/Scrum/git-copy-repos-labels/master.svg?style=flat-square\u0026label=unix)](https://travis-ci.org/Scrum/git-copy-repos-labels)[![Coveralls status](https://img.shields.io/coveralls/Scrum/git-copy-repos-labels.svg?style=flat-square)](https://coveralls.io/r/Scrum/git-copy-repos-labels)\n\n## Install\n```bash\nnpm install git-copy-repos-labels\n```\n\n## Usage\n```js\nimport gitCopyReposLabels from 'git-copy-repos-labels';\n\ngitCopyReposLabels({\n  from: {\n    owner: 'scrum', \n    repo: 'git-template-labels'\n  },\n  to: {\n    owner: 'post', \n    repo: 'post-static'\n  },\n  token: '59bd8d5eb1980b7f926f2d106f4f2f0312fdf97f'\n});\n//=\u003e [{id: 1479855803, node_id: 'MDU6TGFiZWwxNDc5ODU1ODAz', url: 'https://api.github.com/repos/post/post-static/labels/bug', name: 'bug', color: 'd73a4a', description: 'Something isn\\'t working', default: true}, ...]\n```\n\n## API\n#### `from`\n  Type: `Object` **`Required`**  \n  Default: `undefined`  \n  Description: *Github repository from copy labels.*\n\n  - #### `owner`\n\n    Type: `String` **`Required`**  \n    Default: `undefined`  \n    Description: *Github owner or organization name.*\n\n  - #### `repo`\n\n    Type: `String` **`Required`**  \n    Default: `undefined`  \n    Description: *Repository name.*\n\n#### `to`\n  Type: `Object` **`Required`**  \n  Default: `undefined`  \n  Description: *Github repository to copy labels.*\n\n  - #### `owner`\n\n    Type: `String` **`Required`**  \n    Default: `undefined`  \n    Description: *Github owner or organization name.*\n\n  - #### `repo`\n\n    Type: `String` **`Required`**  \n    Default: `undefined`  \n    Description: *Repository name.*\n\n#### `token`\n\nType: `String` **`Required`**  \nDefault: `undefined`  \nDescription: *You  Github Personal Token. Grab it from your [Developer settings](https://github.com/settings/developers)*\n\n#### `strategy`\n\nType: `String\u003cpost|put\u003e`  \nDefault: `post`  \nDescription: *Behavior strategy for merging, deleting or updating labels*\n  - `post` - *Delete all labels from the repository and create from the remote repository*\n  - `put` - *Full update of the label when it name matches*\n\n## Related\n - [git-get-repos-id](https://github.com/Scrum/git-get-repos-id) - A tiny helper to get github repository `id` \n - [git-get-repos-labels](https://github.com/Scrum/git-get-repos-labels) - A iny helper to get a list of labels from the github repository\n - [git-del-repos-labels](https://github.com/Scrum/git-del-repos-labels) - A iny helper to del a list of labels from the github repository\n - [git-create-repos-labels](https://github.com/Scrum/git-create-repos-labels) - A tiny helper to create of label in the github repository \n - [git-update-repos-labels](https://github.com/Scrum/git-update-repos-labels) - A tiny helper to update of label in the github repository \n\n ## Recommend\n  - [git-template-labels](https://github.com/Scrum/git-template-labels) - Repository with a set of commonly used labels\n  - [git-copy-repos-labels-cli](https://github.com/Scrum/git-copy-repos-labels-cli) - CLI for git-copy-repos-labels\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fgit-copy-repos-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrum%2Fgit-copy-repos-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fgit-copy-repos-labels/lists"}