@oss-autopilot/core - v1.6.3
    Preparing search index...

    Function applyPerRepoCap

    • Apply per-repo cap to candidates (#105). Keeps at most maxPerRepo issues from any single repo. Maintains the existing sort order — first N from each repo are kept, excess issues from over-represented repos are dropped.

      Type Parameters

      • T extends { issue: { repo: string } }

      Parameters

      • candidates: T[]
      • maxPerRepo: number

      Returns T[]