Skip to content

Commit

Permalink
chore: fixed repo payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jan 8, 2025
1 parent b13cae5 commit 80df742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/api/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 80df742

Please sign in to comment.