`gh pr create --web`
Saves me having to push my current branch, navigate to the repo page, hit the "create PR" button, etc.
`gh pr create --web`
Saves me having to push my current branch, navigate to the repo page, hit the "create PR" button, etc.
I've been doing `git push -u origin HEAD` and then using my mouse to click on the "go here to create a PR" link that gets printed, which isn't too bad. Takes you right to the page where you can review the changeset before opening the PR. If I'm not actually ready to open a PR by the time I push upstream, I just open a draft instead.
My favorite is "git browse", which opens a browser for the current repo & branch. There are a few other commands that are probably useful but that I don't really do much with.
gh alias set pcw 'pr create --web'
and then just use gh pcw
to create a new PR. There's also sufficient smarts around forking or not, depending on write permissions on the upstream repo. gh pcw --base=development
It's also super quick to set up an alias, so I don't see why not.This type of alias seems on the fence for me, if was like 10x a day I'd definitely be on board but a few times a day is a gray area