Skip to content

[Feature]: Add support for setting base URL directly #50

Description

@stevehipwell

Is your feature request related to a problem?

The current implementation doesn't support GHEC as you can only have the default URL or a GHES URL using WithEnterpriseURL, it also limits the ability to use httptest to mock the default API.

Describe the solution you'd like

I would like to see a WithBaseURL function that would closely align with how go-github currently works.

Describe alternatives you've considered

There is no alternative for the GHEC use case.

Use case

This is for the GitHub TF provider new client that uses this package. It's not been released yet, but we're hoping to get it out soon and really want GHEC support to work.

Implementation ideas

No response

Code example

Additional context

No response

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions