feat: exclude hidden (minimized) comments from GitHub Issues and PRs (#368)

* feat: ignore minimized comments

* fix tests
This commit is contained in:
atsushi-ishibashi
2025-07-30 23:18:34 +09:00
committed by GitHub
parent 5bdc533a52
commit fd012347a2
5 changed files with 221 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ export async function fetchGitHubData({
// Prepare all comments for image processing
const issueComments: CommentWithImages[] = comments
.filter((c) => c.body)
.filter((c) => c.body && !c.isMinimized)
.map((c) => ({
type: "issue_comment" as const,
id: c.databaseId,
@@ -154,7 +154,7 @@ export async function fetchGitHubData({
const reviewComments: CommentWithImages[] =
reviewData?.nodes
?.flatMap((r) => r.comments?.nodes ?? [])
.filter((c) => c.body)
.filter((c) => c.body && !c.isMinimized)
.map((c) => ({
type: "review_comment" as const,
id: c.databaseId,