5
5
6
6
import * as vscode from 'vscode' ;
7
7
import { Repository } from '../../api/api' ;
8
+ import { COPILOT_ACCOUNTS } from '../../common/comment' ;
8
9
import { getCommentingRanges } from '../../common/commentingRanges' ;
9
10
import { InMemFileChange , SlimFileChange } from '../../common/file' ;
10
11
import Logger from '../../common/logger' ;
@@ -302,7 +303,10 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
302
303
const currentBranchIsForThisPR = this . pullRequestModel . equals ( this . _folderReposManager . activePullRequest ) ;
303
304
304
305
const { title, number, author, isDraft, html_url } = this . pullRequestModel ;
305
- const labelTitle = this . pullRequestModel . title . length > 50 ? `${ this . pullRequestModel . title . substring ( 0 , 50 ) } ...` : this . pullRequestModel . title ;
306
+ let labelTitle = this . pullRequestModel . title . length > 50 ? `${ this . pullRequestModel . title . substring ( 0 , 50 ) } ...` : this . pullRequestModel . title ;
307
+ if ( COPILOT_ACCOUNTS [ this . pullRequestModel . author . login ] ) {
308
+ labelTitle = labelTitle . replace ( '[WIP]' , '' ) ;
309
+ }
306
310
const login = author . specialDisplayName ?? author . login ;
307
311
308
312
const hasNotification = this . _notificationProvider . hasNotification ( this . pullRequestModel ) ;
@@ -318,7 +322,7 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
318
322
labelPrefix += `#${ formattedPRNumber } : ` ;
319
323
}
320
324
321
- const label = `${ labelPrefix } ${ isDraft ? '[DRAFT] ' : '' } ${ labelTitle } ` ;
325
+ const label = `${ labelPrefix } ${ isDraft ? '| ' : '' } ${ labelTitle } ` ;
322
326
const description = `by @${ login } ` ;
323
327
const command = {
324
328
title : vscode . l10n . t ( 'View Pull Request Description' ) ,
0 commit comments