0.1.1 • Published 5 years ago

git-create-repos-labels v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

git-create-repos-labels

A iny helper to get a list of labels from the github repository

Travis Build StatusCoveralls status

Install

npm install git-create-repos-labels

Usage

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}

API

label

Type: object Required
Default: undefined
Description: label creation options {name: string, color: string, description: string} when {name, color} are required

repoId

Type: String Required
Default: undefined
Description: Repository identificator in Github.

repo

Type: String Required
Default: undefined
Description: Repository name.

token

Type: String Required
Default: undefined
Description: You Github Personal Token. Grab it from your Developer settings

Recommend

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago