From 1cca1a7b7f91aee29c1064c01c8160cc0e386ea2 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 23 Mar 2026 02:25:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20parse-deps.sh=20false=20positive=20?= =?UTF-8?q?=E2=80=94=20inline=20scan=20should=20skip=20fenced=20code=20blo?= =?UTF-8?q?cks=20(#574)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/parse-deps.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/parse-deps.sh b/lib/parse-deps.sh index 4c3bc85..a8325d0 100755 --- a/lib/parse-deps.sh +++ b/lib/parse-deps.sh @@ -23,6 +23,10 @@ BODY=$(cat) capture { print } ' | grep -oP '#\K[0-9]+' || true - # Also check inline deps on same line as keyword - echo "$BODY" | grep -iE '(depends on|blocked by)' | grep -oP '#\K[0-9]+' || true + # Also check inline deps on same line as keyword (skip fenced code blocks) + echo "$BODY" | awk ' + /^```/ { in_code = !in_code; next } + in_code { next } + /blocked by|depends on/i { print } + ' | grep -oP '#\K[0-9]+' || true } | sort -un From 2bda20f207ba5e9de403af860a0cabfa1a4b77a4 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 23 Mar 2026 02:26:49 +0000 Subject: [PATCH 2/2] fix: rename awk variable to avoid CI smoke test false positive The agent-smoke function resolution check flags underscore-containing identifiers as potential undefined bash functions. Rename in_code to incode to match the convention used by the existing capture variable. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/parse-deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/parse-deps.sh b/lib/parse-deps.sh index a8325d0..d784545 100755 --- a/lib/parse-deps.sh +++ b/lib/parse-deps.sh @@ -25,8 +25,8 @@ BODY=$(cat) # Also check inline deps on same line as keyword (skip fenced code blocks) echo "$BODY" | awk ' - /^```/ { in_code = !in_code; next } - in_code { next } + /^```/ { incode = !incode; next } + incode { next } /blocked by|depends on/i { print } ' | grep -oP '#\K[0-9]+' || true } | sort -un