- Add a shared manual retry reset helper in core and export it for consumers - Wire retry counter resets into CLI task retry, extension task retry, and dashboard task workflow routes - Align retry reset behavior with task typing updates and remove superseded task-helper reset paths - Add focused core/CLI/extension/dashboard tests plus docs and a changeset describing retry reset behavior
6 lines
189 B
TypeScript
6 lines
189 B
TypeScript
import type { PrInfo, Task } from "./types.js";
|
|
|
|
export function getPrimaryPrInfo(task: Pick<Task, "prInfo" | "prInfos">): PrInfo | undefined {
|
|
return task.prInfos?.[0] ?? task.prInfo;
|
|
}
|