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

Add refresh button to "Create" view (Newly published branch doesn't show up in merge changes from)

Open kriswuollett opened this issue 3 years ago • 3 comments

Issue Type: Bug

Summary:

Seems like the GitHub plugin isn't notified that a new branch was published. It only shows up if I reload the window. There is no manual refresh button on the GitHub pull request screen either.

Steps to Reproduce:

  • Create a new repo
  • Publish an initial commit
  • Create new branch off of main
  • Add another commit
  • Push/publish new branch on remote
  • Go to GitHub Pull Request screen

Expected:

The new branch shows up in "MERGE CHANGES FROM".

Actual:

Only the "main" branch shows up in "MERGE CHANGES FROM".

Workaround:

Run "Developer: Reload Window"

Extension version: 0.46.0 VS Code version: Code 1.68.1 (Universal) (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:52:13.188Z) OS version: Darwin x64 21.5.0 Restricted Mode: No Remote OS version: Linux x64 5.13.0-1033-gcp

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30519255
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550

kriswuollett avatar Jul 07 '22 17:07 kriswuollett

CleanShot 2022-07-07 at 12 23 32@2x

kriswuollett avatar Jul 07 '22 17:07 kriswuollett

I used the dropdown menu from the "SOURCE CONTROL" view to invoke "Push" which asked me if I want to publish on remote. Is there no mechanism that the GitHub plugin uses to know that new branches are known locally / on remote?

kriswuollett avatar Jul 07 '22 17:07 kriswuollett

@kriswuollett It seems that there is some stale state shown. The dropdown that you have selected should show your current branch (and in fact we listen for branch changes so that we can update it).

Unfortunately, I can't reproduce the bug as you see it. I have noticed that sometimes the git API we use doesn't notify about branch changes in a timely manner. I will take this as a feature request to add a refresh button to the "Create Pull Request" view.

alexr00 avatar Jul 08 '22 15:07 alexr00

duplicate of https://github.com/microsoft/vscode-pull-request-github/issues/3588

alexr00 avatar Dec 09 '22 13:12 alexr00