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.
Properties
Section titled “Properties”author
Section titled “author”author:
string
Defined in: src/forge/types.ts:86
checks
Section titled “checks”checks:
ChecksState
Defined in: src/forge/types.ts:94
Worst-of CI rollup over the head commit.
createdAt
Section titled “createdAt”createdAt:
number
Defined in: src/forge/types.ts:89
headRefName?
Section titled “headRefName?”
optionalheadRefName?:string
Defined in: src/forge/types.ts:110
Head branch name; used to skip PRs already managed by a live session.
headSha?
Section titled “headSha?”
optionalheadSha?:string
Defined in: src/forge/types.ts:108
Head commit SHA (headRefOid); drives the standalone critic’s per-head dedup.
isDraft
Section titled “isDraft”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.
latestReview?
Section titled “latestReview?”
optionallatestReview?:PrReview
Defined in: src/forge/types.ts:100
Newest human review (critic-marked reviews excluded), or undefined.
mergeable
Section titled “mergeable”mergeable:
boolean|null
Defined in: src/forge/types.ts:92
null = host still computing mergeability.
nonDefaultBase?
Section titled “nonDefaultBase?”
optionalnonDefaultBase?: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
Section titled “number”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