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 and Bitbuket.
- Github
- BitBucket
Use npm or yarn to install create-pull-request.
# npm
npm install create-pull-request --global
# yarn
yarn add create-pull-request --global
// in the terminal in your project folder (default browser)
create-pull-request
// opens the URL in a specified browser
create-pull-request firefox
It will open an URL to create a new pull request pointing to the base branch.
e.g.
if you have the linux
project and you're working in a cool feature like my-cool-feature
and the project origin url is [email protected]:torvalds/linux.git
if you run create-pull-request
it will open this URL
https://github.com/torvalds/linux/compare/my-cool-feature
You can use any of these aliases to refer to this package.
- create-pull-request
- cpr
- open-pr
- openpr
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is open source and available under the: MIT License