(options: { report: { version: 18; workspace: string; registry: string; fetched: boolean; sessions: { kind: "available"; unscoped: { pid: number; cwd: string; worktree: string | null; process_cwd: string | null; source: "session_file" | "roster_worker"; }[]; } | { ...; }; entries: { ...; }[]; unregistered: ({ ...; } | ... 4 more ... | { ...; })[] | null; }; keys: readonly string[]; allow_dirty?: boolean | undefined; now?: number | undefined; } & RepoReadinessFormatOptions): Result<...> import {check_gen_readiness} from '@fuzdev/fuz_repos/repo_readiness.js'; Checks a repos status --json report on the repos gitops_sync generates
the site data from (repo_readiness_for_gen).
options
{ report: { version: 18; workspace: string; registry: string; fetched: boolean; sessions: { kind: "available"; unscoped: { pid: number; cwd: string; worktree: string | null; process_cwd: string | null; source: "session_file" | "roster_worker"; }[]; } | { ...; }; entries: { ...; }[]; unregistered: ({ ...; } | ... 4 m... & RepoReadinessFormatOptionsreturns
Result
warnings, a line per problem that doesn't refuse; and on failure also a message naming each refused repo, what's wrong, and the fix, and its lines