Skip to content

fix(shared): recognize Bitbucket Server pull request URLs - #2

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

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

Conversation

@Mizaro

@Mizaro Mizaro commented Sep 22, 2026

Copy link
Copy Markdown
Owner

What Changed

The link dialog accepts a Bitbucket Server pull request URL, /projects/{key}/repos/{slug}/pull-requests/{id}, on any host. The stored repository is scm/{project}/{repo}, the same path an HTTPS clone already records. An SSH clone on port 7999 uses that same key, so pasting the browser URL matches the checked-out sub-repo. Server links generate Server browser URLs. bitbucket.org stays Bitbucket Cloud.

Why

Pasting https://git.example.com/projects/PROJ/repos/t3code/pull-requests/8623 failed with "Use a pull request URL, 123, or pingdotgg#123." The parser only accepted Bitbucket Cloud paths, and only when the hostname contained bitbucket. A sub-repo checkout whose remote is https://host/scm/PROJ/repo.git never matched that URL.

UI Changes

The link dialog now treats that Server URL as a pull request when the sub-repo is a project in the environment. Screenshots and a video were not captured: this session has no Browser panel (preview_status / preview_open), which test-t3 requires, and the skill forbids switching to another automation system.

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 

The link dialog rejected Server URLs such as
/projects/{key}/repos/{slug}/pull-requests/{id} when the host name did
not contain "bitbucket". That path is now trusted on any host, and the
stored repository is the checkout path scm/{project}/{repo} that an
HTTPS remote already records. SSH clones on port 7999 use the same key,
so pasting the browser URL matches the checked-out sub-repo. Server
links also generate Server browser URLs instead of Cloud ones.

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:L 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 d04b8a7.

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:L 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