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.
This commit is contained in:
user 2025-07-01 13:07:48 -04:00
parent 63b61e9497
commit 13c5df083d
No known key found for this signature in database
GPG Key ID: 387F8D7E6C531DE0
1 changed files with 4 additions and 2 deletions

View File

@ -22,13 +22,15 @@ jobs:
run: | run: |
if [ -s mutants.out/missed.txt ]; then if [ -s mutants.out/missed.txt ]; then
echo "New missed mutants found" echo "New missed mutants found"
MUTANTS_VERSION=$(cargo mutants --version)
gh issue create \ gh issue create \
--title "New Mutants Found" \ --title "New Mutants Found" \
--body "$(cat <<EOF --body "$(cat <<EOF
Displaying up to the first 10 mutants: Displaying up to the first 10 mutants:
\`\`\`
$(head -n 10 mutants.out/missed.txt) $(head -n 10 mutants.out/missed.txt)
\`\`\`
Running cargo mutants version: ${MUTANTS_VERSION}
For the complete list, please check the [mutants.out artifact](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}). For the complete list, please check the [mutants.out artifact](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
EOF EOF
)" )"