Skip to content

[Bug]: Wrong url for github enterprise since go-github dependency was removed #40

Description

@zoeyfyi

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions