A single command to open current PR in browser. Supports GitHub and GitLab. Available for macOS, Linux and Windows.
brew install wowu/tap/proscoop bucket add wowu https://github.com/wowu/scoop.git
scoop install wowu/prowget https://github.com/wowu/pro/releases/latest/download/pro-linux-amd64.deb
dpkg -i pro-linux-amd64.debReplace amd64 with arm64 if you are on ARM.
curl -sSL -o /usr/local/bin/pro https://github.com/wowu/pro/releases/latest/download/pro-linux-amd64
chmod +x /usr/local/bin/proReplace amd64 with arm64 if you are on ARM.
go install github.com/wowu/pro@latestpro binary will be installed in $GOPATH/bin (most likely ~/go/bin/pro).
-
Install Go (
brew install goor see offical docs) -
Clone the repository and build the project:
git clone git@github.com:wowu/pro.git && cd pro go build
Download binaries from the releases page.
pro uses GitHub or GitLab API to find Pull Request related to current branch. Access is granted via personal access tokens.
Use auth command to login:
pro auth githubYou will be asked to generate personal access token and paste it in the prompt. It's recommended to change "Expiration" to "No expiration" before creating the token. Token will be stored in ~/.config/pro/config.yml.
Use auth command to login:
pro auth gitlabYou will be asked to generate personal access token and paste it in the prompt. Token will be stored in ~/.config/pro/config.yml.
To open current Pull Request simply type:
proIf you're on the main branch (main, master, trunk, etc.) repository homepage will be opened instead. If no PR matching current branch is found but the branch is pushed to remote, "Create Pull Request" page will be opened.
Use -p | --print flag to print the Pull Request URL instead of opening it in default browser:
pro -pUse -c | --copy flag to copy the Pull Request URL to clipboard instead of opening it in default browser:
pro -c
