github-labels

command module
v0.0.0-...-f14ba8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 10 Imported by: 0

README

github-labels

Small utility to manage github labels

Installation

$ go get github.com/chambo-e/github-labels

Usage

$ github-labels --help
NAME:
   github-labels - Manage github labels easily

USAGE:
   github-labels [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
     list       Print labels from a repository
     set        Set repository labels from a file
     import     Import labels from a repository to another

GLOBAL OPTIONS:
   --token value, -t value      Github Token (Mandatory)
   --help, -h                   show help (default: false)
   --version, -v                print the version (default: false)
List labels
$ github-labels --token XXXXXXXXX list google/grpc
label: bug              color: #fc2929
label: duplicate        color: #cccccc
label: enhancement      color: #84b6eb
...
Import labels
$ github-labels --token XXXXXXXXX list google/grpc chambo-e/github-labels
1/30 (bug): Ok
2/30 (duplicate): Ok
3/30 (enhancement): Ok
...
Set labels
// labels.json
[
    {"name": "label1", "color": "234567"}
    {"name": "label2", "color": "345678"},
    {"name": "label3", "color": "456789"},
    ...
]
$ github-labels --token XXXXXXXXX set --labels labels.json chambo-e/github-labels
1/30 (label1): Ok
2/30 (label2): Ok
3/30 (label3): Ok
...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL