| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,8 +67,10 @@ for pr in "$@"; do | |||
| 67 | 67 | if ! tail -n 10 output | grep '. Post "Landed in .*/pull/'"${pr}"; then | |
| 68 | 68 | gitHubCurl "$(labelsUrl "$pr")" POST --data '{"labels": ["'"${COMMIT_QUEUE_FAILED_LABEL}"'"]}' | |
| 69 | 69 | ||
| 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 | ||
| 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 | ||
| 72 | 74 | cat output.json | |
| 73 | 75 | ||
| 74 | 76 | gitHubCurl "$(commentsUrl "$pr")" POST --data @output.json | |
| Back | FazBrowse Home | New Git URL |
0 commit comments