fix: Filter comments from open swe (#443)

* fix: Filter comments from open swe

* cr
This commit is contained in:
Brace Sproul 2025-07-17 13:58:47 -07:00 • committed by GitHub
parent f5a096cc3a
commit 844e655e7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,8 +92,18 @@ export async function getMissingMessages(
},
});
}
const untrackedCommentMessages = comments?.length
? getUntrackedComments(input.messages, input.githubIssueId, comments)
// Filter comments from the open swe bot
const filteredComments = comments?.filter(
(c) => c.user?.login !== "open-swe",
);
const untrackedCommentMessages = filteredComments?.length
? getUntrackedComments(
input.messages,
input.githubIssueId,
filteredComments,
)
: [];
return [...(issueMessage ? [issueMessage] : []), ...untrackedCommentMessages];