@@ -7,7 +7,7 @@ import * as vscode from 'vscode';
77import { openPullRequestOnGitHub } from '../commands' ;
88import { FolderRepositoryManager } from './folderRepositoryManager' ;
99import { GithubItemStateEnum , IAccount , isITeam , ITeam , PullRequestMergeability , reviewerId , ReviewEventEnum , ReviewState } from './interface' ;
10- import { PullRequestModel } from './pullRequestModel' ;
10+ import { isCopilotOnMyBehalf , PullRequestModel } from './pullRequestModel' ;
1111import { getDefaultMergeMethod } from './pullRequestOverview' ;
1212import { PullRequestView } from './pullRequestOverviewCommon' ;
1313import { isInCodespaces , parseReviewers } from './utils' ;
@@ -212,7 +212,7 @@ export class PullRequestViewProvider extends WebviewViewBase implements vscode.W
212212 this . registerPrSpecificListeners ( pullRequestModel ) ;
213213 }
214214 this . _item = pullRequestModel ;
215- const [ pullRequest , repositoryAccess , timelineEvents , requestedReviewers , branchInfo , defaultBranch , currentUser , viewerCanEdit , hasReviewDraft ] = await Promise . all ( [
215+ const [ pullRequest , repositoryAccess , timelineEvents , requestedReviewers , branchInfo , defaultBranch , currentUser , viewerCanEdit , hasReviewDraft , coAuthors ] = await Promise . all ( [
216216 this . _folderRepositoryManager . resolvePullRequest (
217217 pullRequestModel . remote . owner ,
218218 pullRequestModel . remote . repositoryName ,
@@ -226,6 +226,7 @@ export class PullRequestViewProvider extends WebviewViewBase implements vscode.W
226226 this . _folderRepositoryManager . getCurrentUser ( pullRequestModel . githubRepository ) ,
227227 pullRequestModel . canEdit ( ) ,
228228 pullRequestModel . validateDraftMode ( ) ,
229+ pullRequestModel . getCoAuthors ( ) ,
229230 ensureEmojis ( this . _folderRepositoryManager . context )
230231 ] ) ;
231232
@@ -308,7 +309,8 @@ export class PullRequestViewProvider extends WebviewViewBase implements vscode.W
308309 isDarkTheme : vscode . window . activeColorTheme . kind === vscode . ColorThemeKind . Dark ,
309310 isEnterprise : pullRequest . githubRepository . remote . isEnterprise ,
310311 hasReviewDraft,
311- currentUserReviewState : reviewState
312+ currentUserReviewState : reviewState ,
313+ isCopilotOnMyBehalf : await isCopilotOnMyBehalf ( pullRequest , currentUser , coAuthors )
312314 } ;
313315
314316 this . _postMessage ( {
0 commit comments