Hello everyone,
Would it be possible to allow the api endpoint to be used instead of hardcoding the API URL for enterprise solutions?
That is done here:
|
self.session.base_url = url.rstrip("/") + "/api/v3" |
But this way it's not possible to use this library for the new GitHub Cloud Enterprise solution where api endpoints have the following format https://api.your-ghe-server-name.ghe.com
https://docs.github.com/en/enterprise-cloud@latest/rest/actions/artifacts?apiVersion=2026-03-10

Either by removing the hardcoded api/v3 path or even creating a new class for example GitHubEnterpriseCLoud(GitHub)with a api_url endpoint as input would work.
Thank you
Hello everyone,
Would it be possible to allow the api endpoint to be used instead of hardcoding the API URL for enterprise solutions?
That is done here:
github3.py/src/github3/github.py
Line 2993 in 4f2fb1d
But this way it's not possible to use this library for the new GitHub Cloud Enterprise solution where api endpoints have the following format

https://api.your-ghe-server-name.ghe.comhttps://docs.github.com/en/enterprise-cloud@latest/rest/actions/artifacts?apiVersion=2026-03-10
Either by removing the hardcoded
api/v3path or even creating a new class for exampleGitHubEnterpriseCLoud(GitHub)with a api_url endpoint as input would work.Thank you