From 28d6283f96391405b186f5c1e3a531b437d306bb Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 14 Nov 2020 19:10:12 +0100 Subject: [PATCH] tools: hide commit queue action link PR-URL: https://github.com/nodejs/node/pull/36124 Reviewed-By: Denys Otrishko Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- tools/actions/commit-queue.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/actions/commit-queue.sh b/tools/actions/commit-queue.sh index d754276bf89b04..9a432237c18bda 100755 --- a/tools/actions/commit-queue.sh +++ b/tools/actions/commit-queue.sh @@ -67,10 +67,8 @@ for pr in "$@"; do if ! tail -n 10 output | grep '. Post "Landed in .*/pull/'"${pr}"; then gitHubCurl "$(labelsUrl "$pr")" POST --data '{"labels": ["'"${COMMIT_QUEUE_FAILED_LABEL}"'"]}' - # Use printf to properly escape newline symbols for jq. - printf -v cqurl "\n\nCommit Queue action: %s/%s/%s/actions/runs/%s" \ - "$GITHUB_SERVER_URL" "${OWNER}" "${REPOSITORY}" "$GITHUB_RUN_ID" - jq -n --arg content "
Commit Queue failed
$(cat output)
$cqurl" '{body: $content}' > output.json + cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" + jq -n --arg content "
Commit Queue failed
$(cat output)
$cqurl
" '{body: $content}' > output.json cat output.json gitHubCurl "$(commentsUrl "$pr")" POST --data @output.json