git-copy-repos-labels
v0.0.8
Published
A iny helper to copy a list of labels from the github repository
Downloads
12
Readme
git-copy-repos-labels
A iny helper to copy a list of labels from the github repository
Install
npm install git-copy-repos-labels
Usage
import gitCopyReposLabels from 'git-copy-repos-labels';
gitCopyReposLabels({
from: {
owner: 'scrum',
repo: 'git-template-labels'
},
to: {
owner: 'post',
repo: 'post-static'
},
token: '59bd8d5eb1980b7f926f2d106f4f2f0312fdf97f'
});
//=> [{id: 1479855803, node_id: 'MDU6TGFiZWwxNDc5ODU1ODAz', url: 'https://api.github.com/repos/post/post-static/labels/bug', name: 'bug', color: 'd73a4a', description: 'Something isn\'t working', default: true}, ...]
API
from
Type: Object
Required
Default: undefined
Description: Github repository from copy labels.
owner
Type:
String
Required
Default:undefined
Description: Github owner or organization name.repo
Type:
String
Required
Default:undefined
Description: Repository name.
to
Type: Object
Required
Default: undefined
Description: Github repository to copy labels.
owner
Type:
String
Required
Default:undefined
Description: Github owner or organization name.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
strategy
Type: String<post|put>
Default: post
Description: Behavior strategy for merging, deleting or updating labels
post
- Delete all labels from the repository and create from the remote repositoryput
- Full update of the label when it name matches
Related
- git-get-repos-id - A tiny helper to get github repository
id
- git-get-repos-labels - A iny helper to get a list of labels from the github repository
- git-del-repos-labels - A iny helper to del a list of labels from the github repository
- git-create-repos-labels - A tiny helper to create of label in the github repository
- git-update-repos-labels - A tiny helper to update of label in the github repository
Recommend
- git-template-labels - Repository with a set of commonly used labels
- git-copy-repos-labels-cli - CLI for git-copy-repos-labels