Skip to content

Extension fails to detect PR branch when using gh co <PR> #6378

@xmatthias

Description

@xmatthias
  • Extension version:v0.99.2024101604 (pre-release)
  • VSCode Version: Version: 1.94.2
  • OS: linux
  • Repository Clone Configuration (single repository/fork of an upstream repository):
  • Github Product (Github.com/Github Enterprise version x.x.x): github.com

the Github Pull Requests extension fails to properly detect pull request branches created by gh co <prnr>.
This breaks flow - as i like the github cli to interact with the repo - but need the extension for the review (where it's great).

I know i could check out via extension, but i very often forget this - so i need to go back to the main branch, checkout the PR branch via extension - just to have the extension realize that this is a pull request branch.

Steps to Reproduce:

  1. have any repository with an open pull request
  2. be logged into the github cli
  3. open terminal
  4. run gh pr list to get a Pull request number
  5. run gh co <prnr> (your repository will now have a different branch checked out)
  6. refresh "github pull requests" view (i also tried refreshing the SCM view to no avail)
  7. Notice it's not recognizing the pull request

In my memory (might be wrong?) this used to work a few months ago - but then stopped working. (i'm opening this issue only now as i hoped that someone else would report this so i don't have to 😆 )

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions