mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 17:41:35 +01:00
Fix ready notes, landing decisions, release PR descriptions and squash messages (GST-3343) (#4596)
Landing a ready PR now reads its gate decisions from the PR's ready note, and the ready note, a reopened release PR and a stacked PR's squash message now say the right thing. Each of these stopped a landing or left a wrong public record until someone fixed it by hand; the goal is unattended shipping that lands on its own. Nothing to do as a reader. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team
This commit is contained in:
1 parent
b281effa07
commit
7fe1900f8b
18 files changed
+304
-42
No files matched your search
@@ -15,6 +15,7 @@ import { redactFindingSpans } from '../../lib/redact-engine';
|
||||
import { git, sha256, writeJsonAtomic } from './ship-queue-gate';
|
||||
import { resolveStateRoot } from '../../lib/state-root';
|
||||
import type { PlanRecord } from '../../lib/plan-record';
|
||||
import type { ApprovalRow } from '../../lib/approval-record';
|
||||
|
||||
export const TRAIN_SCHEMA = 1;
|
||||
export const NOTES_REF = 'refs/notes/gstack-trains';
|
||||
@@ -120,6 +121,8 @@ export interface ReadyReceipt {
|
||||
base_red?: BaseRedCondition; fixes_base_red?: string[];
|
||||
/** The PR body's Plan line as ready resolved it (lib/plan-record.ts); absent before plan_record or when it did not resolve. */
|
||||
plan?: PlanRecord;
|
||||
/** The signed non-security gate disposition rows ready's store applied at the head, for a lander on another machine (lib/gate-dispositions.ts). */
|
||||
gate_dispositions?: ApprovalRow[];
|
||||
}
|
||||
/** One release-gate bisect round (crew/lib/release-gate.ts): the prefixes it dispatched on release-gate/<id> and what each case did there. */
|
||||
export interface ReleaseBisectRound { nonce: string; ref: string; run: { id: number; url: string } | null; prefixes: Array<{ sha: string; results: Record<string, PrefixResult> }> }
|
||||
|
||||
Reference in new issue
Block a user