Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forge/github: Determine API URL from base URL if not set #337

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

abhinav
Copy link
Owner

@abhinav abhinav commented Aug 9, 2024

For GHES, usually the API URL is /api under the base URL.
So if the API URL is not set, and base URL is not github.com,
we can assume the API URL is $baseURL/api.

Users can still override this with the spice.forge.github.apiUrl
or GITHUB_API_URL environment variable.

Follow up to #330 (comment)
Relates to #336

For GHES, usually the API URL is /api under the base URL.
So if the API URL is not set, and base URL is not github.com,
we can assume the API URL is $baseURL/api.

Users can still override this with the `spice.forge.github.apiUrl`
or `GITHUB_API_URL` environment variable.

Follow up to #330 (comment)
@abhinav
Copy link
Owner Author

abhinav commented Aug 9, 2024

This change is part of the following stack:

Change managed by git-spice.

@abhinav abhinav merged commit b6ccc5f into main Aug 9, 2024
7 checks passed
@abhinav abhinav deleted the github-guess-api-url branch August 9, 2024 04:49
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.

1 participant