@oss-autopilot/core - v3.42.2
    Preparing search index...

    Function persistPickSnapshots

    • Persist predictions without ever failing the vet that produced them. vet used to be read-only, so a state save here can race another writer; that and a failed Gist push (#1629) come back as envelope fields instead.

      Parameters

      • stateManager: StateManager
      • snapshots: KnownKeys<
            {
                capturedAt?: string;
                commentCount?: number;
                competingPRs?: number;
                firstInRepo?: boolean;
                grade: number;
                issueAuthorAssociation?: | string & {}
                | "OWNER"
                | "MEMBER"
                | "COLLABORATOR"
                | "CONTRIBUTOR"
                | "FIRST_TIMER"
                | "FIRST_TIME_CONTRIBUTOR"
                | "MANNEQUIN"
                | "NONE";
                issueAuthorIsBot?: boolean;
                issueUrl: string;
                labels?: string[];
                mentioningPRs?: number;
                recommendation: string;
                source: string & {}
                | "vet"
                | "vet-list"
                | "list";
                stargazersCount?: number;
                [key: string]: unknown;
            },
        >[]

      Returns Promise<{ gistSyncWarning?: string; pickRecordError?: string }>