Skip to content

Commit 13c5df0

Browse files
committed
Enhance the weekly mutation workflow markdown
This adds a code block to the cargo mutants issue creator for the missed mutations and prints the current version of cargo mutants being used so any new versions can easily be tracked where or why there are new mutations.
1 parent 63b61e9 commit 13c5df0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cron-weekly-cargo-mutants.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
run: |
2323
if [ -s mutants.out/missed.txt ]; then
2424
echo "New missed mutants found"
25+
MUTANTS_VERSION=$(cargo mutants --version)
2526
gh issue create \
2627
--title "New Mutants Found" \
2728
--body "$(cat <<EOF
2829
Displaying up to the first 10 mutants:
29-
30+
\`\`\`
3031
$(head -n 10 mutants.out/missed.txt)
31-
32+
\`\`\`
33+
Running cargo mutants version: ${MUTANTS_VERSION}
3234
For the complete list, please check the [mutants.out artifact](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
3335
EOF
3436
)"

0 commit comments

Comments
 (0)