From 9efd06cc2690f43a3792e901cf9d3ae97345eed3 Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Thu, 26 Feb 2026 10:44:56 +0200 Subject: [PATCH] debug: add M5 debug logging for assignee trigger Co-Authored-By: Claude Opus 4.6 --- src/entrypoints/run.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/entrypoints/run.ts b/src/entrypoints/run.ts index b79d7bb..75362f3 100644 --- a/src/entrypoints/run.ts +++ b/src/entrypoints/run.ts @@ -187,6 +187,24 @@ async function run() { } } + // === M5 DEBUG START === + console.log(`[M5 DEBUG] eventName: ${context.eventName}`); + console.log(`[M5 DEBUG] eventAction: ${context.eventAction}`); + console.log( + `[M5 DEBUG] assigneeTrigger: "${context.inputs?.assigneeTrigger}"`, + ); + console.log( + `[M5 DEBUG] ASSIGNEE_TRIGGER env: "${process.env.ASSIGNEE_TRIGGER}"`, + ); + if (isEntityContext(context)) { + const payload = context.payload as Record; + console.log( + `[M5 DEBUG] payload.assignee: ${JSON.stringify(payload.assignee)}`, + ); + console.log(`[M5 DEBUG] payload.action: ${payload.action}`); + } + // === M5 DEBUG END === + // Check trigger conditions const containsTrigger = modeName === "tag"