mislav / hub

A command-line tool that makes git easier to use with GitHub.
https://hub.github.com/
MIT License
22.8k stars 2.2k forks source link

Open the GitHub web interface to create the new pull request #688

Open charlierudolph opened 9 years ago

charlierudolph commented 9 years ago

Instead of specifying a message/file/editor, just open the github page for a new pull request with the specified base and head. This way I can use the github interface for entering my message and description (also gives me the autocompletion for tagging reviewers).

owenthereal commented 9 years ago

:+1: I'd love to see this as well.

mislav commented 9 years ago

Yep, on our radar. What I'm envisioning is a command that both pushes the current branch and opens the GitHub web interface to create PR for it.

Basically, illustrated in bash:

branch="$(git symbolic-ref HEAD)"
branch="${branch#refs/heads/}"
git push -u origin "$branch"
open "https://github.com/<OWNER>/<REPO>/pull/${branch//\//%2F}"
mislav commented 9 years ago

We don't need to be tagging feature requests with Feature request: or [FR]. The issue label is enough.

mattn commented 9 years ago

:+1:

Jaecen commented 9 years ago

:+1:

dasilvacontin commented 9 years ago

:+1:

parkr commented 9 years ago

:+1:

Edwin97 commented 7 years ago

lml