/** * GitHub Actions failure adapter. * * GET /repos/{owner}/{repo}/actions/runs?status=failure&per_page=100 * * Maps each failed workflow run to an `Incident`. Useful for repos that don't * have a paid observability stack but DO have CI: a failed deploy or test run * IS an incident. * * • title: workflow name + run number + head commit subject * • occurredAt: run.run_started_at * • severity: "error" (always — these are red CI runs) * • affectedFiles: pulled from the run's commit if available * • url: run.html_url */ import type { Incident, correlate as CorrelateNS } from "@mneme-ai/core"; export interface GitHubActionsAdapterOptions { owner: string; repo: string; /** Token with `actions:read` and `contents:read`. Use a fine-grained PAT or installation token. */ token: string; baseUrl?: string; /** Cap on runs fetched. Default 1000. */ maxRuns?: number; /** Per-request timeout (ms). */ timeoutMs?: number; /** Filter to a single workflow file (e.g. "deploy.yml"). */ workflow?: string; } export declare class GitHubActionsAdapter implements CorrelateNS.IncidentAdapter { readonly source: "github"; private readonly base; private readonly token; private readonly owner; private readonly repo; private readonly maxRuns; private readonly timeoutMs; private readonly workflow?; constructor(opts: GitHubActionsAdapterOptions); fetch(opts: CorrelateNS.FetchIncidentOptions): Promise; private request; private mapRun; } //# sourceMappingURL=github-actions.d.ts.map