fix(#206): Respect host setting in environment variable and fix gitlab clone issue. (#676)

This commit is contained in:
Hugo Gu 2025-12-19 00:54:53 +08:00 committed by GitHub
parent b36e55093d
commit 92d8abbbf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed issue where parenthesis in query params were not being encoded, resulting in a poor experience when embedding links in Markdown. [#674](https://github.com/sourcebot-dev/sourcebot/pull/674) - Fixed issue where parenthesis in query params were not being encoded, resulting in a poor experience when embedding links in Markdown. [#674](https://github.com/sourcebot-dev/sourcebot/pull/674)
- Gitlab clone respects host protocol setting in environment variable. [#676](https://github.com/sourcebot-dev/sourcebot/pull/676)
## [4.10.3] - 2025-12-12 ## [4.10.3] - 2025-12-12

View file

@ -123,6 +123,7 @@ export const compileGitlabConfig = async (
const repos = gitlabRepos.map((project) => { const repos = gitlabRepos.map((project) => {
const projectUrl = `${hostUrl}/${project.path_with_namespace}`; const projectUrl = `${hostUrl}/${project.path_with_namespace}`;
const cloneUrl = new URL(project.http_url_to_repo); const cloneUrl = new URL(project.http_url_to_repo);
cloneUrl.protocol = new URL(hostUrl).protocol;
const isFork = project.forked_from_project !== undefined; const isFork = project.forked_from_project !== undefined;
const isPublic = project.visibility === 'public'; const isPublic = project.visibility === 'public';
const repoDisplayName = project.path_with_namespace; const repoDisplayName = project.path_with_namespace;