import type { CIProvider, PullRequest, CheckStatus, FailureLogs, ValidationResultContents } from '../ci-provider.js'; /** * GitHub Actions CI provider implementation * * Uses GitHub CLI (gh) to interact with GitHub API. * Requires: * - gh CLI installed and authenticated * - Git repository with github.com remote */ export declare class GitHubActionsProvider implements CIProvider { readonly name = "github-actions"; isAvailable(): Promise; detectPullRequest(): Promise; fetchCheckStatus(prId: number | string): Promise; fetchFailureLogs(jobId: string): Promise; extractValidationResult(logs: string): ValidationResultContents | null; /** * Create a function to extract content from GitHub Actions log lines * Format: "Run name\tStep name\tTimestamp " */ private createContentExtractor; /** * Find the start and end indices of validation result YAML in logs */ private findValidationResultBoundaries; /** * Check if lines starting at startIdx look like validation result YAML */ private looksLikeValidationResult; /** * Find the end of YAML content (next --- separator or end of document) */ private findYamlEnd; /** * Extract YAML content between boundaries */ private extractYamlContent; /** * Parse YAML validation result from log content */ private parseAndEnrichValidationResult; /** * Transform GitHub check format to common CheckResult format */ private transformCheck; /** * Determine overall status from individual checks */ private determineOverallStatus; /** * Determine overall result from individual checks */ private determineOverallResult; /** * Extract failed step name from GitHub Actions logs */ private extractFailedStep; /** * Extract concise error summary from logs (LLM-friendly format) * * Returns just the failed step name and command - keeps output minimal. * Full details are in the validationResult field. */ private extractErrorSummary; } //# sourceMappingURL=github-actions.d.ts.map