From b02042695662452df31007add34b6369e9d100ff Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Thu, 26 Feb 2026 10:22:53 +0200 Subject: [PATCH] debug: add issues event payload logging for M4 label trigger Temporary debug logging to inspect eventAction and payload.label on Forgejo for issues/labeled events. Co-Authored-By: Claude Opus 4.6 --- src/entrypoints/run.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/entrypoints/run.ts b/src/entrypoints/run.ts index b79d7bb..ca24252 100644 --- a/src/entrypoints/run.ts +++ b/src/entrypoints/run.ts @@ -142,6 +142,19 @@ async function run() { // Phase 1: Prepare const actionInputsPresent = collectActionInputsPresence(); context = parseGitHubContext(); + // Debug: dump event details for issues events (M4 debugging) + if (context.eventName === "issues") { + console.log( + `[debug] issues event — eventAction: ${(context as any).eventAction}`, + ); + console.log( + `[debug] payload.action: ${(context as any).payload?.action}`, + ); + console.log( + `[debug] payload.label: ${JSON.stringify((context as any).payload?.label)}`, + ); + console.log(`[debug] LABEL_TRIGGER env: ${process.env.LABEL_TRIGGER}`); + } const modeName = detectMode(context); console.log( `Auto-detected mode: ${modeName} for event: ${context.eventName}`,