Skip to content

Commit

Permalink
chore: add another bot comment filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jul 23, 2024
1 parent 8b682c8 commit 230abe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/types/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export type LinkedIssues = {
repo: string;
owner: string;
url: string;
comments?: IssueComments | ReviewComments;
comments?: IssueComments | ReviewComments | null | undefined;
body?: string;
};
4 changes: 2 additions & 2 deletions src/utils/issue-fetching.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createKey, getAllStreamlinedComments } from "../handlers/comments";
import { Context } from "../types";
import { FetchParams, Issue, LinkedIssues } from "../types/github";
import { FetchParams, Issue, IssueComments, LinkedIssues, ReviewComments } from "../types/github";
import { StreamlinedComment } from "../types/gpt";
import { dedupeStreamlinedComments, idIssueFromComment, mergeStreamlinedComments, splitKey } from "./issue";
import { handleIssue, handleSpec, handleSpecAndBodyKeys } from "./issue-handling";
Expand Down Expand Up @@ -76,7 +76,7 @@ export async function fetchIssueComments(params: FetchParams) {

return {
issue,
comments,
comments: comments.filter((comment) => comment.user?.type !== "Bot") as IssueComments | ReviewComments,
};
}

Expand Down

0 comments on commit 230abe0

Please sign in to comment.