• Stars
    star
    177
  • Rank 215,985 (Top 5 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Add github labels automatically

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

GitHub Enterprise configuration

If you're using a GitHub Enterprise instance, you'll need to pass some additional parameters to target your environment

  • host - The hostname of your GHE instance.
  • pathPrefix - The path to the API. Frequently for GHE this will be /api/v3.
$ labels -c path/to/conf.json -h github.myhost.com -p /api/v3 user/repo

You can also provide the OAuth token to be used directly via the --token parameter. This is useful when your GHE environment does not allow user/pass login.

$ labels -c path/to/conf.json -h github.myhost.com -p /api/v3 -t PERSONAL_TOKEN_123 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

More Repositories

1

projj

Manage repository easily.
JavaScript
260
star
2

koa-proxy

Proxy middleware for koa
JavaScript
222
star
3

jshint-practice

配置 jshint 的最佳实践
JavaScript
48
star
4

gulp-scp2

Copy file to remote server, using scp2 that is a pure javascript implement.
JavaScript
27
star
5

liquidluck-theme-reveal

liquidluck theme for reveal.js
Python
21
star
6

rename

Rename files using some transformers.
JavaScript
17
star
7

connect-combo

connect middleware for assets combo
JavaScript
16
star
8

projj-hooks

JavaScript
15
star
9

spy

spy and mock for simple testcase
JavaScript
14
star
10

ypkgfiles

Yet another pkgfiles that generate pkg.files automatically
JavaScript
13
star
11

social-share

A simple and easy-to-use social share tool.
JavaScript
13
star
12

gulp-mirror

Make a mirror of stream
JavaScript
12
star
13

checkurl

A tiny url status check tool
JavaScript
11
star
14

gulp-load

Load gulp task just like grunt.loadTasks.
JavaScript
11
star
15

schedule

A tiny cron-like tools for humman
JavaScript
10
star
16

chmod

chmod for nodejs
JavaScript
8
star
17

chuome

chuo.me Blog
JavaScript
8
star
18

decmdify

Transform CMD module to CommonJS
JavaScript
7
star
19

father

A package parser that can resolve self and dependencies, supporting spm, component.
JavaScript
7
star
20

gitx

Use git with custom identity file
JavaScript
6
star
21

puzzle

A puzzle game using aralejs
JavaScript
5
star
22

resolve-files

Get all files from the given entry that resolved by `require`
JavaScript
5
star
23

fzhidao

抓取百度知道的问题
Python
5
star
24

stream-switch

Stream condition for switch/case
JavaScript
4
star
25

findlinks

Find the broken links
JavaScript
4
star
26

nodejs-logo

Node.js logo
3
star
27

pan

Resolve pan.baidu.com download url
JavaScript
3
star
28

combo2

A simple assets combo server.
JavaScript
3
star
29

combo-url

resolve combo url
JavaScript
3
star
30

zhi

a key/value parser support simple template
JavaScript
3
star
31

test-id

2
star
32

exists-case

Wrap fs.exists for case sensitivity
JavaScript
2
star
33

puerh

a sinonjs assertion wrapper for expect
JavaScript
2
star
34

ibump

change version, create tag, publish to npm
JavaScript
1
star
35

foursquare-category

翻译 @4sq 的分类,帮助大家更好的选择和区分。
JavaScript
1
star
36

go-utils

1
star
37

istanbul-instrument

JavaScript
1
star
38

lrrrrc

Easy way to download lrc based on nodejs
JavaScript
1
star
39

gulp-switch

shim to stream-switch
Makefile
1
star
40

generator-popomore

my generator
JavaScript
1
star
41

nunjucks-vs-swig

JavaScript
1
star
42

configy

a configuration file parser
JavaScript
1
star
43

c8-mocha

JavaScript
1
star
44

fscache-stream

a passtrough stream caching buffer to file system
JavaScript
1
star
45

css-imports

find all @import in css
JavaScript
1
star
46

check-compiler

Makefile
1
star
47

css2str

transform css to string that can be inserted by js
JavaScript
1
star
48

cjsify

1
star
49

istanbul-example

istanbul example
JavaScript
1
star