gopr

command module
Version: v0.0.0-...-a430e6a Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 15 Imported by: 0

README

Go Report Card CircleCI

gopr

cli tool for managing pull requests on GitHub (Only Open Pull Request).

Installation

1 . using go get or homebrew

using homebrew

$ brew tap yutaroyamanaka/gopr
$ brew install gopr

using go get

$ export PATH=$PATH:$GOPATH/bin
$ go get github.com/yutaroyamanaka/gopr
$ ln -s $GOPATH/bin/gopr ~/bin

2 . set GitHub access token

$ curl -u 'your github account name' -d '{"scopes":["repo"],"note":"Help example"}' https://api.github.com/authorizations

{
  "scopes": [
    "repo"
  ],
  "token": "your_token", <-- This one !
  "app": {
    "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api",
    "name": "Help example (API)"
  },
  "url": "https://api.github.com/authorizations/123456",
  "note": "Help example",
  "note_url": null,
  "id": 123456,
}
export GITHUB_TOKEN="your_token"

Usage

There are three kinds of command in gopr.

$ gopr --help
1. gopr info

gopr info is the command to get information about pull requests you mention.

You have to specify -o and -r definitely.

$ gopr -o docker -r compose info

to get the detail, you can add -n option.

$ gopr -o docker -r compose -n 6584 info
2. gopr diff

gopr diff is the command to check the file changes.

You have to specify all options definitely to use this command.

$ gopr -o docker -r compose -n 6584 diff
3. gopr create

gopr create is the command to create new pull request.

You have to specify -o and -r option definitely.

$ gopr -o yutaroyamanaka -r gopr create

LICENSE

This software is released under the MIT License, see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL