vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

New pull requests on branches off master try to merge into a wrong branch

Open janakjjp opened this issue 4 years ago • 2 comments

  • Extension version: v0.36.0
  • VSCode Version: 1.64.1 (Universal)
  • OS: macOS Monterey (12.2)

Steps to Reproduce:

  1. Stage, commit and push a branch off master onto a GitHub Enterprise instance;
  2. Issue the Pull Request command, and observe the fields in the Create Pull Request dialog in VS Code.

Expected behavior:

  • "INTO" shows the repo in question and the "master" branch. (The repo is large, with hundreds of branches, or more. With a smaller repo, I do see this expected behavior.)

Actual behavior:

  • "INTO" selects the very first branch available.
  • Expanding the drop-down and scrolling ends at "j", so I can't choose "master."
  • This means I can't properly create the PR for my commits.

Let me know if I can provide additional debugging information. Thank you!

janakjjp avatar Feb 08 '22 23:02 janakjjp

We limit the number of branches that show because fetching all of them can be unusably slow, but we should make sure to always include "master" and "main".

alexr00 avatar Feb 10 '22 15:02 alexr00

/verified

Always show 'main' for me no matter how many branches image

rchiodo avatar Feb 25 '22 19:02 rchiodo