Skip to content

feat(server): read Bitbucket Server pull request status - #3

Draft
Mizaro wants to merge 1 commit into
cursor/bitbucket-server-url-3150from
cursor/bitbucket-server-provider-3150
Draft

Mizaro wants to merge 1 commit into
cursor/bitbucket-server-url-3150from
cursor/bitbucket-server-provider-3150

Conversation

@Mizaro

@Mizaro Mizaro commented Sep 22, 2026

Copy link
Copy Markdown
Owner

What Changed

A linked Bitbucket Server pull request is read from the git remote's own origin at /rest/api/1.0/projects/{key}/repos/{slug}/pull-requests/{id}. Server clones are recognized from /scm/{project}/{repo}.git or SSH port 7999, including when the hostname contains bitbucket. List, get, and link sync use that API. Review reads return the same status with an empty diff and activity. Writes are refused so they are not sent to Bitbucket Cloud.

The existing T3CODE_BITBUCKET_ACCESS_TOKEN is sent as Bearer. When it is unset, T3CODE_BITBUCKET_EMAIL and T3CODE_BITBUCKET_API_TOKEN are sent as Basic. bitbucket.org still uses api.bitbucket.org.

Why

Recognizing the URL only stored the link. Status never arrived, because every Bitbucket read went to api.bitbucket.org.

UI Changes

No new controls. A linked Server review can show the status this read returns. Screenshots and a video were not captured: this session has no Browser panel, which test-t3 requires.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Grok 4.7, Cursor cloud agent.

Open in Web Open in Cursor 

A linked Server pull request never received host status, because every
Bitbucket read went to api.bitbucket.org. Server clones are now recognized
from their path, and list, get, and link sync read /rest/api/1.0 on the
git remote's own origin with the existing Bitbucket token.

Grok 4.7, Cursor cloud agent.

Co-authored-by: Gilad Leifman <Mizaro@users.noreply.github.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XL labels Sep 22, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for f971da5.

This comment will update automatically after the next completed run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants