spr
Send Pull Request, ease the creation and submission of pull request on command line.
Usage
/Users/you/Dev/jest
> spr # sends PR to github.com/$gitOriginUser/jest, so if $origin is facebook/jest then sends PR to facebook/jest
> spr --branch develop # same as previous, but will send PR to the develop branch instead of main branch
> spr algolia # sends PR to github.com/algolia/jest, useful when working on a fork
> spr algolia/jest2 # sends PR github.com/algolia/jest2, useful when creating different directories locally
Requirements
yarn global add gh
Installation
Put the content of the .profile
file inside your own .zprofile
, .profile
or .bash_profile
.
Ultimately this could be exposed as an npm package with some rewrite, but right now it already works.