Skip to content

Commit d0eca65

Browse files
lundibundijoesepi
authored andcommitted
build: add Commit Queue actions url to failure comment
PR-URL: nodejs#35206 Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent add2f26 commit d0eca65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/actions/commit-queue.sh

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

67-
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>" '{body: $content}' > output.json
67+
cqurl="Commit Queue action: $GITHUB_SERVER_URL/${OWNER}/${REPOSITORY}/actions/runs/$GITHUB_RUN_ID"
68+
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>\n$cqurl" '{body: $content}' > output.json
6869
cat output.json
6970

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

0 commit comments

Comments
 (0)