From f15cb8c0c9decd360d62bc5990629fa8526351a3 Mon Sep 17 00:00:00 2001 From: codex-bot-andresmgsl <304681515+codex-bot-andresmgsl@users.noreply.github.com> Date: Thu, 23 Jul 2026 17:27:24 +0000 Subject: [PATCH] feat: add attention core label row --- actions/labels-reconcile/labels-reconcile.sh | 1 + test/labels.test.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/actions/labels-reconcile/labels-reconcile.sh b/actions/labels-reconcile/labels-reconcile.sh index 25231ea..d2b8902 100755 --- a/actions/labels-reconcile/labels-reconcile.sh +++ b/actions/labels-reconcile/labels-reconcile.sh @@ -393,6 +393,7 @@ stale|B60205|No activity for 48h — needs a poke (sweep-managed) blocked|6A737D|Waiting on another PR or issue to land first offsite|CFD3D7|Issue deliverable is a PR in another repository — claim clock paused needs-ruling|D4C5F9|A human decision is pending — question, options and a recommendation are in the comment +attention|D93F0B|A demand is parked here for the assignee: pick up the thread, ack by removing this label release|0E8A16|Release flow and version/packaging work needs-triage|FBCA04|Did not come through triage — owes normalization or conversion to a discussion ready|0E8A16|Triaged, spec complete, unblocked — a builder can start now and succeed diff --git a/test/labels.test.sh b/test/labels.test.sh index af0d4de..c8bfc2f 100755 --- a/test/labels.test.sh +++ b/test/labels.test.sh @@ -26,6 +26,16 @@ check "panel is parsed" 0 "one two three" bash -c \ check "core and config rows merge" 0 "scope:two|C5DEF5|Second scope" bash -c \ 'source "$1"; core_label_rows; configured_label_rows "$2"' _ \ "$ROOT/actions/labels-reconcile/labels-reconcile.sh" "$TMP/good.conf" +attention_row='attention|D93F0B|A demand is parked here for the assignee: pick up the thread, ack by removing this label' +check "attention core row is emitted once, byte-exact" 0 "1" bash -c \ + 'source "$1"; core_label_rows | grep -cxF "$2"' _ \ + "$ROOT/actions/labels-reconcile/labels-reconcile.sh" "$attention_row" +# shellcheck disable=SC2016 # fields are intentionally split in the nested shell +check "attention description survives label field splitting" 0 \ + "A demand is parked here for the assignee: pick up the thread, ack by removing this label" \ + bash -c 'source "$1"; while IFS="|" read -r name color desc; do + [ "$name" != attention ] || printf "%s\n" "$desc" + done < <(core_label_rows)' _ "$ROOT/actions/labels-reconcile/labels-reconcile.sh" # shellcheck disable=SC2016 # expansion belongs to the nested bash check "triage config is not parsed as a label row" 1 "" bash -c \ 'source "$1"; configured_label_rows "$2" | grep -F triage-actors' _ \