Skip to content

WithEnterpriseURLs Upload-URLs with GitHub Enterprise Cloud #3985

@TheNitek

Description

@TheNitek

When using WithEnterpriseURLs with GitHub Enterprise Cloud (hosted at company.ghe.com), the Upload URL seems to get messed up:
The upload URL returned by the create release endpoint is of form:
https://uploads.<company>.ghe.com/repos/<org>/<repo>/releases/<releaseId>/assets

due to the fact that this neither start with api. or contains .api. or ends with /api/uploads, the /api/uploads suffix is added here which breaks the URL

I guess adding an additional check for uploads. prefix should be an easy fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions