meta: use HTML entities in commit-queue comment

PR-URL: https://github.com/nodejs/node/pull/53744
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
pull/53826/head
Aviv Keller 2024-07-08 12:29:43 -04:00 committed by Antoine du Hamel
parent 1367c5558e
commit 5ae8ea489d
No known key found for this signature in database
GPG Key ID: 21D900FFDB233756
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ commit_queue_failed() {
# shellcheck disable=SC2154 # shellcheck disable=SC2154
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
body="<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>" body="<details><summary>Commit Queue failed</summary><pre>$(sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' output)</pre><a href='$cqurl'>$cqurl</a></details>"
echo "$body" echo "$body"
gh pr comment "$pr" --body "$body" gh pr comment "$pr" --body "$body"