When I’m ready with my feature branch, I use hub to create the pull request for me:
$ git pull-request --base development --draft --browse --push
hub does a few cool stuff here:
- Starts a Vim instance with our pull request template to edit the PR’s description.
- Set
developmentas base. - Create the pull request as a draft (
--draft). - Open my browse (
--browse) and load the PR’s page.
You can check all the parameters in their man hub page.