A simple command-line utility that opens GitHub's "New Pull Request" page in your browser directly from your terminal. Skip the manual navigation and instantly create PRs for your current branch.
- 🔄 One Command: Run
createpr
and immediately open the correct GitHub PR creation page - 🔍 Auto-detection: Automatically detects GitHub repository URL from Git remotes
- 🌿 Branch Aware: Uses your current branch as the source branch for the PR
- 🔒 Secure: Works with both HTTPS and SSH remote URLs
- 🚀 Fast: No dependencies other than Git itself
brew tap internetblacksmith/internetblacksmith
brew install createpr
scoop bucket add internetblacksmith https://github.com/internetblacksmith/scoop-bucket
scoop install internetblacksmith/createpr
- Go to the Releases page
- Download the appropriate binary for your system:
createpr_linux_amd64.tar.gz
for Linux (64-bit)createpr_darwin_amd64.tar.gz
for macOS (Intel)createpr_darwin_arm64.tar.gz
for macOS (Apple Silicon)createpr_windows_amd64.zip
for Windows (64-bit)
- Extract the archive
- Move the
createpr
executable to a directory in your PATH
If you have Go installed:
go install github.com/internetblacksmith/createpr@latest
Navigate to any Git repository in your terminal and run:
createpr
This will:
- Detect the GitHub repository URL from your Git remote
- Identify your current branch
- Open your default web browser to GitHub's "New Pull Request" page with your branch pre-selected
# Basic usage
cd ~/projects/my-repo
createpr
- Go 1.18 or higher
- Git
# Clone the repository
git clone https://github.com/internetblacksmith/createpr.git
cd createpr
# Build
go build
# Run tests
go test
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Yes, and pizza delivery exists too, but sometimes you just want to grab a slice without filling out forms!
CreatePR is the "no authentication, zero API calls, instant gratification" solution:
- Zero login needed - No "please authenticate" dance required
- Lightning fast - Makes absolutely no network requests (the gh CLI makes several)
- Featherweight champion - Tiny binary that does one thing perfectly
- Works offline - Your spotty coffee shop WiFi can't stop you from getting to that PR page
- No relationship baggage - Doesn't need to know your GitHub username, tokens, or life story
If you're already happily married to the GitHub CLI, that's cool! But for a commitment-free PR creation experience, CreatePR is your speed-dating alternative.
I got tired of:
- Click repository
- Click Pull requests
- Click New pull request
- Click branch dropdown
- Scroll... scroll... scroll...
- Click my branch
- Question my life choices
Now it's just createpr
→ browser opens → PR ready to complete
Probably not. The beauty of CreatePR is its single-minded focus - it opens PR pages and nothing else. It's not trying to boil the ocean or become your GitHub Swiss Army knife.
That said, if you have an idea that keeps it simple while improving the core functionality, submit an issue! Just remember: if your feature request includes the phrase "and then it could also..." it's probably a no.
Nope! CreatePR just teleports you to the PR creation page with your current branch pre-selected. You still get to write that thoughtful PR description your colleagues will definitely read thoroughly.
Think of it as an express elevator to the PR floor, not an automated PR robot.
- Inspired by a rant from Theo in one of his streams
- Built with Go
- Released with GoReleaser
Made with ❤️ by Internet Blacksmith
```- Add option to open the extended PR view
- Handle other services BitBucket/Gitlab etc...