Skip to content

isFullAuto

isFullAuto(s, cfg): boolean

Defined in: src/full-auto.ts:17

A session is “full-auto” — the merge train carries its PR all the way to a merge — when BOTH autopilot AND auto-merge resolve true (a per-session override wins, else the repo default). Single source of truth shared by the merge train (which only lands full-auto sessions), the drain (which leaves full-auto sessions for the train but still retires the rest, so a non-full-auto session in an auto-merge repo never deadlocks a maxAuto slot), and the autopilot stand-down resolver. Keeping one definition prevents the three from drifting.

When the repo has draftMode on, the merge half is forced OFF regardless of any per-session autoMergeEnabled override — draft PRs must go through sign-off before they can be landed.

Pick<Session, "autopilotEnabled" | "autoMergeEnabled" | "baseBranch">

Pick<RepoConfig, "autopilotEnabled" | "autoMergeEnabled" | "draftMode">

boolean