Skip to content

Can not open the associated pull request for commits #3875

@turo-mwong

Description

@turo-mwong

Description

I used to be able to do this. At some point this year it stopped working.

When I try to run the Gitlens command "Open Associated Pull Request"

Image





It does not find the associated pull-request.

Image





I can verify that this commit has an associated pull-request but going to "Open Commit On Github" (from the hover menu) then seeing the associated pull-request

Image




  • Clearly i'm authenticated to the repository and the tool has access to the commit history
  • I've switched release version of the tool which didn't make a difference
  • I verified that the show pull-request if any option is enabled within the tool's config
  • I verified that the show pull-request if any option is enabled within the hover settings of the tool's config

Reproducing

One of probably multiple cases

  • Integration is connected.
  • PR on the original repo and the commit is on fork.
  • GitHubApi.getPullRequestForCommit() cannot find a PR for the required commit. GraphQL returns undefined in rsp.repository.object

GitLens Version

16.0.5

VS Code Version

Version: 1.96.0
Node.js: 20.18.1

Git Version

git version 2.39.5

Logs, Screenshots, Screen Captures, etc

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    inactiveIssue has not had recent required feedbackneeds-more-infoNeeds further information, steps, details, etc.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions