ingydotnet / git-hub

Do GitHub operations from the `git` command
MIT License
794 stars 62 forks source link

pr-new fails when `github.owner` is set #230

Open perlpunk opened 8 years ago

perlpunk commented 8 years ago

I usually work on git-hub with two remotes - the original and my fork. pr-new will just do the right thing.

For convenience (commands like issues, pr-list should always go to the original) I have set: git config github.owner ingydotnet

But with this I get the error mesage:

% git hub pr-new
...
curl --request POST https://api.github.com/repos/perlpunk/git-hub/pulls -d {"head":"ingydotnet:perlpunk/2016-06-changelog","base":"master","title":"Update Changes","body":"Add recent changes\n"} ...

New PR failed: 

API status code: 422

API error output:
Unprocessable Entity

The value of "head" should be perlpunk:perlpunk/2016-06-changelog instead.

ingydotnet commented 7 years ago

Just a note. The config key should be git-hub.owner. ALl the config stuff really needs some work.