Skip to content

Commit 84c0ade

Browse files
lundibundiBethGriggs
authored andcommitted
build: add Commit Queue actions url to failure comment
PR-URL: #35206 Refs: https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables Reviewed-By: Mary Marchini <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 9c74d45 commit 84c0ade

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)