Skip to content

PullRequest

Defined in: src/forge/types.ts:82

An open PR surfaced in the backlog PRs tab. Lighter than PrStatus: it is a list row across all forge repos, not one session’s live git state.

author: string

Defined in: src/forge/types.ts:86


checks: ChecksState

Defined in: src/forge/types.ts:94

Worst-of CI rollup over the head commit.


createdAt: number

Defined in: src/forge/types.ts:89


optional headRefName?: string

Defined in: src/forge/types.ts:110

Head branch name; used to skip PRs already managed by a live session.


optional headSha?: string

Defined in: src/forge/types.ts:108

Head commit SHA (headRefOid); drives the standalone critic’s per-head dedup.


isDraft: boolean

Defined in: src/forge/types.ts:90


jobs: WorkflowJob[]

Defined in: src/forge/types.ts:98

Per-check breakdown of the head commit (one entry per CI job / status context), powering the PRs tab’s expand-the-dot view. Empty when the host reports no checks.


kind: PrKind

Defined in: src/forge/types.ts:88

Which kind of PR this is — drives the PRs tab type tag. Computed via classifyPr.


optional latestReview?: PrReview

Defined in: src/forge/types.ts:100

Newest human review (critic-marked reviews excluded), or undefined.


mergeable: boolean | null

Defined in: src/forge/types.ts:92

null = host still computing mergeability.


optional nonDefaultBase?: string

Defined in: src/forge/types.ts:106

The PR’s base (target) branch, populated ONLY when it is NOT the repo’s default branch (e.g. an epic/stacked branch); undefined for the common default-targeting PR. This is intentionally NOT the raw base ref — do not rely on it to read a PR’s actual target; it exists solely to surface non-default (stacked) PRs in the backlog PRs tab.


number: number

Defined in: src/forge/types.ts:83


title: string

Defined in: src/forge/types.ts:84


url: string

Defined in: src/forge/types.ts:85