Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed May 16, 2024
1 parent 36a267f commit 325b0a6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 325b0a6

Please sign in to comment.