Skip to content

Commit 5311cab

Browse files
authored
Fix another place where "Copilot" string isn't used (#6809)
1 parent f18884f commit 5311cab

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/github/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export function parseGraphQLComment(comment: GraphQL.ReviewComment, isResolved:
502502
commitId: comment.commit.oid,
503503
originalPosition: comment.originalPosition,
504504
originalCommitId: comment.originalCommit && comment.originalCommit.oid,
505-
user: comment.author ? { ...parseAccount(comment.author, githubRepository), specialDisplayName: specialAuthor ? (GraphQL.isAccount(comment.author) ? specialAuthor.name : undefined) : undefined } : undefined,
505+
user: comment.author ? parseAccount(comment.author, githubRepository) : undefined,
506506
createdAt: comment.createdAt,
507507
htmlUrl: comment.url,
508508
graphNodeId: comment.id,
@@ -583,7 +583,7 @@ export function parseAccount(
583583
if (author) {
584584
const avatarUrl = 'avatarUrl' in author ? author.avatarUrl : author.avatar_url;
585585
const id = 'node_id' in author ? author.node_id : author.id;
586-
// In some places, Copilot comes in as a user, and in others as a bot
586+
// In some places, Copilot comes in as a user, and in others as a bot
587587
return {
588588
login: author.login,
589589
url: author.url,

src/issues/userCompletionProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import * as path from 'path';
77
import * as vscode from 'vscode';
8-
import { SPECIAL_COMMENT_AUTHORS } from '../common/comment';
98
import Logger from '../common/logger';
109
import { IGNORE_USER_COMPLETION_TRIGGER, ISSUES_SETTINGS_NAMESPACE } from '../common/settingKeys';
1110
import { TimelineEvent } from '../common/timelineEvent';

0 commit comments

Comments
 (0)