Merge pull request 'fix: fix: parse-deps.sh false positive — inline scan should skip fenced code blocks (#574)' (#578) from fix/issue-574 into main
This commit is contained in:
commit
9ec0c02210
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 '
|
||||
/^```/ { incode = !incode; next }
|
||||
incode { 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