Emacs package to smoothly create and checkout Github pull requests. Uses the Github access token for authorization to Github. This means you can use this package even if your Github account uses Two-Factor Authentication.
It's available on MELPA
M-x package-install github-pullrequest
And then add to your Emacs settings
(require 'github-pullrequest)
Use ido-ubiquitous to enable IDO
First time you run any command, it will ask for your Github access token. You can create a new access token under github settings. It is then saved in your git setting for the current repository under the key github.token
, so you don't have to enter it next time.
The git repository you want to work with must have a remote called origin
which is a github remote.
M-x github-pullrequest-new
Creates a pull request with current branch
as head
and master
as base
. The title of the pull request is the branch name and there is no describing text.
M-x github-pullrequest-checkout
Lists all open pull requests in current repository. When selecting one of them, the branch for the pull request is checked out, and created if it doesn't exist.