Open jayhogan opened 6 years ago
@jayhogan Thanks for reporting!
Were you noticing this in previous versions?
Also what cmd(s) were you running when you ran into this?
Sorry for the late response. This was my first experience with node-gh so I have not tried previous versions of the tool. I encountered the problem with gh issue
and gh pr
but I would expect to see this issue with any command in a renamed repo.
There is a simple workaround (update your remote reference!) so I would consider this a low priority issue.
Thanks!
Thanks for expanding on that @jayhogan. It's definitely something we should do!
Version:
gh 1.13.5
My first experience using
gh
was working with a repo that I recently renamed. In this scenario, github will respond with a301
and include the new url in theLocation
header field.Here is a sample response:
Relevant github API docs: https://developer.github.com/v3/#http-redirects
I resolved the issue by updating the remote url in my local repo: