Skip to content

Commit ca6e9e9

Browse files
lundibundiaduh95
authored andcommitted
build: add Commit Queue actions url to failure comment
PR-URL: nodejs/node#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 9cf2037 commit ca6e9e9

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
@@ -67,7 +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-
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>" '{body: $content}' > output.json
70+
cqurl="Commit Queue action: $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></details>\n$cqurl" '{body: $content}' > output.json
7172
cat output.json
7273

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

0 commit comments

Comments
 (0)