/** * PR Comments Handler * * Fetches and displays PR review comments with triage information. * Supports filtering by status (pending, addressed, resolved). * * @see .dev/features/github-pr.md for full specification */ import type { IGithubClient } from '../../../domain/interfaces/dal/IGithubClient'; import type { IPullRequestRepository } from '../../../domain/interfaces/dal/IPullRequestRepository'; import type { CommentStatus } from '../../../domain/interfaces/types/IPullRequest'; /** * Comment with triage information. */ export interface ITriagedComment { readonly id: number; readonly file: string; readonly line?: number; readonly author: string; readonly body: string; readonly status: CommentStatus; readonly createdAt: string; readonly updatedAt: string; readonly htmlUrl: string; readonly isReply: boolean; readonly inReplyToId?: number; } /** * Result from PrCommentsHandler. */ export interface IPrCommentsResult { readonly repo: string; readonly prNumber: number; readonly title?: string; readonly comments: readonly ITriagedComment[]; readonly summary: { readonly total: number; readonly pending: number; readonly addressed: number; readonly resolved: number; }; readonly formattedOutput: string; } /** * Options for PrCommentsHandler. */ export interface IPrCommentsOptions { readonly repo?: string; readonly prNumber: number; readonly filter?: CommentStatus; readonly saveToNeo4j?: boolean; } /** * Handler for fetching PR comments. */ export declare class PrCommentsHandler { private readonly githubClient; private readonly prRepository; constructor(githubClient: IGithubClient, prRepository: IPullRequestRepository); /** * Get PR review comments with triage information. */ execute(options: IPrCommentsOptions): Promise; /** * Get existing comment statuses from Neo4j. */ private getExistingStatuses; /** * Triage a comment to determine its status. */ private triageComment; /** * Save comments to Neo4j via repository. */ private saveCommentsToNeo4j; /** * Format output for display. */ private formatOutput; } //# sourceMappingURL=PrCommentsHandler.d.ts.map