From 5c55b0dcc78f27afc855a612d79a198e119a908a Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Sun, 21 Jun 2026 18:27:32 +0900 Subject: [PATCH] Fix inline review fallback warning --- .github/workflows/opencode-review.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/opencode-review.yml b/.github/workflows/opencode-review.yml index a42fed0..5fbd3bb 100644 --- a/.github/workflows/opencode-review.yml +++ b/.github/workflows/opencode-review.yml @@ -1042,7 +1042,10 @@ jobs: local gh_error_file gh_error_file="$(mktemp)" if ! gh api -X POST "repos/${GH_REPOSITORY}/pulls/${PR_NUMBER}/reviews" --input "$review_payload_file" >/dev/null 2>"$gh_error_file"; then - warn_gh_publication_failure "pull review inline comments" "$gh_error_file" + echo "::warning::OpenCode could not submit pull review inline comments; falling back to body-only ${event} review." + if [ -s "$gh_error_file" ]; then + sed -E 's/[[:space:]]+/ /g; s/^/::warning::GitHub API: /' "$gh_error_file" || true + fi rm -f "$gh_error_file" if [ -s "$fallback_body_file" ]; then create_pull_review "$event" "$(cat "$fallback_body_file")"