mirror of
https://github.com/msberends/AMR.git
synced 2026-11-15 22:20:47 +01:00
(v3.0.1.9111) Let the TODO tracker fail when markers lack an issue reference, after updating #231
This commit is contained in:
1 parent
aa462e0ad6
commit
31692a26d1
3 files changed
+14
-2
No files matched your search
@@ -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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user