git-labels

1.1.2 • Public • Published

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.

Before After

labels names and colors are customizable.

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.25latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.25
1.1.11
1.0.11
0.0.31
1.0.01
0.0.21
0.0.11

Package Sidebar

Install

npm i git-labels

Weekly Downloads

7

Version

1.1.2

License

MIT

Unpacked Size

228 kB

Total Files

16

Last publish

Collaborators

  • bukinoshita