mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 12:43:16 +00:00
fix: Filter comments from open swe (#443)
* fix: Filter comments from open swe * cr
This commit is contained in:
parent
f5a096cc3a
commit
844e655e7f
1 changed files with 12 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue