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 634a1ae commit 8970fd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8970fd4

Please sign in to comment.