@@ -41,7 +41,7 @@ import { ConflictModel } from './conflictGuide';
4141import { ConflictResolutionCoordinator } from './conflictResolutionCoordinator' ;
4242import { Conflict , ConflictResolutionModel } from './conflictResolutionModel' ;
4343import { CredentialStore } from './credentials' ;
44- import { GitHubRepository , GraphQLError , GraphQLErrorType , IMetadata , ItemsData , PULL_REQUEST_PAGE_SIZE , PullRequestData , TeamReviewerRefreshKind , ViewerPermission } from './githubRepository' ;
44+ import { CopilotWorkingStatus , GitHubRepository , GraphQLError , GraphQLErrorType , IMetadata , ItemsData , PULL_REQUEST_PAGE_SIZE , PullRequestData , TeamReviewerRefreshKind , ViewerPermission } from './githubRepository' ;
4545import { MergeMethod as GraphQLMergeMethod , MergePullRequestInput , MergePullRequestResponse , PullRequestResponse , PullRequestState , UserResponse } from './graphql' ;
4646import { IAccount , ILabel , IMilestone , IProject , IPullRequestsPagingOptions , Issue , ITeam , MergeMethod , PRType , PullRequestMergeability , RepoAccessAndMergeMethods , User } from './interface' ;
4747import { IssueModel } from './issueModel' ;
@@ -2539,6 +2539,12 @@ export class FolderRepositoryManager extends Disposable {
25392539
25402540 private async promptPullBrach ( pr : PullRequestModel , branch : Branch , autoStashSetting ?: boolean ) {
25412541 if ( ! this . _updateMessageShown || autoStashSetting ) {
2542+ // When the PR is from Copilot, we only want to show the notification when Copilot is done working
2543+ const copilotStatus = await pr . githubRepository . copilotWorkingStatus ( pr ) ;
2544+ if ( copilotStatus === CopilotWorkingStatus . InProgress ) {
2545+ return ;
2546+ }
2547+
25422548 this . _updateMessageShown = true ;
25432549 const pull = vscode . l10n . t ( 'Pull' ) ;
25442550 const always = vscode . l10n . t ( 'Always Pull' ) ;
0 commit comments