fix(awooop): label cicd outbound timeline
All checks were successful
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / tests (push) Successful in 1m3s
CD Pipeline / build-and-deploy (push) Successful in 4m1s
CD Pipeline / post-deploy-checks (push) Successful in 1m26s

This commit is contained in:
Your Name
2026-05-12 14:26:29 +08:00
parent d74beb2176
commit 03ba9678d5
3 changed files with 14 additions and 0 deletions

View File

@@ -210,6 +210,8 @@ def _outbound_timeline_title(
preview = content_preview or ""
if "RUNBOOK REVIEW" in preview:
return f"{channel}Runbook 待人工審核"
if "[AWOOOI CI/CD]" in preview or "AWOOOI CI/CD" in preview:
return f"{channel}CI/CD 狀態通知"
if "AI 治理警報" in preview:
return f"{channel}AI 治理警報"
if "HANDOFF REQUIRED" in preview or "AI 自動修復失敗" in preview:

View File

@@ -21,6 +21,16 @@ def test_outbound_timeline_title_labels_governance_alert() -> None:
assert title == "TELEGRAMAI 治理警報"
def test_outbound_timeline_title_labels_cicd_status() -> None:
title = _outbound_timeline_title(
"telegram",
"final",
"✅ <b>[AWOOOI CI/CD]</b> | code-review\n📦 Code Review 完成・LOW",
)
assert title == "TELEGRAMCI/CD 狀態通知"
def test_outbound_timeline_title_labels_auto_repair_handoff() -> None:
title = _outbound_timeline_title(
"telegram",

View File

@@ -5558,3 +5558,5 @@ completed_shadow_run_created / outbound_message_recorded present
- `cd.yaml` 改用 awk bracket pattern
`awk '$0 ~ /[d]ocker (build|push)|[b]uildx build/ {print}'`
避免自我匹配。
- AwoooP Run Detail timeline 追加 `[AWOOOI CI/CD]` 語義分類CI/CD outbound 不再落到
泛用 `TELEGRAM處置結果`,改顯示 `TELEGRAMCI/CD 狀態通知`