Skip to content

Unable to select default branch (main) on upstream repo, when working off a fork #5470

@RasmusWL

Description

@RasmusWL

Steps to Reproduce:

  1. Work on a fork of a repo.

  2. Create a branch on top of a non-main branch on your own fork

    Details
    $ git log --oneline --graph
    * d93926291d - (HEAD -> example-pr) dummy (33 seconds ago) <Rasmus Wriedt Larsen>
    * 69453aa144 - (origin/clean-tests, clean-tests) Python: Fix missing newline in `.expected` (26 minutes ago) <Rasmus Wriedt Larsen>
    * 55f5b26ba6 - Python: Accept new ordering of query predicates in `.expected` (27 minutes ago) <Rasmus Wriedt Larsen>
    * 721bde1ce8 - Python: Delete orphaned `.expected` files (37 minutes ago) <Rasmus Wriedt Larsen>
    *   2e9d548083 - (upstream/main, upstream/HEAD, origin/main, main) Merge pull request #14706 from RasmusWL/class-attribute-flow (2 hours ago) <Rasmus Wriedt Larsen
    
  3. Use extension to start creating a PR.

    • it initially suggested to use the non-main branch as the target for this PR. Image
  4. Use the Change Repository... feature of the branch selector of the base branch, set it to upstream (github/codeql)

  5. Search for main on upstream

    • but get no results 😞
      Image

(I am able to select main on the origin remote, but that just files a PR against the main branch on my own fork 🙈)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions