Node CLI for creating GitHub labels
npm install -g github-label
Use this method if don't want to type your username and password.
Create a Personal access token on GitHub
with the repo
and public_repo
permission scopes enabled.
Then add the following environment variable in your .bashrc
/ .bash_profile
export GITHUB_LABEL_TOKEN='REPLACE THIS WITH YOUR TOKEN'
Here a few examples. Please see below for the list of available label presets.
github-label 'codenameyau/github-label' -p priority
github-label 'codenameyau/github-label' -j 'path-to/preset.json'