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

    Function applyStatusOverrides

    • Apply status overrides from state to the PR list. Overrides are auto-cleared if the PR has new activity since the override was set.

      When an override changes the status, the contradictory reason field is cleared and an appropriate default is set so downstream logic (assessCapacity, collectActionableIssues) works correctly.

      Parameters

      • prs: FetchedPR[]

        The fetched PR list to apply overrides to

      • state: Readonly<AgentState>

        Current agent state containing status overrides

      Returns FetchedPR[]

      New PR array with overrides applied (original array is not mutated)