atlassian / atlassian/atlascode

[Bitbucket]: Create new PR with remote doesn't list remote branches

Open
#156 3 comments 0 reactions 0 assignees View on GitHub
bitbucket
Dominant language
TypeScript
Stars
129
Forks
82
Avg merge
3h 3m
Merged PRs (30d)
6

Description

**Describe the bug**
Create a PR with upstream remote, the dropdown list of source branches is not populated correctly.

**To Reproduce**
1. Add an upstream remote to your repo
2. Create a new PR with the extension
3. The dropdown should show your `origin` and `upstream` and the list of branches for the default list selection, in this case, `origin`
4. Change the `Remote` to `upstream` and the `Source Branch` dropdown does not update with the correct branch list
5. No debug output is available.

**Expected behavior**
I want to see the list of branches available on the remote

**Screenshots**
### origin

![Image](https://github.com/user-attachments/assets/14205054-00b2-460f-a342-b0e7bfd773c0)

### remote

![Image](https://github.com/user-attachments/assets/fc52b905-ab6f-4604-a76a-37e0f50c5111)

![Image](https://github.com/user-attachments/assets/a6a92603-f0b4-4ae9-908e-cc96a26d5bf4)

**Environment and Version (please complete the following information):**
- Atlassian Plugin Version (3.4.9)
- Visual Studio Code Version (x.x.x)
- Is this a local or cloud environment? (Cloud | Local)
- If Cloud, Browser (chrome, safari)
- If Local, OS (macOS, windows, linux)

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue through the extension's Create a new PR flow with origin and upstream remotes, then compare the Source Branch dropdown after changing Remote. Done means the dropdown lists the branches available on the selected remote and behaves consistently for origin and upstream.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.