cleanup: remove M4 debug logging from run.ts
Debug logging confirmed Forgejo sends 'label_updated' as eventAction for issues/labeled events. Normalization fix in context.ts handles it. Remove temporary debug lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
baa007a3ec
commit
b37009b766
1 file changed
-13
@@ -142,19 +142,6 @@ 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