Skip to content

Type Alias: PullRequestState

Makaio Framework


Makaio Framework / contracts / PullRequestState

PullRequestState = z.infer<typeof PullRequestStateSchema>

Defined in: ../../../packages/contracts/src/capabilities/vcs-pr/schemas.ts:178

  • PullRequestState
    • z.infer<typeof PullRequestStateSchema>
      • typeof PullRequestStateSchema
type PullRequestState = {
repository: string;
number: number;
title: string;
branch: string;
baseBranch: string;
author: string;
url: string;
state: 'merged' | 'open' | 'closed';
draft: boolean;
mergeable: boolean | null;
checks: { status: 'pending' | 'passing' | 'failing' | 'mixed'; total: number; passed: number; failed: number; pending: number; skipped: number; failedChecks: Array<{ id: number; name: string; workflowName: string; conclusion: string; failedStep: string | null; detailsUrl: string | null; completedAt: string | null; source: 'check-run' | 'commit-status'; }>; summary: string; };
reviews: { status: 'pending' | 'approved' | 'changes-requested'; approvals: number; changesRequested: number; commented: number; reviewers: Array<{ reviewer: string; state: 'APPROVED' | 'CHANGES_REQUESTED' | 'COMMENTED' | 'PENDING' | 'DISMISSED'; submittedAt: string | null; }>; summary: string; };
findings: { total: number; open: number; addressed: number; verified: number; dismissed: number; openBySeverity: { critical: number; major: number; minor: number; nitpick: number; }; summary: string; };
labels: Array<{ name: string; semantic: 'custom' | 'type' | 'priority' | 'status' | 'review' | 'size' | 'automation' | null; }>;
readiness: { status: 'ready' | 'blocked' | 'needs-attention'; blockers: Array<string>; warnings: Array<string>; };
syncedAt: number;
headSha: string;
};