Skip to content

Commit

Permalink
tweak taghunt
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredett committed Nov 8, 2024
1 parent a0e60cc commit 25684eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/taghunt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ jobs:
id: taghunt
run: |
set -x
which rg
rg --version
rg TODO src
cat <<EOF > $GITHUB_OUTPUT
stdout="$(just taghunt)"
stdout=$(just taghunt)
EOF
- name: Add PR Comment
uses: mshick/[email protected]

Check warning on line 32 in .github/workflows/taghunt.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/taghunt.yml#L32

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
message: |
"${{ steps.taghunt.outputs.stdout }}"
${{ steps.taghunt.outputs.stdout }}
3 changes: 2 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ cloc *args:
mutants:
cargo mutants -- --profile=mutants --all-targets


taghunt:
@just _taghunt "BUG" "FIXME" "HACK" "NOTE" "TODO" "OQ"

_taghunt *TAGS:
#!/usr/bin/env bash
for tag in {{TAGS}}; do
echo -n "$tag=$(rg $tag --glob \!Justfile | wc -l);"
echo -n "$tag=$(rg $tag --glob \!Justfile | wc -l)<br/>"
done
echo

0 comments on commit 25684eb

Please sign in to comment.