diff --git a/.github/workflows/todo-tracker.yml b/.github/workflows/todo-tracker.yml index f5664c4ed..a96836645 100644 --- a/.github/workflows/todo-tracker.yml +++ b/.github/workflows/todo-tracker.yml @@ -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 diff --git a/DESCRIPTION b/DESCRIPTION index d4b92b4e3..9498b6ef0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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) diff --git a/NEWS.md b/NEWS.md index b453b1cc4..c749c30b0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 3.0.1.9110 +# AMR 3.0.1.9111 Planned as v3.1.0, mid October 2026.