1.1.2 • Published 5 years ago

git-labels v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

git-labels Build Status

Creating Github issue labels

Install

$ yarn add git-labels

Usage

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!

Why

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.

API

gitLabels({ project, labels, token })

project

Type: string Format: org/repo Required

Github project.

labels

Type: array Format: [ { name: NAME, color: COLOR }, ... ] Default: labels.json

Labels to be created

token

Type: string Required

Github access token

Related

License

MIT © Bu Kinoshita

1.1.2

5 years ago

1.1.1

5 years ago

1.0.1

6 years ago

0.0.3

6 years ago

1.0.0

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago