A iny helper to copy a list of labels from the github repository
npm install git-copy-repos-labels
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}, ...]
Type: Object
Required
Default: undefined
Description: Github repository from copy labels.
-
Type:
String
Required
Default:undefined
Description: Github owner or organization name. -
Type:
String
Required
Default:undefined
Description: Repository name.
Type: Object
Required
Default: undefined
Description: Github repository to copy labels.
-
Type:
String
Required
Default:undefined
Description: Github owner or organization name. -
Type:
String
Required
Default:undefined
Description: Repository name.
Type: String
Required
Default: undefined
Description: You Github Personal Token. Grab it from your Developer settings
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
- 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
- git-template-labels - Repository with a set of commonly used labels
- git-copy-repos-labels-cli - CLI for git-copy-repos-labels