From df13253d487e7dc65e77cd397bd93e6df22f4914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Tue, 17 Feb 2026 21:11:19 +0000 Subject: [PATCH] Fixed approved comments lookup for users with capital letter in GitHub login (#330) * Fixed approved commens lookup for users with capital letter in GitHub login * handle other place too --- entry | 3 ++- mcp/reviewComments.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entry b/entry index 28b5bef..7eb6541 100755 --- a/entry +++ b/entry @@ -143786,7 +143786,8 @@ function hasThumbsUpFrom(comment, username) { if (!comment.reactionGroups) return false; const thumbsUp = comment.reactionGroups.find((g) => g.content === "THUMBS_UP"); if (!thumbsUp?.reactors?.nodes) return false; - return thumbsUp.reactors.nodes.some((r) => r?.login === username); + const usernameNeedle = username.toLowerCase(); + return thumbsUp.reactors.nodes.some((r) => r?.login?.toLowerCase() === usernameNeedle); } function threadHasThumbsUpFrom(thread, username) { const comments = thread.comments?.nodes ?? []; diff --git a/mcp/reviewComments.ts b/mcp/reviewComments.ts index b07f140..25debe5 100644 --- a/mcp/reviewComments.ts +++ b/mcp/reviewComments.ts @@ -290,7 +290,8 @@ function hasThumbsUpFrom(comment: ReviewThreadComment, username: string): boolea if (!comment.reactionGroups) return false; const thumbsUp = comment.reactionGroups.find((g) => g.content === "THUMBS_UP"); if (!thumbsUp?.reactors?.nodes) return false; - return thumbsUp.reactors.nodes.some((r) => r?.login === username); + const usernameNeedle = username.toLowerCase(); + return thumbsUp.reactors.nodes.some((r) => r?.login?.toLowerCase() === usernameNeedle); } function threadHasThumbsUpFrom(thread: ReviewThread, username: string): boolean {