Skip to content

gitindex: support Bitbucket Cloud and Azure DevOps URL templates#1055

Merged
keegancsmith merged 1 commit into
mainfrom
k/code-hosts
May 7, 2026
Merged

gitindex: support Bitbucket Cloud and Azure DevOps URL templates#1055
keegancsmith merged 1 commit into
mainfrom
k/code-hosts

Conversation

@keegancsmith
Copy link
Copy Markdown
Member

@keegancsmith keegancsmith commented May 6, 2026

This adds gitindex URL templates for Bitbucket Cloud and Azure DevOps so indexed repositories from those hosts can link search results back to their native commit and file views.

Bitbucket Cloud and Azure DevOps repositories need host-specific URL templates so indexed search results can link back to commits and file locations in their native web UIs. The Azure file template uses the commit-version prefix because Zoekt stores commit SHAs for branch versions, avoiding a branch-only URL form.

Test Plan: go test ./gitindex -run TestSetTemplates

Amp-Thread-ID: https://ampcode.com/threads/T-019dfc16-15c7-7058-bbfe-90582e3badf6
Co-authored-by: Amp <amp@ampcode.com>
@keegancsmith keegancsmith changed the title Support Bitbucket Cloud and Azure DevOps URL templates gitindex: support Bitbucket Cloud and Azure DevOps URL templates May 6, 2026
@keegancsmith keegancsmith marked this pull request as ready for review May 6, 2026 07:26
@keegancsmith keegancsmith merged commit 2a1cee1 into main May 7, 2026
12 checks passed
@keegancsmith keegancsmith deleted the k/code-hosts branch May 7, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants