From 06dd322de950437eee485128c8d6473565f82e9c Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Wed, 22 Feb 2023 19:29:20 -0500 Subject: [PATCH] Updates focus view from review comments --- src/git/models/pullRequest.ts | 2 +- src/plus/webviews/focus/focusWebview.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/git/models/pullRequest.ts b/src/git/models/pullRequest.ts index 5d8b167..25c6221 100644 --- a/src/git/models/pullRequest.ts +++ b/src/git/models/pullRequest.ts @@ -62,7 +62,7 @@ export interface PullRequestShape extends IssueOrPullRequest { readonly comments?: number; readonly mergeableState?: PullRequestMergeableState; readonly reviewDecision?: PullRequestReviewDecision; - readonly reviewRequests?: { isCodeOwner: boolean; reviewer: PullRequestMember }[]; + readonly reviewRequests?: PullRequestReviewer[]; readonly assignees?: PullRequestMember[]; } diff --git a/src/plus/webviews/focus/focusWebview.ts b/src/plus/webviews/focus/focusWebview.ts index db3ed9e..6f4986b 100644 --- a/src/plus/webviews/focus/focusWebview.ts +++ b/src/plus/webviews/focus/focusWebview.ts @@ -239,13 +239,11 @@ export class FocusWebview extends WebviewBase { } return (scoreB ?? 0) - (scoreA ?? 0); }); - // } return this._pullRequests; } private async getMyIssues(richRepos: RepoWithRichRemote[]): Promise { - // if (this._issues.length === 0) { const allIssues = []; for (const { remote } of richRepos) { 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()); - // } return this._issues; }