ExGHPR

Hex.pmBuild Status

ghpr command to work with GitHub Pull Request.

Inspired by github/hub CLI. Written in Elixir.

Features

Installation

  1. Require Git (1.8+)
  2. Install Erlang and Elixir
    • Personally recommend asdf with asdf-erlang/asdf-elixir
    • If you install via compiled binary, the only dependency is Erlang
    • If you want to build by yourself, Elixir and mix required
  3. Install by either:
    • mix (Elixir 1.3+)
      • Commands:
        $ mix escript.install hex ex_ghpr
      • Installed binary should be ~/.mix/escripts/ghpr
      • Add ~/.mix/escripts to your PATH env var (default escript installation path from Elixir 1.3)
      • To uninstall, mix escript.uninstall ghpr (notice the command name, not repository name)
    • mix (Elixir 1.2 or older)
      • Commands:
        $ git clone https://github.com/ymtszw/ex_ghpr
        $ cd ex_ghpr
        $ mix deps.get
        $ mix escript.build
      • Installed binary should be ~/.mix/escripts/ghpr
      • Add ~/.mix/escripts to your PATH env var (default escript installation path from Elixir 1.3)
      • To uninstall, just remove ghpr binary
    • downloading compiled binary from here

Usage

$ ghpr

This will do:

Sub-commands and options

Configuration

License

BSD-3-Clause