55
66import * as vscode from 'vscode' ;
77import { Repository } from '../../api/api' ;
8+ import { COPILOT_ACCOUNTS } from '../../common/comment' ;
89import { getCommentingRanges } from '../../common/commentingRanges' ;
910import { InMemFileChange , SlimFileChange } from '../../common/file' ;
1011import Logger from '../../common/logger' ;
@@ -302,7 +303,10 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
302303 const currentBranchIsForThisPR = this . pullRequestModel . equals ( this . _folderReposManager . activePullRequest ) ;
303304
304305 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+ }
306310 const login = author . specialDisplayName ?? author . login ;
307311
308312 const hasNotification = this . _notificationProvider . hasNotification ( this . pullRequestModel ) ;
@@ -318,7 +322,7 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
318322 labelPrefix += `#${ formattedPRNumber } : ` ;
319323 }
320324
321- const label = `${ labelPrefix } ${ isDraft ? '[DRAFT] ' : '' } ${ labelTitle } ` ;
325+ const label = `${ labelPrefix } ${ isDraft ? '| ' : '' } ${ labelTitle } ` ;
322326 const description = `by @${ login } ` ;
323327 const command = {
324328 title : vscode . l10n . t ( 'View Pull Request Description' ) ,
0 commit comments