Code Monkey home page Code Monkey logo

gii's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.