mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Apply review suggestions
This commit is contained in:
4
.github/workflows/backtrace-commit-fix.yml
vendored
4
.github/workflows/backtrace-commit-fix.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user