fix(framework): durable Gitea comment posting in pr-review.sh via REST + read-back verify (#812) #852
Reference in New Issue
Block a user
Delete Branch "fix/812-pr-review-comment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #812: the framework wrapper
pr-review.shcommentaction silently posted nothing on Gitea. Root cause — thetea pr commentsubcommand does not exist, so the shell-out fell back and exited zero (false success). Replaced with a supported Gitea REST POST that reuses existing URL/token resolution, fails non-zero on transport error or HTTP != 201, and read-back-verifies the created comment before reporting success. Approve / request-changes paths (tea pr approve/tea pr reject) preserved.Closes #812.
Carved residual — NOT fixed here (honesty gate)
A distinct same-surface host-match edge — SSH transport port vs HTTP(S) provider port conflation, plus asymmetric default-web-port normalization — was found during round-3 re-review and carved to #850 per the standing round-4 anti-spiral stop. It is DEFERRED, not fixed, and does not affect the root-mount implicit-443 HTTPS deployment shape. Both concrete wrong-repo blockers that are fixed here (subpath-mounted slug + non-default HTTP port) carry committed red->green regressions.
Review provenance (author
ms-812!= reviewerms-812-review)2c35f5e394e8f8abc44e922a1c41ff832a09b78d340ac5cd9f53b31715de24b6. Both round-2 blockers FIXED (subpath-slug + non-default-port PASS, each with committed red->green regressions); AC2-6 + C1-5 non-regressed; Codex 0.96.No self-merge. Merge ownership retained by the coordinator.
Durable exact-head APPROVE-context binding — do not merge without the coordinator 6-check
Exact head bound:
571b65d336af7236692e1ed3883d5570767d696eCODE round-3 focused re-review (author
ms-812!= reviewerms-812-review, detached exact-head) — RoR sha2562c35f5e394e8f8abc44e922a1c41ff832a09b78d340ac5cd9f53b31715de24b6, Codex 0.96.Posted via Gitea REST (the framework
pr-review.shcomment path is the subject of this PR / #812).