Преглед на файлове

Updates focus view from review comments

main
Keith Daulton преди 1 година
committed by Keith Daulton
родител
ревизия
06dd322de9
променени са 2 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. +1
    -1
      src/git/models/pullRequest.ts
  2. +0
    -3
      src/plus/webviews/focus/focusWebview.ts

+ 1
- 1
src/git/models/pullRequest.ts Целия файл

@ -62,7 +62,7 @@ export interface PullRequestShape extends IssueOrPullRequest {
readonly comments?: number; readonly comments?: number;
readonly mergeableState?: PullRequestMergeableState; readonly mergeableState?: PullRequestMergeableState;
readonly reviewDecision?: PullRequestReviewDecision; readonly reviewDecision?: PullRequestReviewDecision;
readonly reviewRequests?: { isCodeOwner: boolean; reviewer: PullRequestMember }[];
readonly reviewRequests?: PullRequestReviewer[];
readonly assignees?: PullRequestMember[]; readonly assignees?: PullRequestMember[];
} }

+ 0
- 3
src/plus/webviews/focus/focusWebview.ts Целия файл

@ -239,13 +239,11 @@ export class FocusWebview extends WebviewBase {
} }
return (scoreB ?? 0) - (scoreA ?? 0); return (scoreB ?? 0) - (scoreA ?? 0);
}); });
// }
return this._pullRequests; return this._pullRequests;
} }
private async getMyIssues(richRepos: RepoWithRichRemote[]): Promise<SearchedIssue[]> { private async getMyIssues(richRepos: RepoWithRichRemote[]): Promise<SearchedIssue[]> {
// if (this._issues.length === 0) {
const allIssues = []; const allIssues = [];
for (const { remote } of richRepos) { for (const { remote } of richRepos) {
const issues = await this.container.git.getMyIssues(remote); const issues = await this.container.git.getMyIssues(remote);
@ -256,7 +254,6 @@ export class FocusWebview extends WebviewBase {
} }
this._issues = allIssues.sort((a, b) => b.issue.updatedDate.getTime() - a.issue.updatedDate.getTime()); this._issues = allIssues.sort((a, b) => b.issue.updatedDate.getTime() - a.issue.updatedDate.getTime());
// }
return this._issues; return this._issues;
} }

Зареждане…
Отказ
Запис