Apply review suggestions

This commit is contained in:
ζeh Matt committed 2023-02-28 17:27:20 +02:00
1 parent fec5314da4
commit f062c64876
1 file changed
+2 -2
+2 -2
View File
@@ -17,10 +17,10 @@ jobs:
BODY: ${{ github.event.issue.body }}
id: fix
run: |
changed_body=$(echo "$BODY" | sed '/<strong>commit<\/strong>/,/<\/li>/ s/\(<code>\)\(.*\)\(<\/code>\)/\2/g')
changed_body=$(echo "$BODY" | sed '/<strong>commit<\/strong>/,/<\/li>/ s/<code>\([0-9a-f]\{7,\}\)<\/code>/\1/')
if [[ "$changed_body" == "$BODY" ]]; then
echo "Unable to match the Backtrace report format."
exit 1
fi
echo "$changed_body" >> body.txt
gh issue edit $ISSUE --body-file body.txt
gh issue edit $ISSUE --body-file body.txt