Installation

Prerequisites

  • A GitHub personal access token with appropriate permissions, or
  • GitHub CLI (gh) installed and authenticated

Binary Download

Download the latest release from the releases page.

Linux (amd64)

curl -L https://github.com/UnitVectorY-Labs/ghprmerge/releases/latest/download/ghprmerge_linux_amd64 -o ghprmerge
chmod +x ghprmerge
sudo mv ghprmerge /usr/local/bin/

macOS (amd64)

curl -L https://github.com/UnitVectorY-Labs/ghprmerge/releases/latest/download/ghprmerge_darwin_amd64 -o ghprmerge
chmod +x ghprmerge
sudo mv ghprmerge /usr/local/bin/

macOS (arm64 / Apple Silicon)

curl -L https://github.com/UnitVectorY-Labs/ghprmerge/releases/latest/download/ghprmerge_darwin_arm64 -o ghprmerge
chmod +x ghprmerge
sudo mv ghprmerge /usr/local/bin/

Windows

Download ghprmerge_windows_amd64.exe from the releases page and add it to your PATH.

Building from Source

Build

git clone https://github.com/UnitVectorY-Labs/ghprmerge.git
cd ghprmerge
go build -o ghprmerge .

Install to GOPATH

go install github.com/UnitVectorY-Labs/ghprmerge@latest

Verify Installation

ghprmerge --help

Authentication Setup

Using GITHUB_TOKEN

export GITHUB_TOKEN=ghp_xxxxxxxxxxxx
ghprmerge --org myorg --source-branch dependabot/

Using GitHub CLI

gh auth login
ghprmerge --org myorg --source-branch dependabot/

The tool will automatically use the token from gh auth token if GITHUB_TOKEN is not set.