Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Skip calling `getCommitHashForRefName` for empty repositories to avoid noisy debug log output. [#914](https://github.com/sourcebot-dev/sourcebot/pull/914)
- Fixed "Open in GitLab" links having a double slash when the GitLab host URL is configured with a trailing slash. [#915](https://github.com/sourcebot-dev/sourcebot/pull/915)
Comment thread
msukkari marked this conversation as resolved.

## [4.11.4] - 2026-02-20

Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/repoCompileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const compileGitlabConfig = async (
const gitlabRepos = gitlabReposResult.repos;
const warnings = gitlabReposResult.warnings;

const hostUrl = config.url ?? 'https://gitlab.com';
const hostUrl = (config.url ?? 'https://gitlab.com').replace(/\/$/, '');
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
const repoNameRoot = new URL(hostUrl)
.toString()
.replace(/^https?:\/\//, '');
Expand Down Expand Up @@ -724,7 +724,7 @@ export const compileAzureDevOpsConfig = async (
const azureDevOpsRepos = azureDevOpsReposResult.repos;
const warnings = azureDevOpsReposResult.warnings;

const hostUrl = config.url ?? 'https://dev.azure.com';
const hostUrl = (config.url ?? 'https://dev.azure.com').replace(/\/$/, '');
const repoNameRoot = new URL(hostUrl)
.toString()
.replace(/^https?:\/\//, '');
Expand Down