/** * PR Checks Handler * * Fetches and displays CI check status for a PR. * Uses GithubClient to get real-time check status from GitHub. * * @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 { CheckStatus } from '../../../domain/interfaces/types/IPullRequest'; /** * Result from PrChecksHandler. */ export interface IPrChecksResult { readonly repo: string; readonly prNumber: number; readonly title?: string; readonly overallStatus: CheckStatus; readonly checks: readonly { readonly name: string; readonly status: CheckStatus; readonly conclusion?: string; readonly detailsUrl?: string; }[]; readonly summary: string; } /** * Options for PrChecksHandler. */ export interface IPrChecksOptions { readonly repo?: string; readonly prNumber: number; readonly saveToNeo4j?: boolean; } /** * Handler for fetching PR check status. */ export declare class PrChecksHandler { private readonly githubClient; private readonly prRepository; constructor(githubClient: IGithubClient, prRepository: IPullRequestRepository); /** * Get CI check status for a PR. */ execute(options: IPrChecksOptions): Promise; /** * Map GitHub check state to domain CheckStatus. */ private mapCheckStatus; /** * Calculate overall status from individual checks. */ private calculateOverallStatus; /** * Save checks to Neo4j via repository. */ private saveChecksToNeo4j; /** * Generate human-readable summary. */ private generateSummary; } //# sourceMappingURL=PrChecksHandler.d.ts.map