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
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 usehttptestto mock the default API.Describe the solution you'd like
I would like to see a
WithBaseURLfunction that would closely align with howgo-githubcurrently 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