go-from-gist-to-issue

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2015 License: MIT Imports: 10 Imported by: 0

README

gii

GitHub release Wercker MIT License

Gist Issue Importer.

gii enables you to import multiple Gists to GitHub Issues. gii can parallelize to import multiple gists.

Usage

Require a personal access token.

$ gii --gist example.txt --repo yourrepo --token yourtoken
Installation

To install gii, please use go get.

$ go get github.com/yoheimuta/gii
...
$ gii help
...

Or you can download a binary from github relases page and place it in $PATH directory.

Example

At first, prepare a file to list gist urls.

$ cat example/valid_example.txt
https://gist.github.com/yoheimuta/a05cc8b41f161efd8e8c
https://gist.github.com/yoheimuta/c3d0be70ce9194c4556f

Then, dry-run to import these gist urls to your repository.

$ gii --gist example/valid_example.txt --repo sample-go-from-gist-to-issue --token *** --no-gist-comment --dry-run
Downloading a gist and comments: a05cc8b41f161efd8e8c
Downloaded  a gist and comments: a05cc8b41f161efd8e8c
Dry-run to create an issue
Dry-run to create a comment
Dry-run to create a comment
Downloading a gist and comments: c3d0be70ce9194c4556f
Downloaded  a gist and comments: c3d0be70ce9194c4556f
Dry-run to create an issue
Dry-run to create a comment
Dry-run to create a comment
Completed to import from gists to issues: count=2

Finally, run to import these gist urls to a your repository.

$ gii --gist example/valid_example.txt --repo sample-go-from-gist-to-issue --token *** --no-gist-comment
Downloading a gist and comments: c3d0be70ce9194c4556f
Downloaded  a gist and comments: c3d0be70ce9194c4556f
Created an issue: from https://gist.github.com/c3d0be70ce9194c4556f to https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/259
Created a comment: https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/259#issuecomment-99134645
Created a comment: https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/259#issuecomment-99134648
Downloading a gist and comments: a05cc8b41f161efd8e8c
Downloaded  a gist and comments: a05cc8b41f161efd8e8c
Created an issue: from https://gist.github.com/a05cc8b41f161efd8e8c to https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/260
Created a comment: https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/260#issuecomment-99134646
Created a comment: https://github.com/yoheimuta/sample-go-from-gist-to-issue/issues/260#issuecomment-99134650
Completed to import from gists to issues: count=2
Screenshots
gist to issue
to
Options
$ gii help
NAME:
   gii - CLI tool to bulk import each gist to github issue

USAGE:
   gii [global options] command [command options] [arguments...]

VERSION:
   0.0.2

COMMANDS:
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --gist                       a text file to list up gist url
   --repo                       a repository name to be imported from gists
   --token                      a github personal access token
   --dry-run                    a flag to run without any changes
   --verbose                    a flag to log verbosely
   --sequence                   a flag to import sequentially
   --no-gist-comment            a flag not to create a gist comment after completing each import
   --help, -h                   show help
   --generate-bash-completion
   --version, -v                print the version

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