Skip to content

Commit

Permalink
fixup! tools: use gh CLI for CI and commit queue jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Nov 6, 2021
1 parent 6fe93a7 commit f4f8836
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/actions/commit-queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ commit_queue_failed() {

# shellcheck disable=SC2154
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>" '{body: $content}' > output.json
cat output.json
body="<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>"
echo "$body"

gh pr comment $pr --body-file output.json
gh pr comment $pr --body "$body"

rm output output.json
rm output
}

# TODO(mmarchini): should this be set with whoever added the label for each PR?
Expand Down

0 comments on commit f4f8836

Please sign in to comment.