diff --git a/src/handlers/call-personal-agent.ts b/src/handlers/call-personal-agent.ts index dc2f6c3b..b830b0c9 100644 --- a/src/handlers/call-personal-agent.ts +++ b/src/handlers/call-personal-agent.ts @@ -11,7 +11,7 @@ import { Context } from "../types"; export async function callPersonalAgent(context: Context) { const { logger, payload, octokit } = context; - const owner = payload.repository.owner.login; + //const owner = payload.repository.owner.login; const body = payload.comment.body; if (!body.match(/^\/\B@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))\s.*/i)) { @@ -27,7 +27,7 @@ export async function callPersonalAgent(context: Context) { const personalAgentOwner = targetUser[0].replace("/@", ""); - logger.info(`Comment received: ${JSON.stringify({ username: owner, comment: body })}`); + logger.info(`Comment received: ${JSON.stringify({ username: personalAgentOwner, comment: body })}`); const paWorkflowParams = { owner: personalAgentOwner,