A iny helper to get a list of labels from the github repository
npm install git-create-repos-labels
import gitCreateReposLables from 'git-create-repos-labels';
const repoId = 'MDEwOlJlcG9zaXRvcnkxOTc3MjY4NTY=';
const token = '00a82e375c76ef7099c615677b7a97d0024d2465';
const label = {color: 'ff0000', name: 'test', description: 'test description'};
gitCreateReposLables({label, repoId, token});
//=> {id: 1479855803, node_id: 'MDU6TGFiZWwxNDc5ODU1ODAz', url: 'https://api.github.com/repos/post/post-static/labels/test', name: 'test', color: 'ff0000', description: 'test description', default: true}
Type: object
Required
Default: undefined
Description: label creation options {name: string, color: string, description: string}
when {name, color}
are required
Type: String
Required
Default: undefined
Description: Repository identificator in Github.
Type: String
Required
Default: undefined
Description: Repository name.
Type: String
Required
Default: undefined
Description: You Github Personal Token. Grab it from your Developer settings
- git-get-repos-id - A tiny helper to get github repository
id