fix(adr075): webhooks send_approval_card 補傳 alert_category+notification_type
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

斷點真正根因:_push_to_telegram_background 呼叫 send_approval_card()
時沒有傳入 alert_category 和 notification_type,導致動態按鈕永遠
fallback 到通用 [批准][拒絕][靜默]。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-12 20:07:12 +08:00
parent 0a4b7e9609
commit c3fea26222

View File

@@ -395,6 +395,9 @@ async def _push_to_telegram_background(
ai_cost=ai_cost,
ai_provider=ai_provider,
incident_id=incident_id,
# ADR-075 斷點 B 修復: 傳入分類以啟用動態按鈕
alert_category=alert_category,
notification_type=notification_type,
)
logger.info(