From ba786f3b89bf67dc875f282b81953ef692c78a7e Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 10 Jun 2026 11:46:26 +0300 Subject: [PATCH] ci: fix manual review reaction cleanup --- .github/workflows/pr-review.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml index 8691a3e1..09be1586 100644 --- a/.github/workflows/pr-review.yml +++ b/.github/workflows/pr-review.yml @@ -173,8 +173,7 @@ jobs: review_comment_count="$(gh api \ "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" \ --paginate \ - --slurp \ - --jq "map(.[]) | [.[] | select(.created_at > \"${COMMAND_CREATED_AT}\" and .user.login == \"openchamber-bot[bot]\" and (.body | contains(\"

Code Review Summary

\")))] | length")" + | jq -s --arg created_at "$COMMAND_CREATED_AT" '[.[][] | select(.created_at > $created_at and .user.login == "openchamber-bot[bot]" and (.body | contains("

Code Review Summary

")))] | length')" if [ "$review_comment_count" -lt 1 ]; then echo "Manual /oc-review completed without creating a new OpenChamber Bot PR comment." >&2