Scrum / git-create-repos-labels

A tiny helper to create of label in the github repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A tiny helper to create of label in the github repository


Languages

Language:TypeScript 52.6%Language:JavaScript 47.4%