浏览代码

Fixes #1925 external remote branches missing PRs

main
Eric Amodio 2 年前
父节点
当前提交
045e6c6763
共有 3 个文件被更改,包括 4 次插入2 次删除
  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
文件差异内容过多而无法显示
查看文件


+ 1
- 0
CHANGELOG.md 查看文件

@ -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 查看文件

@ -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()

正在加载...
取消
保存