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

    Function isLinkedPRStalled

    • Determine whether an autopilot-shaped LinkedPR is stalled.

      True when:

      • the PR is open, AND
      • updatedAt is set, AND
      • the elapsed time since updatedAt is at least thresholdDays.

      Returns false for closed/merged PRs, missing updatedAt, or invalid timestamps. Reimplemented locally rather than delegating to scout's helper so this module owns autopilot's LinkedPR shape contract end to end (avoids a runtime import dependency on scout's internal type).

      Parameters

      • linkedPR: LinkedPR | null | undefined
      • now: Date = ...
      • thresholdDays: number = STALLED_PR_THRESHOLD_DAYS

      Returns boolean