Skip to content

Commit 93ce41f

Browse files
Merge branch 'main' into bkellam/bitbucket-gituser-SOU-487
2 parents 15dbda3 + 6fd5b69 commit 93ce41f

File tree

5 files changed

+391
-7
lines changed

5 files changed

+391
-7
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tag Linear Issues with Release
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Release Sourcebot (Production)"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
tag-linear-issues:
14+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
ref: main
21+
fetch-depth: 0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "24"
27+
28+
- name: Extract version from release
29+
id: extract_version
30+
run: |
31+
# Get the latest version from CHANGELOG.md (first non-Unreleased version)
32+
VERSION=$(grep -oP '## \[\K[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -n 1)
33+
34+
if [ -z "$VERSION" ]; then
35+
echo "Error: Could not extract version from CHANGELOG.md"
36+
exit 1
37+
fi
38+
39+
echo "Detected version: $VERSION"
40+
echo "version=$VERSION" >> $GITHUB_OUTPUT
41+
42+
- name: Tag Linear issues
43+
env:
44+
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
45+
LINEAR_TEAM_ID: ${{ secrets.LINEAR_TEAM_ID }}
46+
run: |
47+
node scripts/tagLinearIssuesWithRelease.mjs "${{ steps.extract_version.outputs.version }}"

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
- Added GitHub workflow to automatically tag Linear issues with the release version when a new release is published. [#917](https://github.com/sourcebot-dev/sourcebot/pull/917)
12+
13+
## [4.11.5] - 2026-02-21
14+
1015
### Fixed
1116
- Skip calling `getCommitHashForRefName` for empty repositories to avoid noisy debug log output. [#914](https://github.com/sourcebot-dev/sourcebot/pull/914)
17+
- 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)
1218

1319
### Added
1420
- Added optional `gitUser` field to the Bitbucket connection config to support Bitbucket Cloud API tokens, which require an email address for the REST API but an Atlassian username for git clone. [#918](https://github.com/sourcebot-dev/sourcebot/pull/918)

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)