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' }); }