fix(awooop): label cicd outbound timeline
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -21,6 +21,16 @@ def test_outbound_timeline_title_labels_governance_alert() -> None:
|
||||
assert title == "TELEGRAM:AI 治理警報"
|
||||
|
||||
|
||||
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 == "TELEGRAM:CI/CD 狀態通知"
|
||||
|
||||
|
||||
def test_outbound_timeline_title_labels_auto_repair_handoff() -> None:
|
||||
title = _outbound_timeline_title(
|
||||
"telegram",
|
||||
|
||||
@@ -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:處置結果`,改顯示 `TELEGRAM:CI/CD 狀態通知`。
|
||||
|
||||
Reference in New Issue
Block a user