{"id":13465039,"url":"https://github.com/codenameyau/github-label","last_synced_at":"2025-04-13T14:07:15.547Z","repository":{"id":33373045,"uuid":"37017942","full_name":"codenameyau/github-label","owner":"codenameyau","description":":gift: Node.js CLI for creating GitHub labels","archived":false,"fork":false,"pushed_at":"2019-10-21T10:50:26.000Z","size":37,"stargazers_count":13,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:04:33.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/codenameyau.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":"2015-06-07T13:40:29.000Z","updated_at":"2018-05-09T07:54:34.000Z","dependencies_parsed_at":"2022-09-11T23:41:38.426Z","dependency_job_id":null,"html_url":"https://github.com/codenameyau/github-label","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fgithub-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fgithub-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fgithub-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fgithub-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenameyau","download_url":"https://codeload.github.com/codenameyau/github-label/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654032,"owners_count":21140236,"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":[],"created_at":"2024-07-31T14:00:55.768Z","updated_at":"2025-04-13T14:07:15.517Z","avatar_url":"https://github.com/codenameyau.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# github-label\n\n[![NPM version](http://img.shields.io/npm/v/github-label.svg)](https://www.npmjs.org/package/github-label)\n[![license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/codenameyau/github-label/blob/master/LICENSE)\n\nNode command-line tool used to create or remove GitHub labels.\nPredefined labels are available in the [presets folder](https://github.com/codenameyau/github-label/tree/master/presets).\nYou can also create and use your own labels with JSON.\n\n## Installation and Setup\n```\nnpm install -g github-label\n```\n\n### Authentication with GitHub Access Token\nUse this method if don't want to type your username and password.\n\nCreate a [Personal access token](https://github.com/settings/tokens) on GitHub\nwith the `repo` and `public_repo` permissions enabled. Then add the following\nenvironment variable in your `.bashrc` (Linux) or `.bash_profile` (Mac).\n\n```bash\nexport GITHUB_LABEL_TOKEN='REPLACE THIS WITH YOUR TOKEN'\n```\n\n## Usage Examples\n\n```\n  Usage: github-label [options]\n\n  Options:\n\n    -h, --help            output usage information\n    -V, --version         output the version number\n    -p, --preset [value]  Specify a label preset.\n    -l, --list [value]    List the default preset.\n    -j, --json [value]    Specify your own JSON label preset.\n    -s, --skip            Skip existing labels instead of updating them.\n    -r, --remove          Remove a GitHub label preset.\n    -R, --remove-all      Removes all labels.\n```\n\n--\n\n### Terminal\n```bash\n# Output the labels for the repository.\ngithub-label 'codenameyau/github-label'\n\n# List the available label presets.\ngithub-label -l\n\n# List the labels for a given preset.\ngithub-label -l priority\n\n# Create labels with one of the available presets.\ngithub-label 'codenameyau/github-label' -p priority\n\n# Create labels by specifying your own JSON.\ngithub-label 'codenameyau/github-label' -j 'path-to/preset.json'\n\n# Delete all labels from a given preset or json file.\ngithub-label 'codenameyau/github-label' -p priority -r\ngithub-label 'codenameyau/github-label' -j 'path-to/preset.json' -r\n\n# Remove all labels.\ngithub-label 'codenameyau/github-label' -R\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fgithub-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenameyau%2Fgithub-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fgithub-label/lists"}