Skip to content

Commit

Permalink
chore: debug create comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Dec 9, 2024
1 parent f55ccff commit 7feaccb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/handlers/call-personal-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,17 @@ export async function callPersonalAgent(context: Context) {
});
} catch (error) {
logger.error(`Error dispatching workflow:`, { err: error, error: new Error() });

try {
const errComment = ["```diff", `! There was a problem calling the personal agent of ${personalAgentOwner}`, "```"].join("\n");

logger.info("commenting", {
body: errComment,
repo,
owner,
issue_number: payload.issue.number,
});

await context.octokit.rest.issues.createComment({
body: errComment,
repo,
Expand Down

0 comments on commit 7feaccb

Please sign in to comment.