{"id":13583441,"url":"https://github.com/popomore/github-labels","last_synced_at":"2025-04-09T22:11:48.659Z","repository":{"id":13565212,"uuid":"16257529","full_name":"popomore/github-labels","owner":"popomore","description":"Add github labels automatically","archived":false,"fork":false,"pushed_at":"2022-02-24T20:27:15.000Z","size":29,"stargazers_count":178,"open_issues_count":13,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T22:11:43.301Z","etag":null,"topics":["github","github-labels","laravel"],"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/popomore.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-26T17:28:18.000Z","updated_at":"2024-11-14T15:27:37.000Z","dependencies_parsed_at":"2022-08-31T03:50:15.086Z","dependency_job_id":null,"html_url":"https://github.com/popomore/github-labels","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fgithub-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fgithub-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fgithub-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fgithub-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popomore","download_url":"https://codeload.github.com/popomore/github-labels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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":["github","github-labels","laravel"],"created_at":"2024-08-01T15:03:28.890Z","updated_at":"2025-04-09T22:11:48.629Z","avatar_url":"https://github.com/popomore.png","language":"JavaScript","readme":"# Github Labels\n\nAdd github labels automatically.\n\nIt's very useful that init all your custom labels when create a repo.\n\n---\n\n## Install\n\n```\n$ npm install github-labels -g\n```\n\n## Usage\n\n```\n$ labels -c path/to/conf.json user/repo\n```\n\nAbout config file, see [my conf](https://gist.github.com/popomore/8ef8ad0573c97081da22dca1cc84173e) for example.\n\n```\n[\n  {\"name\": \"bug\", \"color\": \"ffffff\"},\n  {\"name\": \"feature\", \"color\": \"000000\"}\n]\n```\n\nYour can simplify it that will generate github default color automatically.\n\n```\n[\"bug\", \"feature\"]\n```\n\nForce option will delete all existing labels, otherwise will create label when not exist or update label when existing label has different color.\n\n```\n$ labels -c path/to/conf.json -f user/repo\n```\n\n## GitHub Enterprise configuration\n\nIf you're using a GitHub Enterprise instance, you'll need to pass some additional parameters to target your environment\n* `host` - The hostname of your GHE instance.\n* `pathPrefix` - The path to the API. Frequently for GHE this will be `/api/v3`.\n\n```\n$ labels -c path/to/conf.json -h github.myhost.com -p /api/v3 user/repo\n```\n\nYou can also provide the OAuth token to be used directly via the `--token` parameter. \nThis is useful when your GHE environment does not allow user/pass login.\n\n```\n$ labels -c path/to/conf.json -h github.myhost.com -p /api/v3 -t PERSONAL_TOKEN_123 user/repo\n```\n\n### Export from GitHub website\n\nHere is a snippet to be able to export github labels from the labels page of a project\n\n[gist.github.com/MoOx/93c2853fee760f42d97f](https://gist.github.com/MoOx/93c2853fee760f42d97f)\n\nRunning this code in your browser console should output your some json ready to be imported.\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fgithub-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopomore%2Fgithub-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fgithub-labels/lists"}