Open nicklan opened 7 years ago
Also getting this error.
I'm seeing the same thing on emacs 25.3, magit 20180405.625, magit-gh-pulls-20171121.1110
Get the same problem. API: https://github.my-company.com/api/v3 Emacs: 26.1
I've found this is a problem how it guesses which Github project this repo corresponds to
setting it manually made the error go away
git config magit.gh-pulls-repo <user>/<repo> # your github repository
That does not improve the situation on my end. I get the same error with both git config magit.gh-pulls-repo user/repo
and git config magit.gh-pulls-repo git@github.com:user/repo.git
. Might be related to the repo being private?
I had this problem too, and after digging on what was happening I discovered that my problem was that the original repository name had changed but I didn't updated my origin url, and the gh library doesn't follow the github redirects:
> curl -H "Authorization: token <token>" -i https://api.github.com/repos/<user>/<repo>/pulls
{
"message": "Moved Permanently",
"url": "https://api.github.com/repositories/<id>/pulls",
"documentation_url": "https://docs.github.com/v3/#http-redirects"
}
If you try again with the url
received it will work.
My solution was just updating my origin url.
Emacs version: 25.1.1 magit-gh-pulls version: 20161020.249 from melpa
I'm running into a couple of errors when trying to refresh PRs. In one repo (with no PRs) I get the following:
In another (with a TON of PRs), I get this (truncated because it's a giant output, let me know if you need more):