fix(FN-5044): satisfy CLI typecheck for PR metadata settings
Fusion-Task-Id: FN-5044 Fusion-Task-Lineage: 84520cf4-15bb-40b3-9fd3-926bfbcdc37e
This commit is contained in:
committed by
gsxdsm
parent
14298615d5
commit
d6d79bcb78
@@ -1527,7 +1527,9 @@ export async function runTaskPrCreate(id: string, options: PrCreateOptions = {},
|
||||
if (shouldUseAi) {
|
||||
try {
|
||||
const repoRoot = await getProjectPath(projectName);
|
||||
const settings = "getSettings" in store ? await store.getSettings() : {};
|
||||
const settings = ("getSettings" in store
|
||||
? await store.getSettings()
|
||||
: {}) as Parameters<typeof dashboard.generatePrMetadata>[0]["settings"];
|
||||
const generated = await dashboard.generatePrMetadata({ task, repoRoot, settings });
|
||||
if (!options.title) {
|
||||
resolvedTitle = generated.title;
|
||||
|
||||
Reference in New Issue
Block a user