neonowy / pro

⚡️A single command to quickly open current PR in browser. Supports GitHub and GitLab.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pro - Pull Request Opener

A single command to open current PR in browser. Supports GitHub and GitLab.

pro

Usage

Open Pull Request for current branch in browser:

pro

Print Pull Request URL instead of opening it:

pro -p

Authorize pro to access your GitHub account:

pro auth github

Authorize pro to access your GitLab account:

pro auth gitlab

Tokens are stored in ~/.config/pro/config.yml by default.

Installation

Homebrew (macOS/Linux)

brew install wowu/tap/pro

Scoop (Windows)

scoop bucket add wowu https://github.com/wowu/scoop.git
scoop install wowu/pro

dpkg (Ubuntu/Debian)

wget https://github.com/wowu/pro/releases/latest/download/pro-linux-amd64.deb
dpkg -i pro-linux-amd64.deb

Replace amd64 with arm64 if you are on ARM.

Download binary (Linux)

curl -sSL -o /usr/local/bin/pro https://github.com/wowu/pro/releases/latest/download/pro-linux-amd64
chmod +x /usr/local/bin/pro

Replace amd64 with arm64 if you are on ARM.

Go package

go install github.com/wowu/pro@latest

Go 1.18 is required. pro binary will be installed in $GOPATH/bin (most likely ~/go/bin/pro).

Compile from source

  1. Install Go 1.18 (brew install go or see offical docs)

  2. Clone the repository and build the project:

    git clone git@github.com:Wowu/pro.git && cd pro
    go build

Other platforms

Download binaries from the releases page.

About

⚡️A single command to quickly open current PR in browser. Supports GitHub and GitLab.

License:MIT License


Languages

Language:Go 95.7%Language:Nix 4.3%