Redirect on GetBranch #1895
Labels
Breaking API Change
PR will require a bump to the major version num in next release. Look here to see the change(s).
enhancement
good first issue
It's common for master branch to be renamed to main branch.
I noticed that when trying to get a renamed master branch, I normally get a 301:
But using go-github, I get a 404 response. Is there any way to handle the 301 response and include the redirect URL in the response body when calling
GetBranch
?The text was updated successfully, but these errors were encountered: