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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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