Add github labels automatically
JavaScript
Pull request Compare This branch is 9 commits behind popomore:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
HISTORY.md
README.md
index.js
package.json

README.md

Github Labels

Add github labels automatically.

It's very useful that init all your custom labels when create a repo.


Install

$ npm install github-labels -g

Usage

$ labels -c path/to/conf.json user/repo

About config file, see my conf for example.

[
  {"name": "bug", "color": "ffffff"},
  {"name": "feature", "color": "000000"}
]

Your can simplify it that will generate github default color automatically.

["bug", "feature"]

Force option will delete all existing labels, otherwise will create label when not exist or update label when existing label has different color.

$ labels -c path/to/conf.json -f user/repo

Export from github website

Here is a snippet to be able to export github labels from the labels page of a project

gist.github.com/MoOx/93c2853fee760f42d97f

Running this code in your browser console should output your some json ready to be imported.

License

MIT