Allow to open the URL to create a pull request pointing to the base branch
npm install create-pull-request

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.
Use npm, yarn, pnpm, or bun to install create-pull-request.
``bashnpm
npm install create-pull-request --global
Usage
`bash
Open pull request in default browser
create-pull-request
or use shorter aliases
cpr
open-pr
openprOpen pull request in specific browser
create-pull-request chrome
or use shorter aliases
cpr firefox
open-pr safari
openpr edgeAll browsers work with any alias
cpr chrome
cpr firefox
cpr firefox-dev
cpr safari
cpr edge
cpr opera
cpr braveShow help
create-pull-request --help
cpr --help
open-pr --help
openpr --help
`Available Aliases
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!
Supported Browsers
- Chrome (
chrome)
- Firefox (firefox)
- Firefox Developer Edition (firefox-dev)
- Safari (safari)
- Microsoft Edge (edge)
- Opera (opera)
- Brave (brave)Development
$3
`bash
Install dependencies
npm installRun tests
npm testRun tests once
npm run test:runRun tests with coverage
npm run test:coverage
`$3
1. Fork the repository
2. Create your feature branch (
git checkout -b feature/amazing-feature)
3. Make your changes
4. Add tests for your changes
5. Ensure tests pass (npm test)
6. Commit your changes (git commit -m 'Add some amazing feature')
7. Push to the branch (git push origin feature/amazing-feature`)This project is licensed under the MIT License - see the LICENSE file for details.