Pārlūkot izejas kodu

Fixes #1925 external remote branches missing PRs

main
Eric Amodio pirms 2 gadiem
vecāks
revīzija
045e6c6763
3 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      .vscode/queries.github-graphql-nb
  2. +1
    -0
      CHANGELOG.md
  3. +2
    -1
      src/git/models/branch.ts

+ 1
- 1
.vscode/queries.github-graphql-nb
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 0
CHANGELOG.md Parādīt failu

@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## Fixed
- Fixes [#1925](https://github.com/gitkraken/vscode-gitlens/issues/1925) - Branches from remotes outside the repo aren't showing associated pull requests (for connected remotes)
- Fixes [#1920](https://github.com/gitkraken/vscode-gitlens/issues/1920) - Can't view tags on torvalds/linux
- Fixes [#1923](https://github.com/gitkraken/vscode-gitlens/issues/1923) - View titles fail to update properly when number of "opened" repos changes

+ 2
- 1
src/git/models/branch.ts Parādīt failu

@ -164,7 +164,8 @@ export class GitBranch implements GitBranchReference {
const remote = await this.getRemote();
if (remote == null) return undefined;
return Container.instance.git.getPullRequestForBranch(this.getNameWithoutRemote(), remote, options);
const branch = this.getTrackingWithoutRemote() ?? this.getNameWithoutRemote();
return Container.instance.git.getPullRequestForBranch(branch, remote, options);
}
@memoize()

Notiek ielāde…
Atcelt
Saglabāt