Skip to content

Commit e183959

Browse files
authored
Merge branch 'main' into cursor/SOU-535-linear-issue-release-tagging-6c95
2 parents a2767a4 + 306a29e commit e183959

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [4.11.5] - 2026-02-21
11+
1012
### Fixed
1113
- Skip calling `getCommitHashForRefName` for empty repositories to avoid noisy debug log output. [#914](https://github.com/sourcebot-dev/sourcebot/pull/914)
14+
- 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)
1215

1316
## [4.11.4] - 2026-02-20
1417

packages/backend/src/repoCompileUtils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const compileGithubConfig = async (
6161
const gitHubRepos = gitHubReposResult.repos;
6262
const warnings = gitHubReposResult.warnings;
6363

64-
const hostUrl = config.url ?? 'https://github.com';
64+
const hostUrl = (config.url ?? 'https://github.com').replace(/\/+$/, '');
6565

6666
const repos = gitHubRepos.map((repo) => {
6767
const record = createGitHubRepoRecord({
@@ -160,7 +160,7 @@ export const compileGitlabConfig = async (
160160
const gitlabRepos = gitlabReposResult.repos;
161161
const warnings = gitlabReposResult.warnings;
162162

163-
const hostUrl = config.url ?? 'https://gitlab.com';
163+
const hostUrl = (config.url ?? 'https://gitlab.com').replace(/\/+$/, '');
164164
const repoNameRoot = new URL(hostUrl)
165165
.toString()
166166
.replace(/^https?:\/\//, '');
@@ -242,7 +242,7 @@ export const compileGiteaConfig = async (
242242
const giteaRepos = giteaReposResult.repos;
243243
const warnings = giteaReposResult.warnings;
244244

245-
const hostUrl = config.url ?? 'https://gitea.com';
245+
const hostUrl = (config.url ?? 'https://gitea.com').replace(/\/+$/, '');
246246
const repoNameRoot = new URL(hostUrl)
247247
.toString()
248248
.replace(/^https?:\/\//, '');
@@ -309,7 +309,7 @@ export const compileGerritConfig = async (
309309
connectionId: number): Promise<CompileResult> => {
310310

311311
const gerritRepos = await getGerritReposFromConfig(config);
312-
const hostUrl = config.url;
312+
const hostUrl = config.url.replace(/\/+$/, '');
313313
const repoNameRoot = new URL(hostUrl)
314314
.toString()
315315
.replace(/^https?:\/\//, '');
@@ -396,7 +396,7 @@ export const compileBitbucketConfig = async (
396396
const bitbucketRepos = bitbucketReposResult.repos;
397397
const warnings = bitbucketReposResult.warnings;
398398

399-
const hostUrl = config.url ?? 'https://bitbucket.org';
399+
const hostUrl = (config.url ?? 'https://bitbucket.org').replace(/\/+$/, '');
400400
const repoNameRoot = new URL(hostUrl)
401401
.toString()
402402
.replace(/^https?:\/\//, '');
@@ -724,7 +724,7 @@ export const compileAzureDevOpsConfig = async (
724724
const azureDevOpsRepos = azureDevOpsReposResult.repos;
725725
const warnings = azureDevOpsReposResult.warnings;
726726

727-
const hostUrl = config.url ?? 'https://dev.azure.com';
727+
const hostUrl = (config.url ?? 'https://dev.azure.com').replace(/\/+$/, '');
728728
const repoNameRoot = new URL(hostUrl)
729729
.toString()
730730
.replace(/^https?:\/\//, '');

packages/shared/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This file is auto-generated by .github/workflows/release-sourcebot.yml
2-
export const SOURCEBOT_VERSION = "v4.11.4";
2+
export const SOURCEBOT_VERSION = "v4.11.5";

0 commit comments

Comments
 (0)