Skip to content

[Improvement] Support for GitHub Enterprise Cloud API #1330

Description

@ricardojdsilva87

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
Image

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions