1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Apply review suggestions

This commit is contained in:
ζeh Matt
2023-02-28 15:50:16 +02:00
parent fec5314da4
commit f062c64876

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