Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have hit the final crater you mentioned so often, I now manually visit the url /myorg/myrepo/compare/old-master...my-new-feature to start the PR instead of clicking "Create PR" or "Compare"


I use the hub[0] cli tool to manually specify the branch when I create a PR.

[0]: https://hub.github.com/hub-pull-request.1.html


For me, I hit Command+Shift+P in VS Code, choose Open pull request, then hit Enter. As easy as it gets.

https://marketplace.visualstudio.com/items?itemName=GitHub.v...


...or have even more PR functionality with https://marketplace.visualstudio.com/items?itemName=CodeStre...


Git aliases to the rescue:

    pr !open "$(git remote -v | grep origin | grep push | cut -f 2 | cut -d " " -f 1 | sed -e "s|git@\(.*\):\(.*\).git|https://\1/\2|")/pull/new/$(git rev-parse --abbrev-ref HEAD)"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: