1
0
mirror of https://github.com/msberends/AMR.git synced 2026-06-29 19:36:19 +02:00

(v3.0.1.9068) todo tracker update

This commit is contained in:
2026-06-24 20:01:25 +02:00
parent 935071ae01
commit b6c1c26a5d
3 changed files with 15 additions and 9 deletions

View File

@@ -87,14 +87,15 @@ jobs:
> /tmp/issues_seen.txt > /tmp/issues_seen.txt
while IFS= read -r match; do while IFS= read -r match; do
file=$(echo "$match" | sed 's|^\./||' | cut -d: -f1) clean=$(printf '%s\n' "$match" | sed 's|^\./||')
lineno=$(echo "$match" | sed 's|^\./||' | cut -d: -f2) file=$(printf '%s\n' "$clean" | cut -d: -f1)
text=$(echo "$match" | sed 's|^\./||' | cut -d: -f3-) lineno=$(printf '%s\n' "$clean" | cut -d: -f2)
text=$(printf '%s\n' "$clean" | cut -d: -f3-)
# determine marker type (first match wins, TODO is default) # determine marker type (first match wins, TODO is default)
marker="TODO" marker="TODO"
for m in FIXME HACK XXX; do for m in FIXME HACK XXX; do
if echo "$text" | grep -qw "$m"; then marker="$m"; break; fi if printf '%s\n' "$text" | grep -qw "$m"; then marker="$m"; break; fi
done done
# git blame timestamp # git blame timestamp
@@ -109,7 +110,7 @@ jobs:
fi fi
# extract issue references (#NNN) # extract issue references (#NNN)
issues=$(echo "$text" | grep -oE '#[0-9]+' | sed 's/#//' | tr '\n' ',' | sed 's/,$//' || true) issues=$(printf '%s\n' "$text" | grep -oE '#[0-9]+' | sed 's/#//' | tr '\n' ',' | sed 's/,$//' || true)
if [ -n "$issues" ]; then if [ -n "$issues" ]; then
for inum in $(echo "$issues" | tr ',' ' '); do for inum in $(echo "$issues" | tr ',' ' '); do
echo "$inum" >> /tmp/issues_seen.txt echo "$inum" >> /tmp/issues_seen.txt
@@ -197,7 +198,10 @@ jobs:
age_str=$(format_age "$d") age_str=$(format_age "$d")
flag="" flag=""
[ "$d" -gt "$STALE_DAYS" ] 2>/dev/null && flag=" :warning:" [ "$d" -gt "$STALE_DAYS" ] 2>/dev/null && flag=" :warning:"
echo "- \`${f}\` L${l} (${age_str} ago)${flag}" # re-read the actual source line and trim leading/trailing whitespace
src_text=$(sed -n "${l}p" "$f" 2>/dev/null | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' || true)
echo "- [\`${f}\` L${l}](${REPO_URL}/${f}#L${l}) (${age_str} ago)${flag}"
[ -n "$src_text" ] && echo " \`${src_text}\`"
done done
echo "" echo ""
@@ -242,7 +246,9 @@ jobs:
flag="" flag=""
[ "$age_days" -gt "$STALE_DAYS" ] 2>/dev/null && flag=" !!" [ "$age_days" -gt "$STALE_DAYS" ] 2>/dev/null && flag=" !!"
printf 'L%s: %s ◁ %s ago%s\n' "$lineno" "$text" "$age_str" "$flag" # re-read the actual source line to avoid TSV round-trip corruption
src_line=$(sed -n "${lineno}p" "$file" 2>/dev/null | sed 's/[[:space:]]*$//' || true)
printf 'L%s: %s ◁ %s ago%s\n' "$lineno" "$src_line" "$age_str" "$flag"
prev_file="$file" prev_file="$file"
prev_lineno="$lineno" prev_lineno="$lineno"

View File

@@ -1,5 +1,5 @@
Package: AMR Package: AMR
Version: 3.0.1.9067 Version: 3.0.1.9068
Date: 2026-06-24 Date: 2026-06-24
Title: Antimicrobial Resistance Data Analysis Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR) Description: Functions to simplify and standardise antimicrobial resistance (AMR)

View File

@@ -1,4 +1,4 @@
# AMR 3.0.1.9067 # AMR 3.0.1.9068
Planned as v3.1.0, end of June 2026. Planned as v3.1.0, end of June 2026.