Fix Foundry validation fallout

This commit is contained in:
Nathan Flurry 2026-03-15 13:43:24 -07:00 committed by Nathan Flurry
parent 13fc9cb318
commit aa332307e5
11 changed files with 25 additions and 7 deletions

View file

@ -138,6 +138,7 @@ function pullRequestSummaryFromRow(row: any) {
repoId: row.repoId,
repoFullName: row.repoFullName,
number: row.number,
status: Boolean(row.isDraft) ? "draft" : "ready",
title: row.title,
state: row.state,
url: row.url,

View file

@ -1089,6 +1089,7 @@ export const organizationAppActions = {
},
pullRequest: {
number: body.pull_request.number,
status: body.pull_request.draft ? "draft" : "ready",
title: body.pull_request.title ?? "",
body: body.pull_request.body ?? null,
state: body.pull_request.state ?? "open",

View file

@ -1378,6 +1378,7 @@ export async function publishWorkspacePr(c: any): Promise<void> {
});
await syncTaskPullRequest(c, {
number: created.number,
status: "ready",
title: record.title ?? record.task,
body: null,
state: "open",