mirror of https://github.com/nodejs/node.git
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
parent
1367c5558e
commit
5ae8ea489d
|
@ -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/&/\&/g' -e 's/</\</g' -e 's/>/\>/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"
|
||||||
|
|
Loading…
Reference in New Issue