From 917494e154ec558acd89ddf66b7cb506d855305a Mon Sep 17 00:00:00 2001 From: Chris Estreich Date: Wed, 2 Jul 2025 13:44:06 -0800 Subject: [PATCH] Update issueCommentHandler.ts --- .../src/app/api/webhooks/github/handlers/issueCommentHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/roomote/src/app/api/webhooks/github/handlers/issueCommentHandler.ts b/apps/roomote/src/app/api/webhooks/github/handlers/issueCommentHandler.ts index cb9a33da17..c65a0b943d 100644 --- a/apps/roomote/src/app/api/webhooks/github/handlers/issueCommentHandler.ts +++ b/apps/roomote/src/app/api/webhooks/github/handlers/issueCommentHandler.ts @@ -40,7 +40,7 @@ export async function handleIssueCommentEvent(body: string) { return NextResponse.json({ message: 'action_ignored' }); } - if (!comment.body.includes('@roomote') && comment.user.login !== 'roomote') { + if (!comment.body.includes('@roomote') || comment.user.login === 'roomote') { return NextResponse.json({ message: 'no_roomote_mention' }); }