From 8970fd4559f1a3b66eaf5845bf9e8298f169a491 Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Thu, 16 May 2024 05:07:00 +0100 Subject: [PATCH] chore: debug --- src/plugin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 030bf91..8fa1eeb 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -58,8 +58,10 @@ export async function startStopBounty() { let output: object = {}; - if ("comment" in context.payload) { - const command = context.payload.comment.body.trim(); + if (context.eventName === "issue_comment.created") { + console.log("PAYLOAD", context.payload); + const command = context.payload.comment.body; + output = await userStartStop(context, command); } else { output = await pluginStartStop(context, octokit);