git-update-repos-labels
v0.1.3
Published
A tiny helper to update of label in the github repository
Downloads
8
Readme
git-update-repos-labels
A tiny helper to update of label in the github repository
Install
npm install git-update-repos-labels
Usage
import gitUpdateReposLabels from 'git-update-repos-labels';
const token = '59bd8d5eb1980b7f926f2d106f4f2f0312fdf97f';
const label = {
id: 'MDU6TGFiZWwxNDg1MjAwMjk2',
color: 'ededed',
name: 'status: in progress',
description: null
};
gitUpdateReposLabels({label, token});
//=> {id: "MDU6TGFiZWwxNDg1MjAwMjk2", "name": "status: in progress", "color": "ededed", "description": null}
API
label
Type: object
Required
Default: undefined
Description: label creation options {id: string, name: string, color: string, description: string}
when {id, name, color}
are required
token
Type: String
Required
Default: undefined
Description: You Github Personal Token. Grab it from your Developer settings
Recommend
- git-get-repos-labels - A iny helper to get a list of labels from the github repository