Skip to content
/ gii Public

CLI tool to bulk import each gist to github issue with gist url list

License

Notifications You must be signed in to change notification settings

yoheimuta/gii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI tool to bulk import each gist to github issue with gist url list

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages