From e92f23b55e1c41c5cdd9c2aefa7d1e38be7efe54 Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Tue, 2 Jul 2024 17:22:25 -0500 Subject: [PATCH] debug --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 158dcfc..7bc01c6 100644 --- a/src/index.js +++ b/src/index.js @@ -21,8 +21,7 @@ try { core.info(`Type: "${type}"`); core.info(`Ref: "${ref}"`); core.info(`Event: "${github.context.eventName}"`); - core.info(`Event action: "${github.context.action}"`); - core.info(yaml.dump(github.context.payload)); + core.info(`Event action: "${github.context.payload.action}"`); } let count = 0; @@ -59,7 +58,7 @@ try { } } else { if (debug) core.info("Closed PR event"); - if (debug) core.info(prEvent.pull_request.labels); + if (debug) core.info(yaml.dump(prEvent.pull_request.labels)); matches = !prEvent.pull_request.labels.some( (label) => label.name === value.removed_label, );