create-pull-request is a CLI that allows you to open the URL to create a pull request pointing to the base branch in GitHub, BitBucket, and GitLab.
- GitHub
- BitBucket
- GitLab
Use npm, yarn, pnpm, or bun to install create-pull-request.
# npm
npm install create-pull-request --global
# yarn
yarn global add create-pull-request
# pnpm
pnpm add create-pull-request --global
# bun
bun add create-pull-request --global
# Open pull request in default browser
create-pull-request
# or use shorter aliases
cpr
open-pr
openpr
# Open pull request in specific browser
create-pull-request chrome
# or use shorter aliases
cpr firefox
open-pr safari
openpr edge
# All browsers work with any alias
cpr chrome
cpr firefox
cpr firefox-dev
cpr safari
cpr edge
cpr opera
cpr brave
# Show help
create-pull-request --help
cpr --help
open-pr --help
openpr --help
For convenience, you can use any of these command aliases:
create-pull-request
(full name)cpr
(short form)open-pr
(alternative)openpr
(alternative without dash)
All aliases work identically - use whichever you prefer!
- Chrome (
chrome
) - Firefox (
firefox
) - Firefox Developer Edition (
firefox-dev
) - Safari (
safari
) - Microsoft Edge (
edge
) - Opera (
opera
) - Brave (
brave
)
# Install dependencies
npm install
# Run tests
npm test
# Run tests once
npm run test:run
# Run tests with coverage
npm run test:coverage
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Add tests for your changes
- Ensure tests pass (
npm test
) - 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.