set-label v0.2.0
Motivation
Update Github repository label with this package. This package is useful for developers who would like to keep a consistent labeling style for multiple repositories.
For example, one's repo named javascript-study might have following issue labels.
algorithm
framework
webAnd the one might have python-study as followings.
machine learning
numpy
algorithm
framework
webIt is a tedius job to recreate issues per repository. This package will solve this painpoint by setting a label template once and re-use it multiple times.
Install
My-label-setter is deployed to npmjs. Run below command to install.
npm i my-label-setterAlso, git clone works.
git clone https://github.com/developerasun/myCodeBox-openSource.gitNote that this package is dependent on Github label sync package.
Run
Go to a directory where you want to generate a template project.
Run below command.
set-labeland then run,
node appFollow instructions from there. Note that github-label-sync should be installed like terminal suggests.

Configuration
Configurate as below.
- Updating label requires your repository permission. Generate your github personal access token here.
- Fix a .json label file. Provide a color to label by hex code without prefixed hash. Default label color is black.
{
"name": "research",
"color": "000000",
"description": "digging out for more details"
},Result
If done successfully, terminal will print out like below.

Future improvements
- Update labels in several repos with one command
Creator
3 years ago