Don't process comments from @roomote (#189)

This commit is contained in:
Chris Estreich 2025-07-02 12:14:43 -08:00 committed by GitHub
parent bee3046d1a
commit 31d1e1f650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ export async function handleIssueCommentEvent(body: string) {
return NextResponse.json({ message: 'action_ignored' });
}
if (!comment.body.includes('@roomote')) {
if (!comment.body.includes('@roomote') && comment.user.login !== 'roomote') {
return NextResponse.json({ message: 'no_roomote_mention' });
}

View file

@ -41,7 +41,7 @@ export async function handlePullRequestReviewCommentEvent(body: string) {
return NextResponse.json({ message: 'action_ignored' });
}
if (!comment.body.includes('@roomote')) {
if (!comment.body.includes('@roomote') && comment.user.login !== 'roomote') {
return NextResponse.json({ message: 'no_roomote_mention' });
}