mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
build: add Commit Queue actions url to failure comment
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
de7a1abfc2
commit
5509c1b7e5
1 file changed
+2
-1
@@ -64,7 +64,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}"'"]}'
|
||||
|
||||
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>" '{body: $content}' > output.json
|
||||
cqurl="Commit Queue action: $GITHUB_SERVER_URL/${OWNER}/${REPOSITORY}/actions/runs/$GITHUB_RUN_ID"
|
||||
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre></details>\n$cqurl" '{body: $content}' > output.json
|
||||
cat output.json
|
||||
|
||||
gitHubCurl "$(commentsUrl "$pr")" POST --data @output.json
|
||||
|
||||
Reference in new issue
Block a user