fix: parse-deps.sh false positive — inline scan should skip fenced code blocks (#574)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
618404dc93
commit
1cca1a7b7f
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue