Skip to content

Commit 28d6283

Browse files
aduh95BethGriggs
authored andcommitted
tools: hide commit queue action link
PR-URL: #36124 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 08657e7 commit 28d6283

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/actions/commit-queue.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ for pr in "$@"; do
6767
if ! tail -n 10 output | grep '. Post "Landed in .*/pull/'"${pr}"; then
6868
gitHubCurl "$(labelsUrl "$pr")" POST --data '{"labels": ["'"${COMMIT_QUEUE_FAILED_LABEL}"'"]}'
6969

70-
# Use printf to properly escape newline symbols for jq.
71-
printf -v cqurl "\n\nCommit Queue action: %s/%s/%s/actions/runs/%s" \
72-
"$GITHUB_SERVER_URL" "${OWNER}" "${REPOSITORY}" "$GITHUB_RUN_ID"
73-
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>$cqurl" '{body: $content}' > output.json
70+
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
71+
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>" '{body: $content}' > output.json
7472
cat output.json
7573

7674
gitHubCurl "$(commentsUrl "$pr")" POST --data @output.json

0 commit comments

Comments
 (0)