fix: corrected payload argument
This commit is contained in:
7
index.js
7
index.js
@@ -10,13 +10,14 @@ const route = core.getInput("route") || "agent-lake";
|
||||
const method = core.getInput("method") || "embeddings_insert";
|
||||
const debug = (core.getInput("debug") || "false").toLowerCase() === "true";
|
||||
|
||||
const payload = github.context.payload;
|
||||
const githubToken = process.env.GITHUB_TOKEN;
|
||||
const commentBody = payload?.comment?.body || "";
|
||||
const issueNumber = payload?.issue?.number || 1;
|
||||
const repoFull = process.env.GITHUB_REPOSITORY;
|
||||
const repoFullName = process.env.GITHUB_REPOSITORY;
|
||||
|
||||
const [owner, repo] = repoFull.split("/");
|
||||
const segment_id = internal.examples.code;
|
||||
const [owner, repo] = repoFullName.split("/");
|
||||
const segment_id = "internal.examples.code";
|
||||
const document_id = [owner, repo, String(issueNumber)].join(".");
|
||||
|
||||
const serverUrl = (
|
||||
|
||||
Reference in New Issue
Block a user