https://github.com/dannyfeliz/create-pull-request
`create-pull-request` is a CLI that lets you open the URL to create a pull request pointing to the base branch in Github and Bitbuket.
https://github.com/dannyfeliz/create-pull-request
cli open-pull-request pull-request
Last synced: 9 months ago
JSON representation
`create-pull-request` is a CLI that lets you open the URL to create a pull request pointing to the base branch in Github and Bitbuket.
- Host: GitHub
- URL: https://github.com/dannyfeliz/create-pull-request
- Owner: DannyFeliz
- License: mit
- Created: 2021-02-02T19:47:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T14:58:48.000Z (about 2 years ago)
- Last Synced: 2025-04-08T02:17:27.654Z (9 months ago)
- Topics: cli, open-pull-request, pull-request
- Language: JavaScript
- Homepage: https://npmjs.com/package/create-pull-request
- Size: 19.5 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[
](https://www.npmjs.com/package/create-pull-request)
[
](https://www.npmjs.com/package/create-pull-request)
# 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 and Bitbuket.
## Support
- Github
- BitBucket
## Installation
Use npm or yarn to install create-pull-request.
```bash
# npm
npm install create-pull-request --global
# yarn
yarn add create-pull-request --global
```
## Usage
```
// 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 `git@github.com:torvalds/linux.git` if you run `create-pull-request` it will open this URL
```bash
https://github.com/torvalds/linux/compare/my-cool-feature
```
## Aliases
You can use any of these aliases to refer to this package.
- create-pull-request
- cpr
- open-pr
- openpr
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
This project is open source and available under the: [MIT License](LICENSE)