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 <noreply@anthropic.com>
This commit is contained in:
1 parent
a864b1636f
commit
b020426956
1 file changed
+13
@@ -142,6 +142,19 @@ async function run() {
|
|||||||
// Phase 1: Prepare
|
// Phase 1: Prepare
|
||||||
const actionInputsPresent = collectActionInputsPresence();
|
const actionInputsPresent = collectActionInputsPresence();
|
||||||
context = parseGitHubContext();
|
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);
|
const modeName = detectMode(context);
|
||||||
console.log(
|
console.log(
|
||||||
`Auto-detected mode: ${modeName} for event: ${context.eventName}`,
|
`Auto-detected mode: ${modeName} for event: ${context.eventName}`,
|
||||||
|
|||||||
Reference in new issue
Block a user