0.2.0 • Published 2 years ago

set-label v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
web

And the one might have python-study as followings.

machine learning
numpy
algorithm
framework
web

It 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-setter

Also, git clone works.

git clone https://github.com/developerasun/myCodeBox-openSource.git

Note 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-label

and then run,

node app

Follow instructions from there. Note that github-label-sync should be installed like terminal suggests.

dependency

Configuration

Configurate as below.

  1. Updating label requires your repository permission. Generate your github personal access token here.
  2. 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.

command-running-result

Future improvements

  • Update labels in several repos with one command

Creator