Create and merge GitHub Pull Requests from the terminal in one command.
sudo add-apt-repository ppa:gabsrodrigues-dev/pr-ship
sudo apt-get update
sudo apt-get install pr-shipgit clone https://github.com/gabsrodrigues-dev/pr-ship.git
cd pr-ship
sudo bash install.shgit clone https://github.com/gabsrodrigues-dev/pr-ship.git
cd pr-ship
bash build-deb.sh
sudo dpkg -i build/pr-ship_1.0.2.debsudo make install- bash >= 4.0
- gh (GitHub CLI) — installed and authenticated (
gh auth login)
After installing, run the interactive setup:
pr-ship --setupThis will ask you:
- Language — auto-detects your system language (falls back to English)
- Default GitHub owner — your username or org (e.g.
gabsrodrigues-dev) - Default head branch — source branch (default:
development) - Default base branch — target branch (default:
sandbox) - Default PR title — optional custom title
- Default PR body — optional custom body
Config is saved at ~/.config/pr-ship/config.
pr-ship <repo> [head] [base] [--title "..."] [--body "..."]# Uses configured owner, default branches
pr-ship my-repo
# Custom branches
pr-ship my-repo feature/login main
# Full owner/repo
pr-ship gabsrodrigues-dev/my-repo development sandbox
# Custom title and body
pr-ship my-repo --title "Release v2.0" --body "Production release"| Flag | Description |
|---|---|
--setup |
Run interactive setup |
--title "..." |
Custom PR title |
--body "..." |
Custom PR body |
--help |
Show help |
--version |
Show version |
pr-ship auto-detects your system language. Supported:
- en — English
- pt_BR — Português (Brasil)
- es — Español
- fr — Français
- de — Deutsch
- it — Italiano
To add a new language, create a file at /usr/share/pr-ship/lang/<locale>.sh following the existing format.
To distribute via sudo apt-get install pr-ship:
- Create a Launchpad account
- Create a PPA at
https://launchpad.net/~YOUR_USER/+activate-archive - Set up GPG key and upload it to Ubuntu keyserver
- Build the source package:
export DEBEMAIL="your@email.com"
export DEBFULLNAME="Your Name"
debuild -S -sa- Upload to your PPA:
dput ppa:YOUR_USER/pr-ship ../pr-ship_1.0.2-1_source.changesUsers can then install with:
sudo add-apt-repository ppa:YOUR_USER/pr-ship
sudo apt-get update
sudo apt-get install pr-ship# If installed via install.sh or make
sudo bash uninstall.sh
# or
sudo make uninstall
# If installed via .deb
sudo apt-get remove pr-ship