Skip to content

Interface: ReviewSourceSnapshot

Makaio Framework


Makaio Framework / contracts / ReviewSourceSnapshot

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:48

Snapshot of raw data from a review source, before processing.

optional cliOutput?: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:62

CLI tool output


comments: object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:56

Inline and general review comments

author: string

Username of the commenter

body: string

Comment body text

createdAt: string

ISO timestamp when comment was created

optional diffHunk?: string | null

Diff hunk context for the comment (if available)

id: number

Unique identifier for the comment

inReplyToId: number | null

ID of the parent comment if this is a reply

optional isResolved?: boolean | null

Whether this comment’s thread is resolved

line: number | null

Line number (null for general PR comments)

path: string | null

File path the comment is on (null for general PR comments)

optional threadId?: string | null

GraphQL node ID for thread operations (GitHub: PRRT_*)

updatedAt: string

ISO timestamp when comment was last updated


optional issueComments?: object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:60

Issue-level comments (e.g., from issue timeline)

author: string

Author username

body: string

Comment body

createdAt: string | null

ISO timestamp when created

id: string | number

Comment ID

updatedAt: string | null

ISO timestamp when updated

url: string | null

URL to the comment


optional rateLimitBody?: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:64

Raw body containing rate limit information


reviewer: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:52

Reviewer family


reviews: object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:58

Review-level bodies

author: string

Username of the reviewer

body: string | null

Review body text

id: number

Unique identifier for the review

state: "APPROVED" | "CHANGES_REQUESTED" | "COMMENTED" | "PENDING" | "DISMISSED"

Review state

submittedAt: string | null

ISO timestamp when review was submitted


sourceId: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:50

Source that produced this snapshot


target: object

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:54

Target PR/branch

optional branch?: string

Branch name

optional headSha?: string

Head commit SHA

optional prNumber?: number

Pull request number

repository: string

Repository identity (e.g., ‘owner/repo’)