Skip to main content

run_ingest

Function run_ingest 

Source
pub async fn run_ingest(
    runtime: &KhiveRuntime,
    token: &NamespaceToken,
    registry: &VerbRegistry,
    opts: IngestOptions,
) -> Result<IngestReport>
Expand description

Run one ingest pass: issues + PRs first (via gh, when available), then commits (via local git log). PRs are ingested before commits so a commit’s annotates list can reference an already-created merging-PR note (the generic create verb validates annotates targets exist before it writes — see khive-runtime::operations::create_note_inner).

Delegates to run_ingest_with_commit_recovery with a recovery callback that never repairs anything — the CLI and any local-path caller has no disposable remote cache to repair (issue #765 self-heal is remote-URL mode only, ADR-088 Amendment 1), so a classified commit-snapshot failure here surfaces as an ordinary error, exactly as before this pass gained recovery support.