aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2020-11-14 19:10:12 +0100
committerNode.js GitHub Bot <github-bot@iojs.org>2020-11-17 00:01:43 +0000
commit08be03b7cba11ea3aa17a9881b6ead3d8936abe3 (patch)
tree43d2d1a6c19db069efd57a29d9dae6b808a8469f /tools
parent88d0b5b2fbbb40cf7a93f3045672870a8767b3f2 (diff)
downloadios-node-v8-08be03b7cba11ea3aa17a9881b6ead3d8936abe3.tar.gz
ios-node-v8-08be03b7cba11ea3aa17a9881b6ead3d8936abe3.tar.bz2
ios-node-v8-08be03b7cba11ea3aa17a9881b6ead3d8936abe3.zip
tools: hide commit queue action link
PR-URL: https://github.com/nodejs/node/pull/36124 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/actions/commit-queue.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/actions/commit-queue.sh b/tools/actions/commit-queue.sh
index d754276bf8..9a432237c1 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 "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>$cqurl" '{body: $content}' > output.json
+ cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
+ jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>" '{body: $content}' > output.json
cat output.json
gitHubCurl "$(commentsUrl "$pr")" POST --data @output.json