Review Gate State Definitions (types/review.ts)

Observal · web/src/lib/types/review.ts · typescript · Apache-2.0
crm, automation, dev-tools, lang:typescript, tag:governance

Defines data structures for review lifecycle management and approval gates. Use to enforce policy checks and track publication readiness.

// Source: https://github.com/Observal/Observal | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// SPDX-FileCopyrightText: 2026 Naraen Rammoorthi <naraen13@gmail.com>
// SPDX-License-Identifier: Apache-2.0

export type ReviewState = "open" | "changes_requested" | "approved" | "published" | "closed";
export type ReviewVerdict = "comment" | "approve" | "request_changes";

export interface ReviewGate {
  ready: boolean;
  approvals: number;
  required: number;
  policy_source: string;
  requirements: string[];
  outstanding_requests?: number;
  blocking_checks?: ReviewGateCheck[];
  /** Open items that stop a normal publish (approvals, required checks, integrity rules). */
  blockers

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key