Skip to content

Comments don't show when PR is on non-default repo #8050

@travisdowns

Description

@travisdowns

When I make a PR to a repo that is also the default repo (the repo the "from" repo in the PR was forked from), I can see the comments in the associated PR "inline" in the editors (and also in the comments window) when that branch is checked out. Great!

However, this does not work when I'm submitting a PR to a repo that is not the default in the sense above. To be specific, we have repo "A" which is the the orginal repo for some project. There is a GH fork of this repo, repo "B" (under an organization), and then my own fork of "B", call it "C" under my user. Specifically "A" is this, "B" is this and "C" is this.

My workload is that I have all three configured as remotes, and I always push my feature branches to "C" and from there I open pull requests against "A" or "B" but most often "A". When I open them against "B", comments for the PRs show fine, but against "A" they do not. I can still see the PRs in the "Created by me" list in the GH PR extension sidebar, but not by default (I have to click "continue fetching from other remotes" once). I can see the contents of the PR in that view, open diffs, etc, but the comments do not show inline in the editable view of the same files even when the PR branch is checked out locally.

If I right click "Checkout pull request" from the GH PR menu, then the comments do appear inline, but now I'm not on my local branch any more but a pr/* style branch like pr/travisdowns/3068.

  • Extension version: 0.120.1
  • VSCode Version: 1.105.1
  • OS: Ubuntu 22.04 and 24.04
  • Repository Clone Configuration (single repository/fork of an upstream repository):
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): github.com

Steps to Reproduce:

  1. As above

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions