From 80df742bb17645b5268367b4e9394e01f27fc029 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 8 Jan 2025 10:13:06 +0900 Subject: [PATCH] chore: fixed repo payload --- src/web/api/payload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/api/payload.ts b/src/web/api/payload.ts index 5e7a095b..9dd283ad 100644 --- a/src/web/api/payload.ts +++ b/src/web/api/payload.ts @@ -6,7 +6,7 @@ export async function getPayload(ownerRepo: string, issueId: number, useOpenAi: const filePath = path.resolve(__dirname, "../.ubiquity-os.config.yml"); const fileContent = await fs.readFile(filePath, "utf8"); const cfgFile = YAML.parse(fileContent); - const owner = ownerRepo.split("/")[0]; + const [owner, repo] = ownerRepo.split("/"); if (!useOpenAi) { cfgFile.incentives.contentEvaluator.openAi = { @@ -104,7 +104,7 @@ export async function getPayload(ownerRepo: string, issueId: number, useOpenAi: repository: { id: 1296269, node_id: `MDEwOlJlcG9zaXRvcnkxMjk2MjY5`, - name: owner, + name: repo, full_name: ownerRepo, owner: { login: owner,