Publish curated projectbrain source from 246c0a7f35e32f54fa1bf8a3f720b01bb00dd9af

This commit is contained in:
Public Source Publisher committed 2026-10-07 01:36:52 +00:00
1 parent 759d263081
commit 98f7618af2
11 files changed
+540 -63

No files matched your search

+4 -1
View File
@@ -533,7 +533,8 @@ describe("ChatGPT feature delivery approval", () => {
it("requires every Gitea Actions workflow for the exact branch head to succeed", () => {
const run = (id: number, conclusion: string, headSha = "current-sha"): GiteaActionRun => ({
id, run_number: id, display_title: "Managed validation / full", path: ".gitea/workflows/managed-validation.yml", event: "workflow_dispatch", head_sha: headSha,
head_branch: "chatgpt/feature", status: "completed", conclusion, html_url: `https://gitea.example.com/runs/${id}`,
run_attempt: 1, head_branch: "chatgpt/feature", status: "completed", conclusion, html_url: `https://gitea.example.com/runs/${id}`,
jobs: [{ id: id * 10, html_url: `https://gitea.example.com/runs/${id}/jobs/${id * 10}`, run_id: id, name: "full", labels: [], run_attempt: 1, head_sha: headSha, head_branch: "chatgpt/feature", status: "completed", conclusion, runner_id: 1, steps: [], created_at: "2026-10-06T21:33:06Z" }],
});
expect(assertSuccessfulActionRuns([run(1, "success"), run(2, "success")], "chatgpt/feature", "current-sha")).toHaveLength(2);
expect(() => assertSuccessfulActionRuns([run(1, "success"), run(2, "failure")], "chatgpt/feature", "current-sha")).toThrow("FEATURE_DELIVERY_FULL_VALIDATION_REQUIRED");
@@ -546,6 +547,7 @@ describe("ChatGPT feature delivery approval", () => {
const run = (overrides: Partial<GiteaActionRun> = {}): GiteaActionRun => ({
id: 10,
run_number: 10,
run_attempt: 1,
display_title: "Managed validation / full",
path: ".gitea/workflows/managed-validation.yml",
event: "pull_request",
@@ -554,6 +556,7 @@ describe("ChatGPT feature delivery approval", () => {
status: "completed",
conclusion: "success",
html_url: "https://gitea.example.com/runs/10",
jobs: [{ id: 100, html_url: "https://gitea.example.com/runs/10/jobs/100", run_id: 10, name: "full", labels: [], run_attempt: 1, head_sha: headSha, head_branch: branch, status: "completed", conclusion: "success", runner_id: 1, steps: [], created_at: "2026-10-06T21:33:06Z" }],
...overrides,
});