An open API service indexing awesome lists of open source software.

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.

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)