Commit Queue failed
$(sed -e 's/&/\&/g' -e 's/\</g' -e 's/>/\>/g' output)
$cqurl "
+ last_output_line=$(awk 'NF { line = $0 } END { sub(/^[[:space:]]*/, "", line); print line }' output)
+ # shellcheck disable=SC2016
+ missing_policy_message='ℹ Add `commit-queue-squash` label to land the PR as one commit, or `commit-queue-rebase` to land as separate commits.'
+ if [ "$last_output_line" = "$missing_policy_message" ]; then
+ failure_body='This pull request has multiple commits, but no landing policy was selected.
+
+Add https://github.com/nodejs/node/labels/commit-queue-squash to land it as one commit, or https://github.com/nodejs/node/labels/commit-queue-rebase to land the commits separately.'
+ else
+ if [ -z "$reported_failure" ]; then
+ reported_failure=$(grep -e '✘' -e '⚠' output | tail -n 10)
+ fi
+ if [ -z "$reported_failure" ]; then
+ reported_failure=$(tail -n 10 output)
+ fi
+ if [ -z "$reported_failure" ]; then
+ reported_failure='No failure reason was reported.'
+ fi
+ failure_body=$(escape_code_block_or_line "$reported_failure")
+ fi
+
+ raw_output=$(cat output)
+
+ body="### Commit Queue failed
+
+$failure_body
+
+The pull request was removed from the Commit Queue and labeled https://github.com/nodejs/node/labels/commit-queue-failed. After resolving the failure, remove that label and add https://github.com/nodejs/node/labels/commit-queue to retry.
+
+