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

    Function pickSnapshotFromVet

    • The prediction to keep for a vetted issue, or undefined when the user's own PR is already linked: scout then grades the issue as taken, which is a post-hoc verdict, not the prediction that picked it.

      Parameters

      • vet: VetOutput
      • source: string & {} | "vet" | "vet-list" | "list"
      • traits: PickTraits = {}

      Returns
          | 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;
              },
          >
          | undefined