Update pullRequestReviewCommentHandler.ts

This commit is contained in:
Chris Estreich 2025-07-02 13:44:56 -08:00 committed by GitHub
parent 917494e154
commit ab04bf6ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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