(v3.0.1.9111) Let the TODO tracker fail when markers lack an issue reference, after updating #231

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-10 11:47:33 +02:00
1 parent aa462e0ad6
commit 31692a26d1
3 files changed
+14 -2

No files matched your search

+12
View File
@@ -43,6 +43,7 @@ jobs:
fetch-depth: 0 # full history required for git blame
- name: Generate TODO report
id: report
env:
GH_TOKEN: ${{ secrets.GH_REPO_SCOPE }}
run: |
@@ -80,6 +81,7 @@ jobs:
if [ ! -s /tmp/raw.txt ]; then
echo -e "## \`TODO\` Report\n\n**Last Updated: ${LAST_UPDATED}**\n\nNo markers found." > todo.md
echo "unlinked=0" >> "$GITHUB_OUTPUT"
exit 0
fi
@@ -262,6 +264,8 @@ jobs:
} > todo.md
echo "unlinked=$(awk -F'\t' '$5 == ""' /tmp/enriched.tsv | wc -l | tr -d ' ')" >> "$GITHUB_OUTPUT"
- name: Update GitHub issue
uses: peter-evans/create-or-update-comment@v4
with:
@@ -270,3 +274,11 @@ jobs:
comment-id: 3253439219
body-file: todo.md
edit-mode: replace
# runs after the issue update, so that the overview in #231 is always current
- name: Fail on markers without issue reference
if: steps.report.outputs.unlinked != '0'
run: |
echo "::error::${{ steps.report.outputs.unlinked }} TODO/FIXME/HACK/XXX marker(s) without an issue reference (#NNN):"
awk -F'\t' '$5 == "" {print $1 ":" $2 ":" $6}' /tmp/enriched.tsv
exit 1
+1 -1
View File
@@ -1,5 +1,5 @@
Package: AMR
Version: 3.0.1.9110
Version: 3.0.1.9111
Date: 2026-10-10
Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
+1 -1
View File
@@ -1,4 +1,4 @@
# AMR 3.0.1.9110
# AMR 3.0.1.9111
Planned as v3.1.0, mid October 2026.