From 325b0a60603d7f8d818a676cc0d2f71a9af1bbc6 Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Thu, 16 May 2024 04:39:12 +0100 Subject: [PATCH] chore: debug --- src/plugin.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 7c71d9e..fa46dca 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -59,11 +59,8 @@ export async function startStopBounty() { let output: object = {}; if (context.eventName === "issue_comment.created") { - const payload = context.payload as Context<"issue_comment.created">["payload"]; - if (!payload.comment) { - throw new Error("Comment not found in payload"); - } - const command = payload.comment.body.trim(); + const payload = context.payload; + console.log("payload", payload); output = await userStartStop(context, command); } else if (context.eventName === "workflow_dispatch") { output = await pluginStartStop(context, octokit);