diff --git a/apps/roomote/src/app/api/webhooks/github/handlers/pullRequestReviewCommentHandler.ts b/apps/roomote/src/app/api/webhooks/github/handlers/pullRequestReviewCommentHandler.ts index e6a63d3ebe..65517e7668 100644 --- a/apps/roomote/src/app/api/webhooks/github/handlers/pullRequestReviewCommentHandler.ts +++ b/apps/roomote/src/app/api/webhooks/github/handlers/pullRequestReviewCommentHandler.ts @@ -41,7 +41,7 @@ export async function handlePullRequestReviewCommentEvent(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' }); }