Creating Github issue labels
$ yarn add git-labels
const gitLabels = require('git-labels')
const project = 'bukinoshita/git-labels'
const labels = [{ name: 'bug', color: 'cb2431' }]
const token = $token
await gitLabels({ project, labels, token })
// => Done!
I've been using Github issues labels a lot these days, but I never liked the default ones. So every project I have to manually delete/create/update
my issues labels with the colors and names I want. This can be done with a single command using this module.
Type: string
Format: org/repo
Required
Github project.
Type: array
Format: [ { name: NAME, color: COLOR }, ... ]
Default: labels.json
Labels to be created
Type: string
Required
MIT © Bu Kinoshita