Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed the me-control to render the user's avatar in the top-bar. [#874](https://github.com/sourcebot-dev/sourcebot/pull/874)
- Moved the "current version" indicator into the "what's new" dropdown. [#874](https://github.com/sourcebot-dev/sourcebot/pull/874)

### Fixed
- Fixed issue where "Open in Bitbucket" and commit links for Bitbucket Server repos had an extra `/browse` in the URL. [#877](https://github.com/sourcebot-dev/sourcebot/pull/877)

### Removed
- Removed the Discord and GitHub buttons from the top corner. [#874](https://github.com/sourcebot-dev/sourcebot/pull/874)

Expand Down
18 changes: 18 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,21 @@ className="border-border bg-card text-foreground text-muted-foreground bg-muted
// Incorrect
className="border-[var(--border)] bg-[var(--card)] text-[var(--foreground)]"
```

## Branches and Pull Requests

When creating a branch or opening a PR, ask the user for:
1. The Linear issue ID (if available)
2. The GitHub issue number (if available)

Branch naming convention:
- General: `<username>/<branch_name>-<linear_issue_id>`
- Bug fixes: `<username>/fix-<linear_issue_id>`
- If no Linear issue ID is available, omit it from the branch name

PR description:
- If a GitHub issue number was provided, include `Fixes #<github_issue_number>` in the PR description

After the PR is created:
- Update CHANGELOG.md with an entry under `[Unreleased]` linking to the new PR
- If the change touches `packages/mcp`, update `packages/mcp/CHANGELOG.md` instead
7 changes: 6 additions & 1 deletion packages/backend/src/repoCompileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,12 @@ export const compileBitbucketConfig = async (
throw new Error(`No ${isServer ? 'self' : 'html'} link found for ${isServer ? 'server' : 'cloud'} repo ${repoName}`);
}

return link.href;
// @note: Bitbucket Server's self link includes `/browse` at the end.
// Strip it so that we can simply append either `/browse`, `/commits`, etc. to
// the base URL.
const href = isServer ? link.href.replace(/\/browse\/?$/, '') : link.href;

return href;
}

const repos = bitbucketRepos.map((repo) => {
Expand Down