fix(framework): drop unsupported --comment from tea pr approve/reject; route review body via durable comment (#835) #857

Merged
jason.woltje merged 1 commits from fix/835-pr-review-approve-reject-comment-flag into main 2026-07-20 09:19:49 +00:00

1 Commits

Author SHA1 Message Date
ms-835-build
2e8e8aa83b fix(framework): drop unsupported --comment from tea pr approve/reject; route review body via durable comment (#835)
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
tea v0.11.1 defines no --comment/-comment flag on `pr approve` or `pr
reject`, so pr-review.sh's Gitea approve/reject paths errored with
"flag provided but not defined: -comment" whenever a review body was
supplied, breaking the durable formal-review path fleet-wide.

Remove --comment from both tea invocations and, when a review body is
present, post it via the same verified Gitea comments REST API path
the `comment` action already uses (#812) — extracted into a shared
gitea_post_verified_comment() helper so all three actions share one
write+read-back-verified implementation instead of duplicating it.

Extends the existing #812 regression harness
(test-pr-review-gitea-comment.sh) with a `tea` stub that rejects
unknown flags exactly like real tea v0.11.1, so it fails RED against
the pre-fix wrapper and passes GREEN after.

Closes #835.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 03:58:51 -05:00