debug: add M5 debug logging for assignee trigger
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
efddd08f5c
commit
9efd06cc26
1 file changed
+18
@@ -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<string, any>;
|
||||||
|
console.log(
|
||||||
|
`[M5 DEBUG] payload.assignee: ${JSON.stringify(payload.assignee)}`,
|
||||||
|
);
|
||||||
|
console.log(`[M5 DEBUG] payload.action: ${payload.action}`);
|
||||||
|
}
|
||||||
|
// === M5 DEBUG END ===
|
||||||
|
|
||||||
// Check trigger conditions
|
// Check trigger conditions
|
||||||
const containsTrigger =
|
const containsTrigger =
|
||||||
modeName === "tag"
|
modeName === "tag"
|
||||||
|
|||||||
Reference in new issue
Block a user