go-githubauth Version
v1.5.0
Go Version
1.25.0
What happened?
WithEnterpriseURL doesn't add the /api/v3 path since go-github dependency was removed. You can see the behaviour of go-github here: https://github.com/google/go-github/blob/3260322dc8432f9c6df595a4794e60bd6d229bea/github/github.go#L387
Expected behavior
It should add /api/v3 if the url doesnt have api. as a subdomain, matching the behaviour of go-github
Steps to reproduce
Use WithEnterpriseURL with a github enterprise account with the api path set too /api/v3
Code example
Relevant log output
Additional context
No response
Code of Conduct
go-githubauth Version
v1.5.0
Go Version
1.25.0
What happened?
WithEnterpriseURLdoesn't add the /api/v3 path since go-github dependency was removed. You can see the behaviour of go-github here: https://github.com/google/go-github/blob/3260322dc8432f9c6df595a4794e60bd6d229bea/github/github.go#L387Expected behavior
It should add /api/v3 if the url doesnt have api. as a subdomain, matching the behaviour of go-github
Steps to reproduce
Use WithEnterpriseURL with a github enterprise account with the api path set too /api/v3
Code example
Relevant log output
Additional context
No response
Code of Conduct