mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 07:10:50 +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
|
fetch-depth: 0 # full history required for git blame
|
||||||
|
|
||||||
- name: Generate TODO report
|
- name: Generate TODO report
|
||||||
|
id: report
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_REPO_SCOPE }}
|
GH_TOKEN: ${{ secrets.GH_REPO_SCOPE }}
|
||||||
run: |
|
run: |
|
||||||
@@ -80,6 +81,7 @@ jobs:
|
|||||||
|
|
||||||
if [ ! -s /tmp/raw.txt ]; then
|
if [ ! -s /tmp/raw.txt ]; then
|
||||||
echo -e "## \`TODO\` Report\n\n**Last Updated: ${LAST_UPDATED}**\n\nNo markers found." > todo.md
|
echo -e "## \`TODO\` Report\n\n**Last Updated: ${LAST_UPDATED}**\n\nNo markers found." > todo.md
|
||||||
|
echo "unlinked=0" >> "$GITHUB_OUTPUT"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -262,6 +264,8 @@ jobs:
|
|||||||
|
|
||||||
} > todo.md
|
} > todo.md
|
||||||
|
|
||||||
|
echo "unlinked=$(awk -F'\t' '$5 == ""' /tmp/enriched.tsv | wc -l | tr -d ' ')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Update GitHub issue
|
- name: Update GitHub issue
|
||||||
uses: peter-evans/create-or-update-comment@v4
|
uses: peter-evans/create-or-update-comment@v4
|
||||||
with:
|
with:
|
||||||
@@ -270,3 +274,11 @@ jobs:
|
|||||||
comment-id: 3253439219
|
comment-id: 3253439219
|
||||||
body-file: todo.md
|
body-file: todo.md
|
||||||
edit-mode: replace
|
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
|
Package: AMR
|
||||||
Version: 3.0.1.9110
|
Version: 3.0.1.9111
|
||||||
Date: 2026-10-10
|
Date: 2026-10-10
|
||||||
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)
|
||||||
|
|||||||
Reference in new issue
Block a user