Skip to content

feat: extend support to on-prem GitHub Enterprise Server#896

Merged
codejedi365 merged 2 commits intopython-semantic-release:masterfrom
codejedi365:feat/add-github-on-prem-support
Apr 20, 2024
Merged

feat: extend support to on-prem GitHub Enterprise Server#896
codejedi365 merged 2 commits intopython-semantic-release:masterfrom
codejedi365:feat/add-github-on-prem-support

Conversation

@codejedi365
Copy link
Contributor

@codejedi365 codejedi365 commented Apr 20, 2024

Purpose

Extend support to handle GitHub Enterprise Server for on-premise usage with a non sub-domain api url

Resolve #895

Rationale

This PR adds logic to derive the api domains based on which product is used. It is assumed that GitHub Enterprise Cloud is using github.com which uses a subdomain for api requests. This assumption may be wrong but it is the best we have today. When it is not github.com, then we assume that GitHub Enterprise Server product is being used as it is hosted on-prem by the organization that owns the domain. If on-prem is detected, than it is assumed that the api location is a subpath of the base domain.

How I tested

There are some unit tests to ensure the derivative and detection mechanisms work but ultimately the author of #895 tested it in their environment and confirmed that it successfully made a release on their internal server.

@codejedi365 codejedi365 self-assigned this Apr 20, 2024
@codejedi365 codejedi365 force-pushed the feat/add-github-on-prem-support branch 2 times, most recently from f2e6e57 to 8cb7847 Compare April 20, 2024 04:09
@codejedi365 codejedi365 force-pushed the feat/add-github-on-prem-support branch from 8cb7847 to 1a5840e Compare April 20, 2024 04:31
@codejedi365 codejedi365 merged commit 4fcb737 into python-semantic-release:master Apr 20, 2024
@codejedi365 codejedi365 deleted the feat/add-github-on-prem-support branch April 20, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version Command failed Create Release step under Github Enterprise VCS

1 participant