From 4616c597e7debb0542a390416c7cecb9408035e2 Mon Sep 17 00:00:00 2001 From: Zbigniew Sobiecki Date: Mon, 16 Feb 2026 21:26:54 +0000 Subject: [PATCH] fix: forward commentCard events in Trello router MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The router was dropping all commentCard webhook events with "Ignoring Trello: commentCard", preventing the trello-comment-mention trigger from firing when users @mention the bot on PLANNING cards. Add commentCard to the shouldProcess condition in parseTrelloWebhook(). No router-level pre-filtering is needed — the worker-side TrelloCommentMentionTrigger already validates mention presence, card list membership, and self-authorship, matching the pattern used for JIRA comment events. Co-Authored-By: Claude Opus 4.6 --- src/router/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 4e593e2c..712110df 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -124,7 +124,8 @@ function parseTrelloWebhook(payload: unknown): TrelloWebhookResult { const shouldProcess = isCardInTriggerList(actionType, data, project) || isReadyToProcessLabelAdded(actionType, data, project) || - isAgentLogAttachmentUploaded(actionType, data, project); + isAgentLogAttachmentUploaded(actionType, data, project) || + actionType === 'commentCard'; return { shouldProcess, project, actionType, cardId }; }