Skip to content

Commit

Permalink
fix: log correct user name
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Dec 5, 2024
1 parent e5a8480 commit a69d67a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/call-personal-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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,
Expand Down

0 comments on commit a69d67a

Please sign in to comment.