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"