pr review cannot post inline review comments or threaded replies #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
What I ran into
I was asked to reply directly to each of ten inline review comments on a PR.
gitea-axi pr reviewonly accepts a single--bodyfor the whole review, andpr commentonly posts one top-level PR comment.There is no way to attach a comment to a specific
path:line, and no way to reply inside an existing comment thread.As a result "reply to each comment" collapsed into one consolidated review body that restates each thread by hand, rather than a reply landing under each comment where the reviewer left it.
Real gap, not discovery
Real gap — and the underlying SDK already supports it.
prReviewbuilds a payload with onlyeventandbody:But
CreatePullReviewOptionsalso carries acommentsarray that is never populated:On threaded replies specifically: the pinned gitea-js exposes no "reply to comment id" endpoint — Gitea's model is that a comment posted on the same line joins that line's conversation.
So exposing
comments[]covers both "comment on a line" and "reply in a thread" (by anchoring to the same line), which is the 80% case.Recommendation
Let
pr review(and/orpr comment) carry inline comments. For example a repeatable flag:or a
--comments-filetaking a small JSON/TOON array of{ path, line, body }, mapping each toCreatePullReviewComment(new_positionfor the current side).This is what "reply directly to each comment" actually needs, and it maps straight onto the SDK field that's already there.
Resolved by task 0035 (commit
662ba82), now onmain:pr review --comments-fileposts inline comments ({path, line, body}) and threaded replies ({reply_to, body}).